Add assertion in adjust_point_for_property
* src/keyboard.c (adjust_point_for_property): Add eassert for current buffer being shown in selected window.
This commit is contained in:
parent
73e6f36ed6
commit
6f10a3f90f
1 changed files with 2 additions and 0 deletions
|
@ -1687,6 +1687,8 @@ adjust_point_for_property (ptrdiff_t last_pt, bool modified)
|
|||
bool check_composition = ! modified, check_display = 1, check_invisible = 1;
|
||||
ptrdiff_t orig_pt = PT;
|
||||
|
||||
eassert (XBUFFER (XWINDOW (selected_window)->contents) == current_buffer);
|
||||
|
||||
/* FIXME: cycling is probably not necessary because these properties
|
||||
can't be usefully combined anyway. */
|
||||
while (check_composition || check_display || check_invisible)
|
||||
|
|
Loading…
Add table
Reference in a new issue