diff options
author | 2008-02-23 18:13:24 -0500 | |
---|---|---|
committer | 2008-02-23 18:13:24 -0500 | |
commit | 47b8c0db856c48abbcbcb5635deaa5c2cc41427e (patch) | |
tree | 2d94eab5c87463131001fc815e60acf0cc9c6f41 /modules/textadept/editing.lua | |
parent | 04a91f8ab1db479b48f26f3f808b74ba8a617e9b (diff) | |
download | textadept-47b8c0db856c48abbcbcb5635deaa5c2cc41427e.tar.gz textadept-47b8c0db856c48abbcbcb5635deaa5c2cc41427e.zip |
Eliminated Zenity dependency; replaced with my CocoaDialog clone (lua_dialog).
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r-- | modules/textadept/editing.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 76a98f3b..6395faf2 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -219,11 +219,12 @@ end function goto_line(line) local buffer = buffer if not line then - local p = io.popen('zenity --entry --title "Go To" '.. - '--text "Line Number:"') - line = p:read('*all') - p:close() - if line == '' then return end + line = cocoa_dialog( 'standard-inputbox', { + title = 'Go To', + text = 'Line Number:', + ['no-newline'] = true + } ):match('%d+$') + if not line then return end line = tonumber(line) end buffer:ensure_visible_enforce_policy(line - 1) |