mirror of https://github.com/chzyer/readline.git
fix issule #169 for single line case
This commit is contained in:
parent
4ef58bee60
commit
779fc2ceca
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue