diff options
author | Wayne Rowcliffe <war1025@gmail.com> | 2014-09-19 23:28:50 -0500 |
---|---|---|
committer | Wayne Rowcliffe <war1025@gmail.com> | 2014-09-24 19:00:50 -0500 |
commit | 9b6f192693b02e2e5547baf7885d91e61eaa7735 (patch) | |
tree | cddc921b79b25a45e624f499e843d1ab8c65214f /src/nvim/screen.c | |
parent | bd1ecad4f13c75bd10daf0b542fdc95aaa347dc4 (diff) | |
download | rneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.tar.gz rneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.tar.bz2 rneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.zip |
Replace FOR_ALL_WINDOWS with FOR_ALL_WINDOWS_IN_TAB(curtab)
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index fbf208fb51..1502895802 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -206,7 +206,7 @@ void redraw_later_clear(void) */ void redraw_all_later(int type) { - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { redraw_win_later(wp, type); } } @@ -221,7 +221,7 @@ void redraw_curbuf_later(int type) void redraw_buf_later(buf_T *buf, int type) { - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_buffer == buf) { redraw_win_later(wp, type); } @@ -432,7 +432,7 @@ void update_screen(int type) check_for_delay(FALSE); if (screen_ins_lines(0, 0, msg_scrolled, (int)Rows, NULL) == FAIL) type = CLEAR; - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_winrow < msg_scrolled) { if (wp->w_winrow + wp->w_height > msg_scrolled && wp->w_redr_type < REDRAW_TOP @@ -506,7 +506,7 @@ void update_screen(int type) * Correct stored syntax highlighting info for changes in each displayed * buffer. Each buffer must only be done once. */ - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_buffer->b_mod_set) { win_T *wwp; @@ -527,7 +527,7 @@ void update_screen(int type) */ did_one = FALSE; search_hl.rm.regprog = NULL; - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_redr_type != 0) { cursor_off(); if (!did_one) { @@ -550,7 +550,7 @@ void update_screen(int type) /* Reset b_mod_set flags. Going through all windows is probably faster * than going through all buffers (there could be many buffers). */ - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { wp->w_buffer->b_mod_set = FALSE; } @@ -659,7 +659,7 @@ void update_debug_sign(buf_T *buf, linenr_T lnum) win_foldinfo.fi_level = 0; /* update/delete a specific mark */ - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (buf != NULL && lnum > 0) { if (wp->w_buffer == buf && lnum >= wp->w_topline && lnum < wp->w_botline) { @@ -688,7 +688,7 @@ void update_debug_sign(buf_T *buf, linenr_T lnum) /* update all windows that need updating */ update_prepare(); - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_redr_type != 0) { win_update(wp); } @@ -4555,7 +4555,7 @@ void rl_mirror(char_u *str) void status_redraw_all(void) { - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_status_height) { wp->w_redr_status = TRUE; redraw_later(VALID); @@ -4568,7 +4568,7 @@ void status_redraw_all(void) */ void status_redraw_curbuf(void) { - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_status_height != 0 && wp->w_buffer == curbuf) { wp->w_redr_status = TRUE; redraw_later(VALID); @@ -4581,7 +4581,7 @@ void status_redraw_curbuf(void) */ void redraw_statuslines(void) { - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_redr_status) { win_redr_status(wp); } |