diff --git a/runebuf.go b/runebuf.go index 81d2da5..442a3b5 100644 --- a/runebuf.go +++ b/runebuf.go @@ -527,8 +527,10 @@ func (r *RuneBuffer) getBackspaceSequence() []byte { } var buf []byte for i := len(r.buf); i > r.idx; i-- { - // move input to the left of one - buf = append(buf, '\b') + // move input to the left of one, fix character where width > 1, such like chinese + for j:=0;j