aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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)