Skip to content

Commit

Permalink
Add a space after completing names or emotes(#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascdev committed Dec 13, 2023
1 parent 24896d8 commit e4b233d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ Changes:
* Render global 7tv emotes
* Show tooltip with emote's name when hovering over it
* Clickable urls(#47)
* Add a space after completing names or emotes(#48)

4 changes: 2 additions & 2 deletions hasherino/components/new_message_row.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def emote_completion(self):
)

self.new_message.value = (
f"{self.new_message.value[:-len(last_word)]}{best_match_emote}"
f"{self.new_message.value[:-len(last_word)]}{best_match_emote} "
)
logging.debug(
f"Found emote completion for {last_word} -> {best_match_emote}."
Expand All @@ -125,7 +125,7 @@ async def user_completion(self):
for user in sorted_user_list:
if user.lower().startswith(last_word.lower()):
self.new_message.value = (
f"{self.new_message.value[:-len(last_word)]}{user}"
f"{self.new_message.value[:-len(last_word)]}{user} "
)
logging.debug(
f"Found username completion for {last_word} -> {user}."
Expand Down

0 comments on commit e4b233d

Please sign in to comment.