mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:50:05 +08:00
fix(flygrep): fix delete text command
This commit is contained in:
parent
5d21105559
commit
01f5df790e
@ -324,7 +324,7 @@ function! s:change_options(key) abort
|
|||||||
endif
|
endif
|
||||||
setlocal modifiable
|
setlocal modifiable
|
||||||
let content = s:generate_git_log_popup_content()
|
let content = s:generate_git_log_popup_content()
|
||||||
normal! "_ggdG
|
normal! gg"_dG
|
||||||
call setline(1, content)
|
call setline(1, content)
|
||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
endif
|
endif
|
||||||
|
@ -372,7 +372,7 @@ function! s:close_grep_job() abort
|
|||||||
endif
|
endif
|
||||||
call timer_stop(s:grep_timer_id)
|
call timer_stop(s:grep_timer_id)
|
||||||
call timer_stop(s:preview_timer_id)
|
call timer_stop(s:preview_timer_id)
|
||||||
noautocmd normal! "_ggdG
|
noautocmd normal! gg"_dG
|
||||||
call s:update_statusline()
|
call s:update_statusline()
|
||||||
let s:complete_input_history_num = [0,0]
|
let s:complete_input_history_num = [0,0]
|
||||||
endfunction
|
endfunction
|
||||||
@ -753,7 +753,7 @@ function! s:previous_match_history() abort
|
|||||||
endif
|
endif
|
||||||
let s:complete_input_history_num[0] += 1
|
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)
|
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)
|
call s:MPT._handle_fly(s:MPT._prompt.begin . s:MPT._prompt.cursor .s:MPT._prompt.end)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -765,7 +765,7 @@ function! s:next_match_history() abort
|
|||||||
endif
|
endif
|
||||||
let s:complete_input_history_num[1] += 1
|
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)
|
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)
|
call s:MPT._handle_fly(s:MPT._prompt.begin . s:MPT._prompt.cursor .s:MPT._prompt.end)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ function! s:open_describe_buffer(desc) abort
|
|||||||
exe winnr . 'wincmd w'
|
exe winnr . 'wincmd w'
|
||||||
endif
|
endif
|
||||||
setlocal modifiable
|
setlocal modifiable
|
||||||
silent normal! "_ggdG
|
silent normal! gg"_dG
|
||||||
silent call setline(1, a:desc)
|
silent call setline(1, a:desc)
|
||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
let b:defind_file_name = split(a:desc[-1][12:], ':')
|
let b:defind_file_name = split(a:desc[-1][12:], ':')
|
||||||
|
Loading…
Reference in New Issue
Block a user