Dont insert empty spaces when no completions are found
This commit is contained in:
parent
d7b0aa48c9
commit
ef6693a239
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user