From a5b9b2d90cba4170353f2dcfcf15826e673c377c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 26 Nov 2014 20:34:23 -0500 Subject: Fixed bug in jumping to compile/run errors and clear annotations before builds. --- core/ui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/ui.lua') diff --git a/core/ui.lua b/core/ui.lua index f90c5626..f8607392 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -183,7 +183,7 @@ end function ui.goto_file(filename, split, preferred_view, sloppy) local patt = '^'..filename..'$' if sloppy then - local i = filename:reverse():find('[/\\]%.%.?') -- ./ or ../ + local i = filename:reverse():find('[/\\]%.?%.?') -- ./ or ../ patt = i and filename:sub(-i + 1, -1)..'$' or filename..'$' end if #_VIEWS == 1 and split and not (view.buffer.filename or ''):find(patt) then @@ -438,7 +438,7 @@ if CURSES then events.connect(events.MOUSE, function(event, button, y, x) if event == buffer.MOUSE_RELEASE or button ~= 1 then return end if event == buffer.MOUSE_PRESS then - local view = get_view(ui.get_split_table(), y - 1, x) -- title is at y=1 + local view = get_view(ui.get_split_table(), y - 1, x) -- title is at y = 1 if not view[1] and not view[2] then ui.goto_view(_VIEWS[view]) resize = nil -- cgit v1.2.3