Properly re-draw when query is empty

This commit is contained in:
Daisuke Maki 2015-03-15 09:11:18 +09:00
parent 18f6c847d9
commit 105e067172

4
ctx.go
View file

@ -260,6 +260,10 @@ func (c *Ctx) ExecQuery() bool {
defer trace("Ctx.ExecQuery: END")
if c.QueryLen() <= 0 {
if c.activeLineBuffer != nil {
c.ResetActiveLineBuffer()
return true
}
return false
}