Dont insert empty spaces when no completions are found
This commit is contained in:
parent
d7b0aa48c9
commit
ef6693a239
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue