fix issule #169 for single line case

This commit is contained in:
Satoshi Kinoshita 2019-03-14 09:44:37 +09:00
parent 4ef58bee60
commit 779fc2ceca
2 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ func (o *Operation) Runes() ([]rune, error) {
listener.OnChange(nil, 0, 0) listener.OnChange(nil, 0, 0)
} }
o.buf.PrintPrompt() // print prompt o.buf.Print() // print prompt
o.t.KickRead() o.t.KickRead()
select { select {
case r := <-o.outchan: case r := <-o.outchan:

View File

@ -471,7 +471,7 @@ func (r *RuneBuffer) SetOffset(offset string) {
r.Unlock() r.Unlock()
} }
func (r *RuneBuffer) PrintPrompt() { func (r *RuneBuffer) Print() {
r.Lock() r.Lock()
r.print() r.print()
r.Unlock() r.Unlock()