aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-09-08 16:46:23 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-09-08 16:46:23 -0400
commiteb4d74fcfa7830336945fcfcd0c3547a092cbe9d (patch)
tree1b7f3dfb8d62d83080c3758a9628b51df88bf369
parent803bee0c1f277396d06dd892fdcbfc69bd79a8cc (diff)
downloadtextadept-eb4d74fcfa7830336945fcfcd0c3547a092cbe9d.tar.gz
textadept-eb4d74fcfa7830336945fcfcd0c3547a092cbe9d.zip
Only fold when clicking on fold margin, not any sensitive one; core/gui.lua
-rw-r--r--core/gui.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/gui.lua b/core/gui.lua
index f70a8f4a..26d6655a 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -212,8 +212,8 @@ connect(events.UPDATE_UI, function()
end)
-- Toggles folding.
-connect(events.MARGIN_CLICK, function(margin, position, modifiers)
- buffer:toggle_fold(buffer:line_from_position(position))
+connect(events.MARGIN_CLICK, function(margin, pos, modifiers)
+ if margin == 2 then buffer:toggle_fold(buffer:line_from_position(pos)) end
end)
connect(events.BUFFER_NEW, function() set_title(buffer) end)