Simplify active windows
This commit is contained in:
@@ -289,7 +289,7 @@ end
|
||||
function MatchWindowsPath(_s)
|
||||
local s, file_path, drive = SkipPath(_s)
|
||||
if not drive then
|
||||
local d = GetCurrentBufferDir()
|
||||
local d = GetActiveMainWindowBufferName()
|
||||
file_path = d..'/'..file_path
|
||||
end
|
||||
local line, col, s = SkipLineAndColumn(s)
|
||||
@@ -303,7 +303,7 @@ function MatchGitCommit(s)
|
||||
if i then
|
||||
s = s:sub(8)
|
||||
local command = "git --no-pager show "..s
|
||||
return {kind = "exec", cmd = command, working_dir = GetCurrentBufferDir()}
|
||||
return {kind = "exec", cmd = command, working_dir = GetActiveMainWindowBufferName()}
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user