diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-06-28 11:29:40 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-06-28 11:29:40 +0300 |
commit | 0c7c1a87b7795303fc57af864e997c78e8ac816e (patch) | |
tree | 707adc4c51fb07f3934a7faeb16928b2673c2fad | |
parent | 53b2dbca098e82176281fc5ee555d2485159f64e (diff) |
imprv: ChatActionProcessor: Improve detection of emoji shortcode start
-rw-r--r-- | gajim/gtk/chat_action_processor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gajim/gtk/chat_action_processor.py b/gajim/gtk/chat_action_processor.py index b03c17006..6dbe82571 100644 --- a/gajim/gtk/chat_action_processor.py +++ b/gajim/gtk/chat_action_processor.py @@ -210,7 +210,7 @@ class ChatActionProcessor(Gtk.Popover): 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. |