Simplify active windows

This commit is contained in:
Krzosa Karol
2024-08-10 09:08:35 +02:00
parent d5f903eaa2
commit 08a385b050
13 changed files with 65 additions and 100 deletions

View File

@@ -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