diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-02-03 23:46:33 +0100 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-02-03 23:47:46 +0100 |
commit | cadb5d51ea4d623818209c6400bfcef501e1ebce (patch) | |
tree | 9dc4f7c5f1e7896f19dabd224d52a76f16f3b6bb /share/functions/down-or-search.fish | |
parent | fcdc6a48c0bbdc796975db8d0b7f32434d86d249 (diff) |
Replace `tr` invocations
Diffstat (limited to 'share/functions/down-or-search.fish')
-rw-r--r-- | share/functions/down-or-search.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/down-or-search.fish b/share/functions/down-or-search.fish index e3a9ccb3..96734239 100644 --- a/share/functions/down-or-search.fish +++ b/share/functions/down-or-search.fish @@ -16,7 +16,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 | tr -d ' ') + set line_count (count (commandline)) switch $lineno case $line_count |