mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-31 18:14:58 +08:00
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.
This commit is contained in:
parent
79b7cd69bb
commit
50ae14cf7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user