mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +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 {
|
for _, m := range g.Matches {
|
||||||
if i == self.current_match {
|
if i == self.current_match {
|
||||||
t := m.Word
|
t := m.Word
|
||||||
if !g.NoTrailingSpace {
|
if !g.NoTrailingSpace && t != "" {
|
||||||
t += " "
|
t += " "
|
||||||
}
|
}
|
||||||
return t
|
return t
|
||||||
|
|||||||
Reference in New Issue
Block a user