Mercurial > vim
comparison src/memline.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 | 7fad90423bd2 |
comparison
equal
deleted
inserted
replaced
15635:c51d2a06f5f9 | 15636:6f1c7e9a6393 |
---|---|
5665 } | 5665 } |
5666 else | 5666 else |
5667 { | 5667 { |
5668 curwin->w_cursor.lnum = lnum; | 5668 curwin->w_cursor.lnum = lnum; |
5669 curwin->w_cursor.col = (colnr_T)boff; | 5669 curwin->w_cursor.col = (colnr_T)boff; |
5670 # ifdef FEAT_VIRTUALEDIT | |
5671 curwin->w_cursor.coladd = 0; | 5670 curwin->w_cursor.coladd = 0; |
5672 # endif | |
5673 curwin->w_set_curswant = TRUE; | 5671 curwin->w_set_curswant = TRUE; |
5674 } | 5672 } |
5675 check_cursor(); | 5673 check_cursor(); |
5676 | 5674 |
5677 /* Make sure the cursor is on the first byte of a multi-byte char. */ | 5675 /* Make sure the cursor is on the first byte of a multi-byte char. */ |