diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-12-13 12:04:40 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-12-13 12:04:40 +0400 |
commit | 40d1e43460b2f642bf1b4255a903c8ff2311b5f6 (patch) | |
tree | 685c228dc7638ab0b32a77097cb68d1d8e7541b5 /lisp/emacs-lisp/ert.el | |
parent | ba30c70fa0afecc413b0bdf0bed0788c52a099d3 (diff) | |
download | emacs-40d1e43460b2f642bf1b4255a903c8ff2311b5f6.tar.gz emacs-40d1e43460b2f642bf1b4255a903c8ff2311b5f6.tar.bz2 emacs-40d1e43460b2f642bf1b4255a903c8ff2311b5f6.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/ert.el')
0 files changed, 0 insertions, 0 deletions