aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-11-26 20:34:23 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2014-11-26 20:34:23 -0500
commita5b9b2d90cba4170353f2dcfcf15826e673c377c (patch)
tree9bdd55abaa8e5ad3d07cb86a51993fbbd5755466 /core/ui.lua
parentb21e66a3cd20e088149926ecdf5710dabd1ec03b (diff)
downloadtextadept-a5b9b2d90cba4170353f2dcfcf15826e673c377c.tar.gz
textadept-a5b9b2d90cba4170353f2dcfcf15826e673c377c.zip
Fixed bug in jumping to compile/run errors and clear annotations before builds.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua4
1 files changed, 2 insertions, 2 deletions
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