This commit is contained in:
committed by
GitHub
parent
d8b154c5f0
commit
9c60947926
@@ -1,5 +1,6 @@
|
|||||||
-- Copyright 2019 Yazdani Kiyan under MIT License
|
-- Copyright 2019 Yazdani Kiyan under MIT License
|
||||||
local lib = require "nvim-tree.lib"
|
local lib = require "nvim-tree.lib"
|
||||||
|
local notify = require "nvim-tree.notify"
|
||||||
local utils = require "nvim-tree.utils"
|
local utils = require "nvim-tree.utils"
|
||||||
local view = require "nvim-tree.view"
|
local view = require "nvim-tree.view"
|
||||||
|
|
||||||
@@ -60,6 +61,17 @@ local function pick_win_id()
|
|||||||
return selectable[1]
|
return selectable[1]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if #M.window_picker.chars < #selectable then
|
||||||
|
notify.error(
|
||||||
|
string.format(
|
||||||
|
"More windows (%d) than actions.open_file.window_picker.chars (%d) - please add more.",
|
||||||
|
#selectable,
|
||||||
|
#M.window_picker.chars
|
||||||
|
)
|
||||||
|
)
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
local i = 1
|
local i = 1
|
||||||
local win_opts = {}
|
local win_opts = {}
|
||||||
local win_map = {}
|
local win_map = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user