diff --git a/gajim/gtk/chat_action_processor.py b/gajim/gtk/chat_action_processor.py index b03c17006cbbaa11f3579531c80715b4223f5686..6dbe82571a316390b4aad196175380de48d7b49e 100644 --- a/gajim/gtk/chat_action_processor.py +++ b/gajim/gtk/chat_action_processor.py @@ -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.