mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
fix crashes in revlog with utf8 commit messages (closes #188)
This commit is contained in:
parent
4f731f6acc
commit
fc142b4604
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue