зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-08 00:15:50 +03:00
fix behavior at end of line
Этот коммит содержится в:
@@ -57,7 +57,7 @@ pub fn find_word_end_next(line: &str, start_col: usize) -> Option<usize> {
|
|||||||
cur_col = next_col;
|
cur_col = next_col;
|
||||||
}
|
}
|
||||||
// if end of line is whitespace, don't stop the cursor
|
// if end of line is whitespace, don't stop the cursor
|
||||||
if cur != CharKind::Space && cur_col.saturating_sub(start_col) > 1 {
|
if cur != CharKind::Space && cur_col.saturating_sub(start_col) >= 1 {
|
||||||
return Some(cur_col);
|
return Some(cur_col);
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user