diff options
author | watiko <service@mail.watiko.net> | 2016-02-23 01:15:57 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-23 01:19:10 +0900 |
commit | 63606bb4099c3df049a24fd31907553682e6fd09 (patch) | |
tree | 9df5123b1471395770335098aea69ab44700b380 /src/nvim/normal.c | |
parent | faf828b476cd1cb6668a8de458d2f25eafb650e6 (diff) | |
download | rneovim-63606bb4099c3df049a24fd31907553682e6fd09.tar.gz rneovim-63606bb4099c3df049a24fd31907553682e6fd09.tar.bz2 rneovim-63606bb4099c3df049a24fd31907553682e6fd09.zip |
vim-patch:7.4.961
Problem: Test107 fails in some circunstances.
Solution: When using "zt", "zb" and "z=" recompute the fraction.
https://github.com/vim/vim/commit/9dc2ce398bb3456cc8f590ef0260459798b34d2a
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index e064d34e09..9ee7a97270 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -4096,6 +4096,7 @@ dozet: case 't': scroll_cursor_top(0, true); redraw_later(VALID); + set_fraction(curwin); break; /* "z." and "zz": put cursor in middle of screen */ @@ -4104,6 +4105,7 @@ dozet: case 'z': scroll_cursor_halfway(true); redraw_later(VALID); + set_fraction(curwin); break; /* "z^", "z-" and "zb": put cursor at bottom of screen */ @@ -4124,6 +4126,7 @@ dozet: case 'b': scroll_cursor_bot(0, true); redraw_later(VALID); + set_fraction(curwin); break; /* "zH" - scroll screen right half-page */ |