From b068eaf1e6cbe35d1ac100d435cd7f7b74a5c87d Mon Sep 17 00:00:00 2001 From: Tim Pope <code@tpope.net> Date: Sun, 2 Feb 2025 23:33:31 -0500 Subject: [PATCH] Drop */# maps in visual mode Resolves: https://github.com/tpope/vim-fugitive/issues/2374 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d000561d..eac410e9 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -8030,8 +8030,8 @@ function! fugitive#MapJumps(...) abort call s:MapMotion(']]', 'exe <SID>NextSection(v:count1)') call s:MapMotion('[]', 'exe <SID>PreviousSectionEnd(v:count1)') call s:MapMotion('][', 'exe <SID>NextSectionEnd(v:count1)') - call s:Map('nxo', '*', '<SID>PatchSearchExpr(0)', '<expr>') - call s:Map('nxo', '#', '<SID>PatchSearchExpr(1)', '<expr>') + call s:Map('no', '*', '<SID>PatchSearchExpr(0)', '<expr>') + call s:Map('no', '#', '<SID>PatchSearchExpr(1)', '<expr>') endif call s:Map('n', 'S', ':<C-U>echoerr "Use gO"<CR>', '<silent><unique>') call s:Map('n', 'dq', ":<C-U>call fugitive#DiffClose()<CR>", '<silent>') -- GitLab