1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-03 22:35:50 +03:00

fix cursor position on searching backward

Этот коммит содержится в:
rhysd
2022-07-08 12:50:59 +09:00
родитель 358e9dbc52
Коммит 1db4830a3c

Просмотреть файл

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