aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Richard2015-06-06 10:05:07 +0200
committerNicolas Richard2015-06-06 13:23:18 +0200
commit6f10a3f90fb94506031712140246f1a5dbee71eb (patch)
tree64272ad628af3533047c590479780bd2ca5e434b /src
parent73e6f36ed672edc827621b85dc88b8521030633d (diff)
downloademacs-6f10a3f90fb94506031712140246f1a5dbee71eb.tar.gz
emacs-6f10a3f90fb94506031712140246f1a5dbee71eb.zip
Add assertion in adjust_point_for_property
* src/keyboard.c (adjust_point_for_property): Add eassert for current buffer being shown in selected window.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index bedd10bc33e..23f7ce77143 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1687,6 +1687,8 @@ adjust_point_for_property (ptrdiff_t last_pt, bool modified)
1687 bool check_composition = ! modified, check_display = 1, check_invisible = 1; 1687 bool check_composition = ! modified, check_display = 1, check_invisible = 1;
1688 ptrdiff_t orig_pt = PT; 1688 ptrdiff_t orig_pt = PT;
1689 1689
1690 eassert (XBUFFER (XWINDOW (selected_window)->contents) == current_buffer);
1691
1690 /* FIXME: cycling is probably not necessary because these properties 1692 /* FIXME: cycling is probably not necessary because these properties
1691 can't be usefully combined anyway. */ 1693 can't be usefully combined anyway. */
1692 while (check_composition || check_display || check_invisible) 1694 while (check_composition || check_display || check_invisible)