More work on mouse selection

This commit is contained in:
Kovid Goyal
2023-03-28 08:10:29 +05:30
parent 40ca46d8d8
commit 45c1e36de9
3 changed files with 40 additions and 6 deletions

View File

@@ -354,7 +354,7 @@ func (self *Handler) draw_screen() {
if self.current_search != nil {
sl = self.current_search.markup_line(sl, pos)
}
self.add_mouse_selection_to_line(sl, pos)
sl = self.add_mouse_selection_to_line(sl, pos, num_written)
lp.QueueWriteString(sl)
lp.MoveCursorVertically(1)
lp.QueueWriteString("\x1b[m\r")