diff options
author | Daniel Matz <daniel.a.matz@nasa.gov> | 2014-02-25 21:42:15 -0600 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-31 10:08:10 -0700 |
commit | 50ae14cf7bba3a7a81e328d64d72d5b27fa65f34 (patch) | |
tree | e77c361dcd2b92072911ca89fff1f6c0245f14f3 /share/completions/hg.fish | |
parent | 79b7cd69bb3268fcf9a8ad55452d1fdf21f75eb4 (diff) |
Properly complete Mercurial bookmarks when only one bookmark exists.
The if statement checking the output of hg bookmarks uses two conditions
joined by the or keyword. However, only the first part was being used.
Wrapping the two statements with begin and end properly combines them.
Diffstat (limited to 'share/completions/hg.fish')
-rw-r--r-- | share/completions/hg.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/hg.fish b/share/completions/hg.fish index fa330451..4960c99b 100644 --- a/share/completions/hg.fish +++ b/share/completions/hg.fish @@ -227,7 +227,7 @@ end function __fish_hg_bookmarks set -l bookmarks (__fish_hg bookmarks) - if test (count $bookmarks) -gt 1; or test $bookmarks != "no bookmarks set" + if begin; test (count $bookmarks) -gt 1; or test $bookmarks != "no bookmarks set"; end printf "%s\tbookmark\n" (printf "%s\n" $bookmarks | cut -c 4- | cut -d " " -f 1) end end |