Skip to content

Commit

Permalink
try again, this time with utf-8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Feb 5, 2024
1 parent 658c2eb commit feb221a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rplugin/python3/handlers/chat_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _add_chat_messages(
last_line_col,
last_line_row,
last_line_col,
token.split("\n"),
[tok.encode('utf-8') for tok in token.split("\n").append("")],
)

buffer_lines = cast(list[str], self.buffer.lines())
Expand All @@ -253,7 +253,7 @@ def _add_chat_messages(
last_line_col,
last_line_row,
last_line_col,
buffer.split("\n"),
[tok.encode('utf-8') for tok in buffer.split("\n")],
)

def _add_end_separator(self, model: str, no_annoyance: bool = False):
Expand Down

0 comments on commit feb221a

Please sign in to comment.