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