mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-12 10:47:05 +02:00
Dont insert empty spaces when no completions are found
This commit is contained in:
@@ -47,7 +47,7 @@ func (self *completion) current_match_text() string {
|
||||
for _, m := range g.Matches {
|
||||
if i == self.current_match {
|
||||
t := m.Word
|
||||
if !g.NoTrailingSpace {
|
||||
if !g.NoTrailingSpace && t != "" {
|
||||
t += " "
|
||||
}
|
||||
return t
|
||||
|
||||
Reference in New Issue
Block a user