about summary refs log tree commit diff stats
path: root/source_select.lua
diff options
context:
space:
mode:
Diffstat (limited to 'source_select.lua')
-rw-r--r--source_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/source_select.lua b/source_select.lua
index 9ede1da..5434988 100644
--- a/source_select.lua
+++ b/source_select.lua
@@ -11,7 +11,7 @@ function Text.clip_selection(State, line_index, apos, bpos)
   -- min,max = sorted(State.selection1,State.cursor1)
   local minl,minp = State.selection1.line,State.selection1.pos
   local maxl,maxp
-  if App.mouse_down(1) then
+  if State.mouse_down then
     maxl,maxp = Text.mouse_pos(State)
   else
     maxl,maxp = State.cursor1.line,State.cursor1.pos