mirror of https://github.com/chzyer/readline.git
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:
parent
2972be24d4
commit
28ceb3e833
|
@ -486,9 +486,6 @@ func (r *RuneBuffer) output() []byte {
|
|||
} else {
|
||||
buf.Write([]byte(string(r.cfg.MaskRune)))
|
||||
}
|
||||
if len(r.buf) > r.idx {
|
||||
buf.Write(r.getBackspaceSequence())
|
||||
}
|
||||
|
||||
} else {
|
||||
for _, e := range r.cfg.Painter.Paint(r.buf, r.idx) {
|
||||
|
|
Loading…
Reference in New Issue