Skip to content
Snippets Groups Projects
Commit 0c7c1a87 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

imprv: ChatActionProcessor: Improve detection of emoji shortcode start

parent 53b2dbca
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,7 @@ def _check_for_emoji(self, start_iter: Gtk.TextIter) -> bool:
start, _end = search
colon_offset = start.get_offset()
before_colon = self._buf.get_iter_at_offset(colon_offset - 1)
if before_colon.get_char() != ' ':
if before_colon.get_char() not in (' ', '\n'):
# We want to show the menu only if text begins with a colon,
# or if a colon follows on a space. This avoids showing the
# menu within normal sentences containing colons.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment