aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-01-21 21:52:30 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-01-21 21:52:30 -0500
commita61982caa0935036faae75b2943828787256bab8 (patch)
tree442efd0b48bc65ef3a94f2f22d97b3df0d9afd7b /modules
parent78bcda2db6b0b8669a6fbcf63b1143602f544416 (diff)
downloadtextadept-a61982caa0935036faae75b2943828787256bab8.tar.gz
textadept-a61982caa0935036faae75b2943828787256bab8.zip
Fixed bug in goto_line() caused by last commit; modules/textadept/editing.lua
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/editing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index c26ed082..f7ae7c11 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -229,7 +229,7 @@ function goto_line(line)
'--title', L('Go To'),
'--text', L('Line Number:'),
'--no-newline'):match('%-?%d+$'))
- if not line then return end
+ if not line or line < 0 then return end
end
buffer:ensure_visible_enforce_policy(line - 1)
buffer:goto_line(line - 1)