summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-10-23 00:43:57 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-10-23 00:43:57 +1100
commit0ba2cce1da0172171a2b3053a969cbd99923b148 (patch)
tree4da9133414b87ed5fb9d2b1c070653c44c50c284
parent55ed8113b2f5a1182f38f8682eba2cc6fa8b96c8 (diff)
fixed history toggle
-rwxr-xr-xfff3
1 files changed, 2 insertions, 1 deletions
diff --git a/fff b/fff
index b23b666..7b650a7 100755
--- a/fff
+++ b/fff
@@ -91,7 +91,8 @@ key() {
g) l=0; refresh ;;
G) ((l=c-1)); refresh; ((k=k<0?0:k)) ;;
- .) a=(u s); shopt -"${a[((h=h>0?0:++h))]}" dotglob; refresh; get_dir ;;
+ .) a=(u s); shopt -"${a[((h=h>0?0:++h))]}" dotglob
+ l=0; refresh; get_dir ;;
y) [[ $co != "${f[l]}" ]] && { co="${f[l]}"; pr=(cp -r); } || co= ;;
m) [[ $co != "${f[l]}" ]] && { co="${f[l]}"; pr=(mv); } || co= ;;