summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-08-23 19:35:25 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-08-23 19:35:25 +0900
commit74f196eebbc6adfbb4d6423fbefe3c8cdeebe67e (patch)
tree0449b353d923e4eccb8dfbc4d24e5fcc37f4a8b6
parentcf2242aea30bf709282fb3c6ff8867c0593c3664 (diff)
[vim] Fix callback not run on exit code 1
-rw-r--r--plugin/fzf.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 2fb27d5f..0f05c453 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -727,7 +727,7 @@ function! s:execute(dict, command, use_height, temps) abort
let exit_status = v:shell_error
redraw!
let lines = s:collect(a:temps)
- return s:exit_handler(a:dict, exit_status, command) == 0 ? lines : []
+ return s:exit_handler(a:dict, exit_status, command) < 2 ? lines : []
endfunction
function! s:execute_tmux(dict, command, temps) abort
@@ -742,7 +742,7 @@ function! s:execute_tmux(dict, command, temps) abort
let exit_status = v:shell_error
redraw!
let lines = s:collect(a:temps)
- return s:exit_handler(a:dict, exit_status, command) == 0 ? lines : []
+ return s:exit_handler(a:dict, exit_status, command) < 2 ? lines : []
endfunction
function! s:calc_size(max, val, dict)
@@ -908,7 +908,7 @@ function! s:execute_term(dict, command, temps) abort
endif
let lines = s:collect(self.temps)
- if s:exit_handler(self.dict, a:code, self.command, 1) != 0
+ if s:exit_handler(self.dict, a:code, self.command, 1) >= 2
return
endif