mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fix for issue where wc on OS X would produce leading spaces, causing
down-or-search to fail to match the case statement and therefore do the wrong thing.
This commit is contained in:
parent
67bb12e569
commit
2139334c36
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ function down-or-search -d "Depending on cursor position and current mode, eithe
|
||||||
# If we are on the bottom line, start search mode,
|
# If we are on the bottom line, start search mode,
|
||||||
# otherwise move down
|
# otherwise move down
|
||||||
set lineno (commandline -L)
|
set lineno (commandline -L)
|
||||||
set line_count (commandline|wc -l)
|
set line_count (commandline | wc -l | tr -d ' ')
|
||||||
|
|
||||||
switch $lineno
|
switch $lineno
|
||||||
case $line_count
|
case $line_count
|
||||||
|
|
Loading…
Reference in a new issue