Skip to content

Commit e1f63b5

Browse files
committed
fix: empty history filter
1 parent 30956cb commit e1f63b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bemenu-qalc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ get_history() {
109109
else
110110
[[ ! -f "$history_file" ]] && mkdir -p $(dirname "$history_file") && touch "$history_file"
111111
if [[ ! -s "$history_file" ]]; then
112-
echo -e "No history found\n󰈆 open gui\n󰌌 keybindings"
112+
echo -e "󰋚 no history found\n󰈆 open gui\n󰌌 keybindings"
113113
else
114114
if [[ -n "$answer" ]]; then
115115
echo -n "󰇽 "; tac "$history_file" | head -1
@@ -122,7 +122,7 @@ get_history() {
122122

123123
while [[ -n "$input" ]]; do
124124
input=$(get_history | bemenu -p "  = $answer ")
125-
if [[ "$input" =~ clear$|return$ ]]; then
125+
if [[ "$input" =~ clear$|return$|found$ ]]; then
126126
answer=""
127127
help=""
128128
elif [[ "$input" =~ ^󰇽 ]]; then

0 commit comments

Comments
 (0)