]> git.eshelyaron.com Git - emacs.git/commit
Never move gap in make_buffer_string_both.
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 14 Jan 2015 12:56:46 +0000 (15:56 +0300)
committerDmitry Antipov <dmantipov@yandex.ru>
Wed, 14 Jan 2015 12:56:46 +0000 (15:56 +0300)
commit009836b97cdab2b79cfa26c83459db3fd91c94b0
tree503ad8ac2ab0acf4fc25d3146c46349166dcba9c
parent99a1492b8a1269a9a5a280c0510d0ec00114a9a1
Never move gap in make_buffer_string_both.

* editfns.c (make_buffer_string_both): If requested range intersects
the gap, don't move the latter but copy in two regions, thus avoiding
unnecessary relocation of buffer data.
src/ChangeLog
src/editfns.c