Skip to content

textview: Don't scroll for pastes in another view

Matthias Clasen requested to merge paste-scrolling into master

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.

Merge request reports