From 47b8c0db856c48abbcbcb5635deaa5c2cc41427e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 23 Feb 2008 18:13:24 -0500 Subject: Eliminated Zenity dependency; replaced with my CocoaDialog clone (lua_dialog). --- modules/textadept/editing.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/textadept/editing.lua') 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) -- cgit v1.2.3