summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKid <44045911+kidonng@users.noreply.github.com>2022-01-16 18:37:46 +0800
committerGitHub <noreply@github.com>2022-01-16 18:37:46 +0800
commit9186d7bb7cf1f604e4bb8851a4acee1a26650589 (patch)
treeed24ba4e53f08284fead3571ef93e654dbe76ccc
parent2bf4165e5615e7bc066fe76deb9c5bb57b7ec334 (diff)
Trim current process
-rw-r--r--shell/navi.plugin.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/navi.plugin.fish b/shell/navi.plugin.fish
index ddcd3b1..c076fc8 100644
--- a/shell/navi.plugin.fish
+++ b/shell/navi.plugin.fish
@@ -1,5 +1,5 @@
function _navi_smart_replace
- set -l current_process (commandline -p)
+ set -l current_process (commandline -p | string trim)
if test $current_process = ""
commandline -p (navi --print)