Skip to content

Commit

Permalink
make sure no newlines exist in buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Feb 5, 2024
1 parent 82ddba5 commit a7709b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rplugin/python3/handlers/chat_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _add_chat_messages(
token = buffer[: last_newline]

# Remove the token and newline from the buffer
buffer = buffer[last_newline + 1:]
buffer = buffer.replace(token, "").replace("\n", "")

self.nvim.exec_lua(
'require("CopilotChat.utils").log_info(...)', f"Token: {token}"
Expand Down

0 comments on commit a7709b9

Please sign in to comment.