diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-06 08:57:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-06 08:57:45 -0700 |
commit | 2973324ef6881c3828e6ebfce6c78b8835275b5b (patch) | |
tree | 1ec3d77b0a86fbf16dc5973fb76340f122020272 | |
parent | 8d00da889d54148eb591e67337799f4d1814a032 (diff) | |
download | view.love-2973324ef6881c3828e6ebfce6c78b8835275b5b.tar.gz |
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.
-rw-r--r-- | main.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua index 7321256..8902b11 100644 --- a/main.lua +++ b/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 |