fix: Applied go fmt, fixed masked output

Lines 489-491 in runebuf.go are repeated in lines 506-508.
This typo led to working cursor through prompt text.
Deleting repeated lines fix that issue.
Applied go fmt to runebuf.go

* Masked output error
* Fmt
This commit is contained in:
karantin2020 2019-03-12 06:27:08 +05:00
parent 2972be24d4
commit 28ceb3e833
1 changed files with 3 additions and 6 deletions

View File

@ -486,9 +486,6 @@ func (r *RuneBuffer) output() []byte {
} else { } else {
buf.Write([]byte(string(r.cfg.MaskRune))) buf.Write([]byte(string(r.cfg.MaskRune)))
} }
if len(r.buf) > r.idx {
buf.Write(r.getBackspaceSequence())
}
} else { } else {
for _, e := range r.cfg.Painter.Paint(r.buf, r.idx) { for _, e := range r.cfg.Painter.Paint(r.buf, r.idx) {