aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 110c8f43729..e759214fa33 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1556,8 +1556,8 @@ like in the respective argument of `key-binding'. */)
1556 window = POSN_WINDOW (position); 1556 window = POSN_WINDOW (position);
1557 1557
1558 if (WINDOWP (window) 1558 if (WINDOWP (window)
1559 && BUFFERP (XWINDOW (window)->buffer) 1559 && BUFFERP (XWINDOW (window)->contents)
1560 && XBUFFER (XWINDOW (window)->buffer) != current_buffer) 1560 && XBUFFER (XWINDOW (window)->contents) != current_buffer)
1561 { 1561 {
1562 /* Arrange to go back to the original buffer once we're done 1562 /* Arrange to go back to the original buffer once we're done
1563 processing the key sequence. We don't use 1563 processing the key sequence. We don't use
@@ -1567,7 +1567,7 @@ like in the respective argument of `key-binding'. */)
1567 things the same. 1567 things the same.
1568 */ 1568 */
1569 record_unwind_current_buffer (); 1569 record_unwind_current_buffer ();
1570 set_buffer_internal (XBUFFER (XWINDOW (window)->buffer)); 1570 set_buffer_internal (XBUFFER (XWINDOW (window)->contents));
1571 } 1571 }
1572 } 1572 }
1573 1573