зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 14:26:17 +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;
|
||||
}
|
||||
// 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);
|
||||
}
|
||||
None
|
||||
|
||||
Ссылка в новой задаче
Block a user