mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-12 07:10:23 +00:00
Fix bug where empty string causes empty libmodal name
This commit is contained in:
parent
c9dd739eb0
commit
d00feb0ad3
@ -252,7 +252,11 @@ function _metaMode:_tearDown()
|
||||
end
|
||||
|
||||
if vim.g then -- this step requires 0.5
|
||||
vim.g.libmodalActiveModeName = self._previousModeName
|
||||
if self._previousModeName and #vim.trim(self._previousModeName) < 1 then
|
||||
vim.g.libmodalActiveModeName = nil
|
||||
else
|
||||
vim.g.libmodalActiveModeName = self._previousModeName
|
||||
end
|
||||
end
|
||||
|
||||
self._winState:restore()
|
||||
|
Loading…
Reference in New Issue
Block a user