Skip to content

Commit dc3458c

Browse files
committed
test-require-arg compatibility
1 parent 40496dc commit dc3458c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf.d/done.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ if set -q __done_enabled
225225
# backwards compatibility for fish < v3.0
226226
set -q cmd_duration; or set -l cmd_duration $CMD_DURATION
227227

228-
if test $cmd_duration
228+
if test -n $cmd_duration
229229
and test $cmd_duration -gt $__done_min_cmd_duration # longer than notify_duration
230230
and not __done_is_process_window_focused # process pane or window not focused
231231

0 commit comments

Comments
 (0)