summaryrefslogtreecommitdiff
path: root/etc/functions/rtab
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-09-05 22:44:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-09-05 22:44:28 +0200
commitae4e5a797514994fbe258a8e9d4be9c7d100622d (patch)
treea5469c68cfd90b47fe354f3af237b90a1c9747fe /etc/functions/rtab
parent143eebad0191f14ff3ebbf02f1e89ae24ecfd16d (diff)
fix directory names with consecutive spaces
Diffstat (limited to 'etc/functions/rtab')
-rw-r--r--etc/functions/rtab4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab
index f57b877..4351fae 100644
--- a/etc/functions/rtab
+++ b/etc/functions/rtab
@@ -3,9 +3,6 @@
## Copyright (C) 2008, 2009 by Daniel Friesel <derf@finalrewind.org>
## License: WTFPL <http://sam.zoy.org/wtfpl>
-## CAVEAT: directory-names containing two or more consecutive spaces
-## are not yet supported
-
setopt localoptions
setopt rc_quotes null_glob
@@ -13,6 +10,7 @@ typeset -i lastfull=0
typeset -i short=0
typeset -i tilde=0
typeset -i named=0
+typeset IFS=$'\n'
if zstyle -t ':prompt:rtab' fish; then
lastfull=1