summaryrefslogtreecommitdiff
path: root/ftplugin/ale-fix-suggest.vim
diff options
context:
space:
mode:
authorD. Ben Knoble <ben.knoble+github@gmail.com>2023-11-19 04:13:56 -0500
committerGitHub <noreply@github.com>2023-11-19 09:13:56 +0000
commit1ccd99e113324602b4eca41fd24ba6f991e8f05d (patch)
treefcf82f19b012e6bd5a572c2b07eb6cb84d7fa186 /ftplugin/ale-fix-suggest.vim
parent5cddc4c8e1f2fdb68293e0632ce12364c47b7e1d (diff)
downloadale-1ccd99e113324602b4eca41fd24ba6f991e8f05d.zip
add b:undo_ftplugin (#4625)
Diffstat (limited to 'ftplugin/ale-fix-suggest.vim')
-rw-r--r--ftplugin/ale-fix-suggest.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/ftplugin/ale-fix-suggest.vim b/ftplugin/ale-fix-suggest.vim
index 189a4dc2..42ade0fd 100644
--- a/ftplugin/ale-fix-suggest.vim
+++ b/ftplugin/ale-fix-suggest.vim
@@ -1,2 +1,5 @@
" Close the ALEFixSuggest window with the q key.
noremap <buffer> q :q!<CR>
+
+let b:undo_ftplugin = get(b:, 'undo_ftplugin', 'execute')
+let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> q"'