mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user