Mercurial > vim
diff src/window.c @ 15636:6f1c7e9a6393 v8.1.0826
patch 8.1.0826: too many #ifdefs
commit https://github.com/vim/vim/commit/29ddebef4038d2d2b3bc9d8d3b0109f4046d6fbf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 26 17:28:26 2019 +0100
patch 8.1.0826: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Jan 2019 17:30:15 +0100 |
parents | 62b3805506b3 |
children | ad8b2c109b22 |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -3439,9 +3439,7 @@ win_init_empty(win_T *wp) wp->w_lines_valid = 0; wp->w_cursor.lnum = 1; wp->w_curswant = wp->w_cursor.col = 0; -#ifdef FEAT_VIRTUALEDIT wp->w_cursor.coladd = 0; -#endif wp->w_pcmark.lnum = 1; /* pcmark not cleared but set to line 1 */ wp->w_pcmark.col = 0; wp->w_prev_pcmark.lnum = 0; @@ -4418,10 +4416,8 @@ win_enter_ext( curwin = wp; curbuf = wp->w_buffer; check_cursor(); -#ifdef FEAT_VIRTUALEDIT if (!virtual_active()) curwin->w_cursor.coladd = 0; -#endif changed_line_abv_curs(); /* assume cursor position needs updating */ if (curwin->w_localdir != NULL)