From 421ede5ace7085ee66abcff45d890a5824739e7e Mon Sep 17 00:00:00 2001 From: Gazorby Date: Mon, 13 Apr 2020 15:12:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20check=20for=20abbr=20stat?= =?UTF-8?q?us=20in=20on=20whitespace=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/_abbr_tips_bind_space.fish | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/functions/_abbr_tips_bind_space.fish b/functions/_abbr_tips_bind_space.fish index 72b506b..7301a15 100644 --- a/functions/_abbr_tips_bind_space.fish +++ b/functions/_abbr_tips_bind_space.fish @@ -1,9 +1,11 @@ function _abbr_tips_bind_space commandline -i " " - if abbr -q (string trim (commandline)) - set -g _abbr_tips_is_abbr 1 - else - set -g _abbr_tips_is_abbr 0 + if test $_abbr_tips_is_abbr != 1 + if abbr -q (string trim (commandline)) + set -g _abbr_tips_is_abbr 1 + else + set -g _abbr_tips_is_abbr 0 + end end commandline -f 'expand-abbr' end