aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-14 09:22:50 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-14 09:22:50 -0500
commit86531c680d440f8a936d5cdda93db7a20d64e2e2 (patch)
tree9eeb7ef38edc754118ccb54804aa078e7f566c9e /modules
parentd51cbf71f7c2982b4e8ef9b3066bbf22c42f3b81 (diff)
downloadtextadept-86531c680d440f8a936d5cdda93db7a20d64e2e2.tar.gz
textadept-86531c680d440f8a936d5cdda93db7a20d64e2e2.zip
Sometimes goto_line will select text, fix that; modules/textadept/editing.lua
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/editing.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 069135b2..7e8a1ff7 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -248,6 +248,7 @@ function goto_line(line)
end
buffer:ensure_visible_enforce_policy(line - 1)
buffer:goto_line(line - 1)
+ buffer:goto_pos(buffer.current_pos)
end
---