Dont insert empty spaces when no completions are found

This commit is contained in:
Kovid Goyal
2023-03-07 17:00:17 +05:30
parent d7b0aa48c9
commit ef6693a239

View File

@@ -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