aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/textadept/editing.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index b5906aad..5aafe964 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -366,7 +366,8 @@ function M.goto_line(line)
buffer:goto_line(line)
end
args.register(
- '-l', '--line', 1, function(line) M.goto_line(line) end, 'Go to line')
+ '-l', '--line', 1, function(line) M.goto_line(tonumber(line) or line) end,
+ 'Go to line')
---
-- Transposes characters intelligently.