aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2008-07-22 14:03:50 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2008-07-22 14:03:50 -0400
commit70eda368e796d227cea060fc533a3b10e52edb8d (patch)
tree0832e90dd16e74f71213b7fb73ecfe85aee3a7d5 /modules
parent363a3420d1eef11e753860d431912e2f8e4bea1a (diff)
Fixed goto_line bug when cancelling dialog; 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 9251a507..a9947b73 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -241,7 +241,7 @@ function goto_line(line)
text = 'Line Number:',
['no-newline'] = true
} )
- line = tonumber( line:match('%d+$') )
+ line = tonumber( line:match('%-?%d+$') )
if not line or line < 0 then return end
end
buffer:ensure_visible_enforce_policy(line - 1)