Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 0c7c1a87 by wurstsalat at 2022-06-28T10:29:40+02:00 imprv: ChatActionProcessor: Improve detection of emoji shortcode start
- - - - -
1 changed file:
- gajim/gtk/chat_action_processor.py
Changes:
===================================== 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.
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0c7c1a87b7795303fc57af864e997c78e...