Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
15635:c51d2a06f5f9 | 15636:6f1c7e9a6393 |
---|---|
3437 { | 3437 { |
3438 redraw_win_later(wp, NOT_VALID); | 3438 redraw_win_later(wp, NOT_VALID); |
3439 wp->w_lines_valid = 0; | 3439 wp->w_lines_valid = 0; |
3440 wp->w_cursor.lnum = 1; | 3440 wp->w_cursor.lnum = 1; |
3441 wp->w_curswant = wp->w_cursor.col = 0; | 3441 wp->w_curswant = wp->w_cursor.col = 0; |
3442 #ifdef FEAT_VIRTUALEDIT | |
3443 wp->w_cursor.coladd = 0; | 3442 wp->w_cursor.coladd = 0; |
3444 #endif | |
3445 wp->w_pcmark.lnum = 1; /* pcmark not cleared but set to line 1 */ | 3443 wp->w_pcmark.lnum = 1; /* pcmark not cleared but set to line 1 */ |
3446 wp->w_pcmark.col = 0; | 3444 wp->w_pcmark.col = 0; |
3447 wp->w_prev_pcmark.lnum = 0; | 3445 wp->w_prev_pcmark.lnum = 0; |
3448 wp->w_prev_pcmark.col = 0; | 3446 wp->w_prev_pcmark.col = 0; |
3449 wp->w_topline = 1; | 3447 wp->w_topline = 1; |
4416 curwin->w_redr_status = TRUE; | 4414 curwin->w_redr_status = TRUE; |
4417 } | 4415 } |
4418 curwin = wp; | 4416 curwin = wp; |
4419 curbuf = wp->w_buffer; | 4417 curbuf = wp->w_buffer; |
4420 check_cursor(); | 4418 check_cursor(); |
4421 #ifdef FEAT_VIRTUALEDIT | |
4422 if (!virtual_active()) | 4419 if (!virtual_active()) |
4423 curwin->w_cursor.coladd = 0; | 4420 curwin->w_cursor.coladd = 0; |
4424 #endif | |
4425 changed_line_abv_curs(); /* assume cursor position needs updating */ | 4421 changed_line_abv_curs(); /* assume cursor position needs updating */ |
4426 | 4422 |
4427 if (curwin->w_localdir != NULL) | 4423 if (curwin->w_localdir != NULL) |
4428 { | 4424 { |
4429 /* Window has a local directory: Save current directory as global | 4425 /* Window has a local directory: Save current directory as global |