From 0d86aed2dfa97cbf242579d1a8281f1fe1a50257 Mon Sep 17 00:00:00 2001 From: Adriaan Groenenboom Date: Sun, 22 Apr 2018 21:10:56 +0200 Subject: Return from mainMenu when switching root Fixes broken autotype with multiple roots --- rofi-pass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rofi-pass b/rofi-pass index 4ce5bb1..13f652d 100755 --- a/rofi-pass +++ b/rofi-pass @@ -369,8 +369,8 @@ mainMenu () { # Actions based on exit code, which do not need the entry. # The exit code for -kb-custom-X is X+9. case "${rofi_exit}" in - 19) roots_index=$(( (roots_index-1+roots_length) % roots_length)); root=${roots[$roots_index]}; mainMenu;; - 20) roots_index=$(( (roots_index+1) % roots_length)); root=${roots[$roots_index]}; mainMenu;; + 19) roots_index=$(( (roots_index-1+roots_length) % roots_length)); root=${roots[$roots_index]}; mainMenu; return;; + 20) roots_index=$(( (roots_index+1) % roots_length)); root=${roots[$roots_index]}; mainMenu; return;; 25) helpMenu; return;; 26) ${basecommand} --bmarks; return;; esac @@ -476,8 +476,8 @@ ${show}: Show Password File ${insert_pass}: Insert new Pass Entry ${switch}: Switch Pass/Bookmark Mode --- -${previous_root}: Switch to previous password store (--roots) -${next_root}: Switch to next password store (--roots) +${previous_root}: Switch to previous password store (--root) +${next_root}: Switch to next password store (--root) " | _rofi -dmenu -mesg "Hint: All hotkeys are configurable in config file" -p "Help > " help_val=$? if [[ $help_val -eq 1 ]]; then exit; -- cgit