Skip to content

Commit

Permalink
πŸ› fix: check for abbr status in on whitespace input
Browse files Browse the repository at this point in the history
  • Loading branch information
gazorby committed Apr 13, 2020
1 parent a2b5214 commit 421ede5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions functions/_abbr_tips_bind_space.fish
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 421ede5

Please sign in to comment.