зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 22:35:50 +03:00
fix cursor position on searching backward
Этот коммит содержится в:
@@ -1655,7 +1655,7 @@ impl<'a> TextArea<'a> {
|
||||
.skip_while(|m| m.start() < i)
|
||||
.last()
|
||||
{
|
||||
let col = col + 1 + current_line[i..m.start()].chars().count();
|
||||
let col = col + current_line[i..m.start()].chars().count();
|
||||
self.cursor = (row, col);
|
||||
return true;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user