Do not adjust point in a non-selected window

* src/keyboard.c (command_loop_1): Do not adjust point when
current buffer is not shown in selected window (Bug#20590).
This commit is contained in:
Nicolas Richard 2015-06-05 18:57:26 +02:00
parent bb2c6d2eb5
commit d31cd49074

View file

@ -1618,6 +1618,7 @@ command_loop_1 (void)
finalize:
if (current_buffer == prev_buffer
&& XBUFFER (XWINDOW (selected_window)->contents) == current_buffer
&& last_point_position != PT
&& NILP (Vdisable_point_adjustment)
&& NILP (Vglobal_disable_point_adjustment))