show cursor immediately after a mouse click

I've been subtly finding myself waiting for the cursor to stop blinking
to see if I clicked on the right place.
This commit is contained in:
Kartik K. Agaram 2022-07-06 08:57:45 -07:00
parent 8d00da889d
commit 2973324ef6
1 changed files with 2 additions and 0 deletions

View File

@ -384,6 +384,8 @@ function App.mousereleased(x,y, button)
--? print('reset selection')
Cursor1 = {line=line_index, pos=Text.to_pos_on_line(line, x, y)}
--? print('cursor', Cursor1.line, Cursor1.pos)
-- ensure cursor is immediately visible
Cursor_time = 0
if Mousepress_shift then
if Old_selection1.line == nil then
Selection1 = Old_cursor1