]> git.eshelyaron.com Git - emacs.git/commit
Fix 'recenter' when visual-line-mode is turned on
authorEli Zaretskii <eliz@gnu.org>
Fri, 10 Apr 2015 10:09:42 +0000 (13:09 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 10 Apr 2015 10:09:42 +0000 (13:09 +0300)
commit5aed69af5e224bdaf38b3f890e57864f8435b4f5
treee14642f6402fb193e4093d7bdaae095880951a86
parent3638632f0bde06aac848655e28e28d188b48cd64
Fix 'recenter' when visual-line-mode is turned on

* src/window.c (Frecenter): Use the same code for GUI and TTY
frames alike; use vmotion only for "initial" frames.  This is
because vmotion doesn't support visual-line-mode.  Rewrite the
'iarg >= 0' case to use move_it_* functions instead of using
vmotion, for the same reason.  Fix the clipping of the argument
value to support scroll-margin in all cases and avoid unwarranted
recentering.  Reported by Milan Stanojević <milanst@gmail.com> in
http://lists.gnu.org/archive/html/help-gnu-emacs/2015-04/msg00092.html,
which see.
src/window.c