Skip to content
Myr

Exit status 130 when fzf is terminated by the user

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 8764be0 · Browse files · 3 files+8 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Related: #345

Diff stats

3 files+8 added−6 removed

  • other:+8 added−6 removed

3 files+8 added−6 removed

modified:plugin/fzf.vim+3 added-2 removed
226 unmodified lines
227 endif228 execute 'silent !'.command229 redraw!230 if v:shell_error231 " Do not print error message on exit status 1232 if v:shell_error > 2231 " Do not print error message on exit status 1 (no match) or 130 (interrupt)232 if v:shell_error == 2233 echohl ErrorMsg234 echo 'Error running ' . command235 echohl None236 endif237 return []238 else239 return s:callback(a:dict, a:temps)
181 unmodified lines
modified:src/constants.go+4 added-3 removed
47 unmodified lines
48 EvtClose49)5051const (52 exitOk = 053 exitNoMatch = 154 exitError = 252 exitOk = 053 exitNoMatch = 154 exitError = 255 exitInterrupt = 13056)
modified:src/terminal.go+1 added-1 removed
789 unmodified lines
790 }791 exit(exitNoMatch)792 case reqQuit:793 C.Close()794 exit(exitError)794 exit(exitInterrupt)795 }796 }797 t.placeCursor()798 t.mutex.Unlock()
321 unmodified lines