diff options
Diffstat (limited to 'select.lua')
-rw-r--r-- | select.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/select.lua b/select.lua index 083d7ab..d37ec61 100644 --- a/select.lua +++ b/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 |