Skip to content

Commit

Permalink
fix crashes in revlog with utf8 commit messages (closes #188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Dilly committed Jul 10, 2020
1 parent 4f731f6 commit fc142b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- removed unmaintained dependency `spin` ([#172](https://github.com/extrawurst/gitui/issues/172))
- fix opening relative paths in external editor ([#184](https://github.com/extrawurst/gitui/issues/184))
- opening relative paths in external editor may fail in subpaths ([#184](https://github.com/extrawurst/gitui/issues/184))
- crashes in revlog with utf8 commit messages ([#188](https://github.com/extrawurst/gitui/issues/188))

## [0.8.1] - 2020-07-07

Expand Down
4 changes: 4 additions & 0 deletions asyncgit/src/sync/commits_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,9 @@ mod tests {
#[test]
fn test_limit_string_utf8() {
assert_eq!(limit_str("里里", 1), "里");

let test_src = "导入按钮由选文件改为选目录,因为整个过程中要用到多个mdb文件,这些文件是在程序里写死的,暂且这么来做,有时间了后 再做调整";
let test_dst = "导入按钮由选文";
assert_eq!(limit_str(test_src, 20), test_dst);
}
}

0 comments on commit fc142b4

Please sign in to comment.