Skip to content

Commit 5aef823

Browse files
committed
Check result items instead of MSG arg
1 parent d98199c commit 5aef823

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

fuzzy-finder.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,10 @@ This function sets current buffer to BUF, and returns created window."
137137
(switch-to-buffer buf)
138138
new-window))
139139

140-
(cl-defun fuzzy-finder--after-term-handle-exit (_ msg)
140+
(cl-defun fuzzy-finder--after-term-handle-exit (&rest _)
141141
"Call the action function when fuzzy-finder program terminated normally.
142142
143-
Should be hooked to `term-handle-exit'.
144-
Use MSG to check if fuzzy-finder process exited with code 0."
143+
Should be hooked to `term-handle-exit'."
145144
(unless fuzzy-finder--output-file
146145
(cl-return-from fuzzy-finder--after-term-handle-exit))
147146

@@ -156,7 +155,7 @@ Use MSG to check if fuzzy-finder process exited with code 0."
156155
(lines (split-string text output-delimiter t)))
157156
(delete-file output-file)
158157
(set-window-configuration fuzzy-finder--window-configuration)
159-
(when (string= "finished\n" msg)
158+
(when lines
160159
(with-current-buffer buf
161160
(funcall action lines)))))
162161
(advice-add #'term-handle-exit

0 commit comments

Comments
 (0)