aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/peterh
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-02-16 20:21:11 +0800
committerFelix Lange <fjl@twurst.com>2017-02-16 20:44:09 +0800
commit2c4455b12aca82ccd29c05c1750c25430867e545 (patch)
tree0beb8c96c7bf6a5a82434ed79218e822927434c3 /vendor/github.com/peterh
parentc8695fae359aa327da9203a57ffaf4f2d47d4370 (diff)
downloaddexon-2c4455b12aca82ccd29c05c1750c25430867e545.tar.gz
dexon-2c4455b12aca82ccd29c05c1750c25430867e545.tar.zst
dexon-2c4455b12aca82ccd29c05c1750c25430867e545.zip
vendor: update dependencies with github.com/kardianos/govendor
Diffstat (limited to 'vendor/github.com/peterh')
-rw-r--r--vendor/github.com/peterh/liner/line.go6
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)
}