Mercurial > vim
comparison src/charset.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 | 536dd2bc5ac9 |
children | a6ca8cf07a98 |
comparison
equal
deleted
inserted
replaced
15635:c51d2a06f5f9 | 15636:6f1c7e9a6393 |
---|---|
1363 { | 1363 { |
1364 int list_save = curwin->w_p_list; | 1364 int list_save = curwin->w_p_list; |
1365 colnr_T vcol; | 1365 colnr_T vcol; |
1366 | 1366 |
1367 curwin->w_p_list = FALSE; | 1367 curwin->w_p_list = FALSE; |
1368 #ifdef FEAT_VIRTUALEDIT | |
1369 if (posp->coladd) | 1368 if (posp->coladd) |
1370 getvvcol(curwin, posp, NULL, &vcol, NULL); | 1369 getvvcol(curwin, posp, NULL, &vcol, NULL); |
1371 else | 1370 else |
1372 #endif | |
1373 getvcol(curwin, posp, NULL, &vcol, NULL); | 1371 getvcol(curwin, posp, NULL, &vcol, NULL); |
1374 curwin->w_p_list = list_save; | 1372 curwin->w_p_list = list_save; |
1375 return vcol; | 1373 return vcol; |
1376 } | 1374 } |
1377 | 1375 |
1378 #if defined(FEAT_VIRTUALEDIT) || defined(PROTO) | |
1379 /* | 1376 /* |
1380 * Get virtual column in virtual mode. | 1377 * Get virtual column in virtual mode. |
1381 */ | 1378 */ |
1382 void | 1379 void |
1383 getvvcol( | 1380 getvvcol( |
1423 *end = col + endadd; | 1420 *end = col + endadd; |
1424 } | 1421 } |
1425 else | 1422 else |
1426 getvcol(wp, pos, start, cursor, end); | 1423 getvcol(wp, pos, start, cursor, end); |
1427 } | 1424 } |
1428 #endif | |
1429 | 1425 |
1430 /* | 1426 /* |
1431 * Get the leftmost and rightmost virtual column of pos1 and pos2. | 1427 * Get the leftmost and rightmost virtual column of pos1 and pos2. |
1432 * Used for Visual block mode. | 1428 * Used for Visual block mode. |
1433 */ | 1429 */ |