textview: Don't scroll for pastes in another view
authorMatthias Clasen <mclasen@redhat.com>
Mon, 14 May 2018 12:03:34 +0000 (13:03 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 14 May 2018 12:03:34 +0000 (13:03 +0100)
commit71718b9cd1ee239b25ae5df9ef8795d309dbc028
tree651e98506a2755050cedb363e08080a00f8a1181
parent14e5218753dbf0c440ea00a7269e25869df4ae7d
textview: Don't scroll for pastes in another view

GtkTextView scrolls to the insertion point when the text
buffer signals a paste is done. This is wrong when there
are multiple views on the same buffer, and the paste
happened in another view.

To fix this, flip the handling of the scroll_after_paste
boolean to only be TRUE if we know that we want to scroll.
gtk/gtktextview.c