1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +08:00

fix(flygrep): fix delete text command

This commit is contained in:
wsdjeg 2022-03-22 15:12:50 +08:00
parent 5d21105559
commit 01f5df790e
3 changed files with 5 additions and 5 deletions

View File

@ -324,7 +324,7 @@ function! s:change_options(key) abort
endif
setlocal modifiable
let content = s:generate_git_log_popup_content()
normal! "_ggdG
normal! gg"_dG
call setline(1, content)
setlocal nomodifiable
endif

View File

@ -372,7 +372,7 @@ function! s:close_grep_job() abort
endif
call timer_stop(s:grep_timer_id)
call timer_stop(s:preview_timer_id)
noautocmd normal! "_ggdG
noautocmd normal! gg"_dG
call s:update_statusline()
let s:complete_input_history_num = [0,0]
endfunction
@ -753,7 +753,7 @@ function! s:previous_match_history() abort
endif
let s:complete_input_history_num[0] += 1
let s:MPT._prompt.begin = s:complete_input_history(s:complete_input_history_base, s:complete_input_history_num)
noautocmd normal! "_ggdG
noautocmd normal! gg"_dG
call s:MPT._handle_fly(s:MPT._prompt.begin . s:MPT._prompt.cursor .s:MPT._prompt.end)
endfunction
@ -765,7 +765,7 @@ function! s:next_match_history() abort
endif
let s:complete_input_history_num[1] += 1
let s:MPT._prompt.begin = s:complete_input_history(s:complete_input_history_base, s:complete_input_history_num)
noautocmd normal! "_ggdG
noautocmd normal! gg"_dG
call s:MPT._handle_fly(s:MPT._prompt.begin . s:MPT._prompt.cursor .s:MPT._prompt.end)
endfunction

View File

@ -127,7 +127,7 @@ function! s:open_describe_buffer(desc) abort
exe winnr . 'wincmd w'
endif
setlocal modifiable
silent normal! "_ggdG
silent normal! gg"_dG
silent call setline(1, a:desc)
setlocal nomodifiable
let b:defind_file_name = split(a:desc[-1][12:], ':')