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:
parent
8d00da889d
commit
2973324ef6
2
main.lua
2
main.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue