From 779fc2ceca3d51e25e3efe975d51e8aea3382ced Mon Sep 17 00:00:00 2001 From: Satoshi Kinoshita Date: Thu, 14 Mar 2019 09:44:37 +0900 Subject: [PATCH] fix issule #169 for single line case --- operation.go | 2 +- runebuf.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/operation.go b/operation.go index a5f32fa..c357f40 100644 --- a/operation.go +++ b/operation.go @@ -385,7 +385,7 @@ func (o *Operation) Runes() ([]rune, error) { listener.OnChange(nil, 0, 0) } - o.buf.PrintPrompt() // print prompt + o.buf.Print() // print prompt o.t.KickRead() select { case r := <-o.outchan: diff --git a/runebuf.go b/runebuf.go index 4e4627c..6059b22 100644 --- a/runebuf.go +++ b/runebuf.go @@ -471,7 +471,7 @@ func (r *RuneBuffer) SetOffset(offset string) { r.Unlock() } -func (r *RuneBuffer) PrintPrompt() { +func (r *RuneBuffer) Print() { r.Lock() r.print() r.Unlock()