about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-20 13:12:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-20 13:12:29 -0700
commit0d1e6aacd954146209b944f2bebc8033bcb13c23 (patch)
tree8c4ce88415e11bc84ad4391fc9cac8c341cff7d5 /main.lua
parent978c1433976a72193a33dc9f2f52e514fce9db41 (diff)
downloadview.love-0d1e6aacd954146209b944f2bebc8033bcb13c23.tar.gz
revert selection logic to before commit 3ffc2ed8f
We still have a failing test, but now it's the one we introduced in
commit 3ffc2ed8f.
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/main.lua b/main.lua
index b1b0bd8..712d44c 100644
--- a/main.lua
+++ b/main.lua
@@ -391,7 +391,6 @@ function App.mousereleased(x,y, button)
   end
 end
 
--- don't depend on state of Selection1; use keychord_pressed for that
 function App.textinput(t)
   for _,line in ipairs(Lines) do line.y = nil end  -- just in case we scroll
   if Search_term then
@@ -551,9 +550,6 @@ function App.keychord_pressed(chord)
     for _,line in ipairs(Lines) do line.y = nil end  -- just in case we scroll
     Text.keychord_pressed(chord)
   end
-  if not App.shift_down() and chord ~= 'C-c' then
-    Selection1 = {}
-  end
 end
 
 function App.keyreleased(key, scancode)