aboutsummaryrefslogtreecommitdiff
path: root/core/gui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/gui.lua')
-rw-r--r--core/gui.lua15
1 files changed, 7 insertions, 8 deletions
diff --git a/core/gui.lua b/core/gui.lua
index fabd7ec2..b18b7afd 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -59,14 +59,13 @@ function gui.switch_buffer()
items[#items + 1] = dirty..filename:match('[^/\\]+$')
items[#items + 1] = filename
end
- local response =
- gui.dialog('filteredlist',
- '--title', locale.SWITCH_BUFFERS,
- '--button1', 'gtk-ok',
- '--button2', 'gtk-cancel',
- '--no-newline',
- '--columns', 'Name', 'File',
- '--items', items)
+ local response = gui.dialog('filteredlist',
+ '--title', locale.SWITCH_BUFFERS,
+ '--button1', 'gtk-ok',
+ '--button2', 'gtk-cancel',
+ '--no-newline',
+ '--columns', 'Name', 'File',
+ '--items', items)
local ok, i = response:match('(%-?%d+)\n(%d+)$')
if ok and ok ~= '2' then view:goto_buffer(tonumber(i) + 1, true) end
end