mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 01:37:25 +08: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
@ -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,
|
||||
# otherwise move down
|
||||
set lineno (commandline -L)
|
||||
set line_count (commandline|wc -l)
|
||||
set line_count (commandline | wc -l | tr -d ' ')
|
||||
|
||||
switch $lineno
|
||||
case $line_count
|
||||
|
Loading…
x
Reference in New Issue
Block a user