We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d2616 commit d73859fCopy full SHA for d73859f
lua/neo-tree/ui/windows.lua
@@ -1,7 +1,11 @@
1
local locations = {}
2
3
local get_location = function(location)
4
- local loc = locations[location]
+ local tab = vim.api.nvim_get_current_tabpage()
5
+ if not locations[tab] then
6
+ locations[tab] = {}
7
+ end
8
+ local loc = locations[tab][location]
9
if loc then
10
if loc.winid ~= 0 then
11
-- verify the window before we return it
@@ -16,9 +20,8 @@ local get_location = function(location)
16
20
name = location,
17
21
winid = 0,
18
22
}
19
- locations[location] = loc
23
+ locations[tab][location] = loc
24
return loc
25
end
26
-local M = { get_location = get_location }
-return M
27
+return { get_location = get_location }
0 commit comments