Mercurial > vim
comparison src/option.c @ 14846:10107703b9b2 v8.1.0435
patch 8.1.0435: cursorline highlight not removed in some situation
commit https://github.com/vim/vim/commit/8c63e0ec314ba07d54b881dc629fe19e6eda1fb8
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 25 22:17:54 2018 +0200
patch 8.1.0435: cursorline highlight not removed in some situation
Problem: Cursorline highlight not removed in some situation. (Vitaly
Yashin)
Solution: Reset last_cursorline when resetting 'cursorline'. (Christian
Brabandt, closes #3481)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 25 Sep 2018 22:30:05 +0200 |
parents | 7cc2d28778ac |
children | 27b9a84395b5 |
comparison
equal
deleted
inserted
replaced
14845:1a576464722d | 14846:10107703b9b2 |
---|---|
8304 else if ((int *)varp == &p_lnr) | 8304 else if ((int *)varp == &p_lnr) |
8305 /* 'langnoremap' -> !'langremap' */ | 8305 /* 'langnoremap' -> !'langremap' */ |
8306 p_lrm = !p_lnr; | 8306 p_lrm = !p_lnr; |
8307 #endif | 8307 #endif |
8308 | 8308 |
8309 #ifdef FEAT_SYN_HL | |
8310 else if ((int *)varp == &curwin->w_p_cul && !value && old_value) | |
8311 reset_cursorline(); | |
8312 #endif | |
8313 | |
8309 #ifdef FEAT_PERSISTENT_UNDO | 8314 #ifdef FEAT_PERSISTENT_UNDO |
8310 /* 'undofile' */ | 8315 /* 'undofile' */ |
8311 else if ((int *)varp == &curbuf->b_p_udf || (int *)varp == &p_udf) | 8316 else if ((int *)varp == &curbuf->b_p_udf || (int *)varp == &p_udf) |
8312 { | 8317 { |
8313 /* Only take action when the option was set. When reset we do not | 8318 /* Only take action when the option was set. When reset we do not |