fix crashes in revlog with utf8 commit messages (closes #188)

This commit is contained in:
Stephan Dilly 2020-07-10 08:55:43 +02:00
parent 4f731f6acc
commit fc142b4604
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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);
}
}