aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2022-02-26 20:50:22 -0500
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2022-02-26 20:50:22 -0500
commit75f9be1041bcbb2a9d426fe9ffc8739c37f50b8e (patch)
tree0b2a36493ea4a041fb9f3b5811b601f66a388e21 /modules/textadept/run.lua
parentb99f73b58460de943c63b23f2be9acb02e0023a6 (diff)
Improve Windows network directory path handling.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r--modules/textadept/run.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 7f517529..ad4d22fa 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -495,10 +495,10 @@ function M.goto_error(line_num, next)
if not detail then return end
buffer:goto_line(line_num)
textadept.editing.select_line()
- if not detail.filename:find(not WIN32 and '^/' or '^%a:[/\\]') and cwd then
+ if not detail.filename:find(not WIN32 and '^/' or '^%a?:?[/\\][/\\]?') and cwd then
detail.filename = cwd .. (not WIN32 and '/' or '\\') .. detail.filename
end
- local sloppy = not detail.filename:find(not WIN32 and '^/' or '^%a:[/\\]')
+ local sloppy = not detail.filename:find(not WIN32 and '^/' or '^%a?:?[/\\][/\\]?')
ui.goto_file(detail.filename, true, preferred_view, sloppy)
textadept.editing.goto_line(detail.line)
if detail.column then buffer:goto_pos(buffer:find_column(detail.line, detail.column)) end