fix: empty candidate

This commit is contained in:
iff 2024-11-16 16:55:29 +01:00
parent 0177086dcc
commit 0e4e5d3714
2 changed files with 6 additions and 1 deletions

View file

@ -69,10 +69,12 @@ replace,
pattern = [
"did not match any file"
]
# alternatively `git checkout {{typo[2]({{shell(git branch | sed 's/^*//')}})}}`
suggest = [
'''
#[cmd_contains(checkout)]
git checkout {{typo[2]({{shell(git branch)}})}} '''
git branch {{command[2]}} && \
git checkout {{command[2]}} '''
]
[[match_err]]