Use `selection_bound` instead of `insert` to markup/scroll

github/fork/yochananmarqos/patch-1
Gonçalo Silva 2019-06-13 03:58:05 +01:00
parent 3fa56afaef
commit 55e5cd3856
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class TextView(Gtk.TextView):
self.scroller = None
def on_mark_set(self, _text_buffer, _location, mark, _data=None):
if mark.get_name() == 'insert':
if mark.get_name() == 'selection_bound':
self.markup.apply()
self.smooth_scroll_to(mark)
elif mark.get_name() == 'gtk_drag_target':