aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2018-04-23 16:45:53 +0200
committerGitHub <noreply@github.com>2018-04-23 16:45:53 +0200
commit9fae61f808a21953a0582f84c9917b5d2c23fd28 (patch)
tree63ab9f2a5d828ddaf0d23426cf51a07d2803247d
parentab7fc6607a7871b2661b3e343ca1e02bbbd3e24e (diff)
parent0d86aed2dfa97cbf242579d1a8281f1fe1a50257 (diff)
downloadrofi-pass-9fae61f808a21953a0582f84c9917b5d2c23fd28.tar.gz
Merge pull request #125 from agboom/master
Return from mainMenu when switching root
-rwxr-xr-xrofi-pass8
1 files 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;