diff options
| -rw-r--r-- | src/render/stream.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/stream.rs b/src/render/stream.rs index 2c05119..ee38759 100644 --- a/src/render/stream.rs +++ b/src/render/stream.rs @@ -77,7 +77,10 @@ fn markdown_stream_inner( spinner.stop(writer)?; match reply_event { - ReplyEvent::Text(text) => { + ReplyEvent::Text(mut text) => { + // tab width hacking + text = text.replace('\t', " "); + let (col, mut row) = cursor::position()?; // Fix unexpected duplicate lines on kitty, see https://github.com/sigoden/aichat/issues/105 |
