Minor redisplay optimization when the region length is zero.
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 13 Dec 2012 08:04:40 +0000 (12:04 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 13 Dec 2012 08:04:40 +0000 (12:04 +0400)
commit40d1e43460b2f642bf1b4255a903c8ff2311b5f6
tree685c228dc7638ab0b32a77097cb68d1d8e7541b5
parentba30c70fa0afecc413b0bdf0bed0788c52a099d3
Minor redisplay optimization when the region length is zero.
* xdisp.c (markpos_of_region): New function.
(init_iterator): Do not highlight the region of zero length.
(redisplay_window): Check whether the region is of non-zero length.
(try_cursor_movement): Allow if the region length is zero.
(try_window_reusing_current_matrix, try_window_id): Likewise.
src/ChangeLog
src/xdisp.c