We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b154c commit 9c60947Copy full SHA for 9c60947
lua/nvim-tree/actions/node/open-file.lua
@@ -1,5 +1,6 @@
1
-- Copyright 2019 Yazdani Kiyan under MIT License
2
local lib = require "nvim-tree.lib"
3
+local notify = require "nvim-tree.notify"
4
local utils = require "nvim-tree.utils"
5
local view = require "nvim-tree.view"
6
@@ -60,6 +61,17 @@ local function pick_win_id()
60
61
return selectable[1]
62
end
63
64
+ if #M.window_picker.chars < #selectable then
65
+ notify.error(
66
+ string.format(
67
+ "More windows (%d) than actions.open_file.window_picker.chars (%d) - please add more.",
68
+ #selectable,
69
+ #M.window_picker.chars
70
+ )
71
72
+ return nil
73
+ end
74
+
75
local i = 1
76
local win_opts = {}
77
local win_map = {}
0 commit comments