Reported mouse coordinate is off if scrolled back
@egmontkob
Submitted by Egmont Koblinger Link to original bug (#755187)
Description
Produce some output (more than a screenful).
Start an app that handles mouse, but does not switch to alternate screen. One possibility is "vim some_existing_file" with this .vimrc: set mouse=a set ttym=xterm set t_ti= t_te=
Scroll back by a few lines using Ctrl+Shift+Up.
Click somewhere. Notice that the cursor is not moved to the location where you clicked.
The mouse escape sequence that vte sends is computed from the coordinates of the pointer within the widget; ignoring scroll_delta.
xterm, urxvt and putty first scroll the scrollbar to the very bottom so that this problem can't arise at all.
iTerm2 takes scroll_delta into account, and if you click inside the scrollback area (rather than on the area occupied by vim) then it does what it'd do if mouse mode wasn't enabled.
konsole also takes scroll_delta into account, and does nothing if you click outside of vim's area.
Version: git master
Resolution: RESOLVED FIXED