Skip to content

Commit 206b88d

Browse files
authored
fix: dmenu feature was half-baked (#1612)
1 parent 2fe11a7 commit 206b88d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ani-cli

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#!/bin/sh
22

3-
version_number="4.10.5"
3+
version_number="4.10.6"
44

55
# UI
66

77
external_menu() {
88
[ "$use_external_menu" = "1" ] && rofi "$1" -sort -dmenu -i -width 1500 -p "$2" "$3"
9-
[ "$use_external_menu" = "2" ] && dmenu -l 20 -p "$1"
9+
[ "$use_external_menu" = "2" ] && dmenu -l 20 -p "$2"
1010
}
1111

1212
launcher() {
1313
[ "$use_external_menu" = "0" ] && [ -z "$1" ] && set -- "+m" "$2"
1414
[ "$use_external_menu" = "0" ] && fzf "$1" --reverse --cycle --prompt "$2"
1515
[ "$use_external_menu" = "1" ] && external_menu "$1" "$2" "$external_menu_args"
16-
[ "$use_external_menu" = "2" ] && external_menu "$1"
16+
[ "$use_external_menu" = "2" ] && external_menu "$1" "$2"
1717
}
1818

1919
nth() {
@@ -406,8 +406,8 @@ external_menu_normal_window="${ANI_CLI_EXTERNAL_MENU_NORMAL_WINDOW:-0}"
406406
skip_intro="${ANI_CLI_SKIP_INTRO:-0}"
407407
# shellcheck disable=SC2154
408408
skip_title="$ANI_CLI_SKIP_TITLE"
409-
[ -t 0 ] || command -v dmenu && use_external_menu=2
410-
[ -t 0 ] || command -v rofi && use_external_menu=1
409+
[ -t 0 ] || (command -v dmenu && use_external_menu=2)
410+
[ -t 0 ] || (command -v rofi && use_external_menu=1)
411411
hist_dir="${ANI_CLI_HIST_DIR:-${XDG_STATE_HOME:-$HOME/.local/state}/ani-cli}"
412412
[ ! -d "$hist_dir" ] && mkdir -p "$hist_dir"
413413
histfile="$hist_dir/ani-hsts"

0 commit comments

Comments
 (0)