]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not adjust point in a non-selected window
authorNicolas Richard <youngfrog@members.fsf.org>
Fri, 5 Jun 2015 16:57:26 +0000 (18:57 +0200)
committerNicolas Richard <youngfrog@members.fsf.org>
Sat, 6 Jun 2015 06:34:47 +0000 (08:34 +0200)
* src/keyboard.c (command_loop_1): Do not adjust point when
current buffer is not shown in selected window (Bug#20590).

src/keyboard.c

index ca589dd46f71aacb78abc46c8b6c7608d3f7ea3c..bedd10bc33e1f613127e66b48472c56514656aea 100644 (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))