aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_move_last.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-09-08 06:11:45 +1000
committerGravatar axel <axel@liljencrantz.se>2006-09-08 06:11:45 +1000
commit227a5da02ca252f95427997cb46e042c2be09f99 (patch)
treecf3781a1f6bde3b42bbe9d80777df4c2eea4a8e2 /share/functions/__fish_move_last.fish
parente356bdaa8ef1a70ae85848c1b1e5c26060597733 (diff)
Fix syntax bug caused by new cmdsubs slicing feature. Thanks to Martin Bähr for the report.
darcs-hash:20060907201145-ac50b-8315f1c207883bfbe56db2ec8b3a8b3635e8dc84.gz
Diffstat (limited to 'share/functions/__fish_move_last.fish')
-rw-r--r--share/functions/__fish_move_last.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_move_last.fish b/share/functions/__fish_move_last.fish
index 965072cd..b4a70f8c 100644
--- a/share/functions/__fish_move_last.fish
+++ b/share/functions/__fish_move_last.fish
@@ -19,7 +19,7 @@ function __fish_move_last -d "Move the last element of a directory history from
builtin cd $ssrc[$size_src]
# Keep all but the last from the source dir-hist
- set -e (echo $src)[$size_src]
+ set -e (echo $src)\[$size_src]
# All ok, return success
return 0