Mercurial > vim
diff src/term.c @ 12513:3ca08bf99396 v8.0.1135
patch 8.0.1135: W_WINCOL() is always the same
commit https://github.com/vim/vim/commit/53f8174eaeb93b381cf74c58863f8fe82748a22a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 22 14:35:51 2017 +0200
patch 8.0.1135: W_WINCOL() is always the same
Problem: W_WINCOL() is always the same.
Solution: Expand the macro.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 22 Sep 2017 14:45:06 +0200 |
parents | 93a849230c1c |
children | 33a900199c25 |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -3816,8 +3816,8 @@ scroll_region_set(win_T *wp, int off) OUT_STR(tgoto((char *)T_CS, W_WINROW(wp) + wp->w_height - 1, W_WINROW(wp) + off)); if (*T_CSV != NUL && wp->w_width != Columns) - OUT_STR(tgoto((char *)T_CSV, W_WINCOL(wp) + wp->w_width - 1, - W_WINCOL(wp))); + OUT_STR(tgoto((char *)T_CSV, wp->w_wincol + wp->w_width - 1, + wp->w_wincol)); screen_start(); /* don't know where cursor is now */ }