mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:20:04 +08:00
Fix flygrep
This commit is contained in:
parent
850c0f40d6
commit
33a246bd2d
@ -139,7 +139,7 @@ func! s:self._handle_input(...) abort
|
||||
endf
|
||||
|
||||
func! s:self._build_prompt() abort
|
||||
redraw
|
||||
redraw!
|
||||
echohl Comment | echon self._prompt.mpt
|
||||
echohl None | echon self._prompt.begin
|
||||
echohl Wildmenu | echon self._prompt.cursor
|
||||
|
@ -158,6 +158,7 @@ function! s:close_buffer() abort
|
||||
if s:grep_timer_id != 0
|
||||
call timer_stop(s:grep_timer_id)
|
||||
endif
|
||||
pclose
|
||||
q
|
||||
endfunction
|
||||
let s:MPT._onclose = function('s:close_buffer')
|
||||
@ -188,7 +189,6 @@ function! s:grep_stdout(id, data, event) abort
|
||||
else
|
||||
call append('$', datas)
|
||||
endif
|
||||
call s:MPT._build_prompt()
|
||||
endfunction
|
||||
|
||||
function! s:grep_exit(id, data, event) abort
|
||||
@ -210,7 +210,6 @@ function! s:next_item() abort
|
||||
if s:preview_able == 1
|
||||
call s:preview()
|
||||
endif
|
||||
redrawstatus
|
||||
call s:MPT._build_prompt()
|
||||
endfunction
|
||||
|
||||
@ -223,7 +222,6 @@ function! s:previous_item() abort
|
||||
if s:preview_able == 1
|
||||
call s:preview()
|
||||
endif
|
||||
redrawstatus
|
||||
call s:MPT._build_prompt()
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user