diff options
author | Wayne Rowcliffe <war1025@gmail.com> | 2014-08-20 18:35:07 -0500 |
---|---|---|
committer | Wayne Rowcliffe <war1025@gmail.com> | 2014-09-08 17:27:41 -0500 |
commit | fe99930c46c096b9be277d3201b3ea9b5bf2f659 (patch) | |
tree | 243fdae47827774138943822b4237c1decdd8a16 /src/nvim/ops.c | |
parent | 3f5482d3251b3bbdc7c4df8a8e64eb3af7e5922c (diff) | |
download | rneovim-fe99930c46c096b9be277d3201b3ea9b5bf2f659.tar.gz rneovim-fe99930c46c096b9be277d3201b3ea9b5bf2f659.tar.bz2 rneovim-fe99930c46c096b9be277d3201b3ea9b5bf2f659.zip |
Convert FOR_ALL_WINDOWS to use a locally declared pointer
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index f1cb34577b..317d773748 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -3698,17 +3698,15 @@ op_format ( } if (oap->is_VIsual) { - win_T *wp; - - FOR_ALL_WINDOWS(wp) - { + FOR_ALL_WINDOWS(wp) { if (wp->w_old_cursor_lnum != 0) { /* When lines have been inserted or deleted, adjust the end of * the Visual area to be redrawn. */ - if (wp->w_old_cursor_lnum > wp->w_old_visual_lnum) + if (wp->w_old_cursor_lnum > wp->w_old_visual_lnum) { wp->w_old_cursor_lnum += old_line_count; - else + } else { wp->w_old_visual_lnum += old_line_count; + } } } } |