diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/editing.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index ee312df0..5556e110 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -266,11 +266,10 @@ function goto_line(line) local buffer = buffer if not line then line = - cocoa_dialog('standard-inputbox', { - title = locale.M_TEXTADEPT_EDITING_GOTO_TITLE, - text = locale.M_TEXTADEPT_EDITING_GOTO_TEXT, - ['no-newline'] = true - }) + textadept.dialog('standard-inputbox', + '--title', locale.M_TEXTADEPT_EDITING_GOTO_TITLE, + '--text', locale.M_TEXTADEPT_EDITING_GOTO_TEXT, + '--no-newline') line = tonumber(line:match('%-?%d+$')) if not line or line < 0 then return end end |