diff options
author | 2009-07-08 19:39:26 -0400 | |
---|---|---|
committer | 2009-07-08 19:39:26 -0400 | |
commit | a8e87e8efd47676ff0f04fbfba14be189b169ebb (patch) | |
tree | e04ec88b6ad70d43b39e0c2700a86affc316fa88 /modules/textadept | |
parent | 9827462bc8ac4ecc6009f2285c2397bf6ff64777 (diff) | |
download | textadept-a8e87e8efd47676ff0f04fbfba14be189b169ebb.tar.gz textadept-a8e87e8efd47676ff0f04fbfba14be189b169ebb.zip |
Replace lua_dialog with gcocoadialog.
Diffstat (limited to 'modules/textadept')
-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 |