Skip to content

Commit fc142b4

Browse files
author
Stephan Dilly
committed
fix crashes in revlog with utf8 commit messages (closes #188)
1 parent 4f731f6 commit fc142b4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

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

1314
## [0.8.1] - 2020-07-07
1415

asyncgit/src/sync/commits_info.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,9 @@ mod tests {
180180
#[test]
181181
fn test_limit_string_utf8() {
182182
assert_eq!(limit_str("里里", 1), "里");
183+
184+
let test_src = "导入按钮由选文件改为选目录,因为整个过程中要用到多个mdb文件,这些文件是在程序里写死的,暂且这么来做,有时间了后 再做调整";
185+
let test_dst = "导入按钮由选文";
186+
assert_eq!(limit_str(test_src, 20), test_dst);
183187
}
184188
}

0 commit comments

Comments
 (0)