aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/help.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ftplugin/help.lua')
-rw-r--r--runtime/ftplugin/help.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/help.lua b/runtime/ftplugin/help.lua
index 6e643c967f..eb66e34bc7 100644
--- a/runtime/ftplugin/help.lua
+++ b/runtime/ftplugin/help.lua
@@ -31,5 +31,5 @@ vim.keymap.set('n', 'gO', function()
require('vim.vimhelp').show_toc()
end, { buffer = 0, silent = true })
+vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') .. '\n exe "nunmap <buffer> gO"'
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | call v:lua.vim.treesitter.stop()'
-vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | nunmap <buffer> gO'