diff options
Diffstat (limited to 'vendor/github.com/peterh')
-rw-r--r-- | vendor/github.com/peterh/liner/line.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/peterh/liner/line.go b/vendor/github.com/peterh/liner/line.go index 5e111ac69..cc147d608 100644 --- a/vendor/github.com/peterh/liner/line.go +++ b/vendor/github.com/peterh/liner/line.go @@ -623,6 +623,9 @@ mainLoop: case rune: switch v { case cr, lf: + if s.needRefresh { + s.refresh(p, line, pos) + } if s.multiLineMode { s.resetMultiLine(p, line, pos) } @@ -1010,6 +1013,9 @@ mainLoop: case rune: switch v { case cr, lf: + if s.needRefresh { + s.refresh(p, line, pos) + } if s.multiLineMode { s.resetMultiLine(p, line, pos) } |