Mercurial > vim
comparison src/buffer.c @ 17809:59f8948b7590 v8.1.1901
patch 8.1.1901: the +insert_expand feature is not always available
Commit: https://github.com/vim/vim/commit/e2c453d38f6512ac4cff7cd26aa7780b4e2534d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 21 14:37:09 2019 +0200
patch 8.1.1901: the +insert_expand feature is not always available
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Aug 2019 14:45:04 +0200 |
parents | ec1717981acf |
children | 7e6b7a4f13bc |
comparison
equal
deleted
inserted
replaced
17808:42561b61bfd8 | 17809:59f8948b7590 |
---|---|
308 save_file_ff(curbuf); /* keep this fileformat */ | 308 save_file_ff(curbuf); /* keep this fileformat */ |
309 | 309 |
310 /* Set last_changedtick to avoid triggering a TextChanged autocommand right | 310 /* Set last_changedtick to avoid triggering a TextChanged autocommand right |
311 * after it was added. */ | 311 * after it was added. */ |
312 curbuf->b_last_changedtick = CHANGEDTICK(curbuf); | 312 curbuf->b_last_changedtick = CHANGEDTICK(curbuf); |
313 #ifdef FEAT_INS_EXPAND | |
314 curbuf->b_last_changedtick_pum = CHANGEDTICK(curbuf); | 313 curbuf->b_last_changedtick_pum = CHANGEDTICK(curbuf); |
315 #endif | |
316 | 314 |
317 /* require "!" to overwrite the file, because it wasn't read completely */ | 315 /* require "!" to overwrite the file, because it wasn't read completely */ |
318 #ifdef FEAT_EVAL | 316 #ifdef FEAT_EVAL |
319 if (aborting()) | 317 if (aborting()) |
320 #else | 318 #else |
2226 clear_string_option(&buf->b_p_cino); | 2224 clear_string_option(&buf->b_p_cino); |
2227 #endif | 2225 #endif |
2228 #if defined(FEAT_CINDENT) || defined(FEAT_SMARTINDENT) | 2226 #if defined(FEAT_CINDENT) || defined(FEAT_SMARTINDENT) |
2229 clear_string_option(&buf->b_p_cinw); | 2227 clear_string_option(&buf->b_p_cinw); |
2230 #endif | 2228 #endif |
2231 #ifdef FEAT_INS_EXPAND | |
2232 clear_string_option(&buf->b_p_cpt); | 2229 clear_string_option(&buf->b_p_cpt); |
2233 #endif | |
2234 #ifdef FEAT_COMPL_FUNC | 2230 #ifdef FEAT_COMPL_FUNC |
2235 clear_string_option(&buf->b_p_cfu); | 2231 clear_string_option(&buf->b_p_cfu); |
2236 clear_string_option(&buf->b_p_ofu); | 2232 clear_string_option(&buf->b_p_ofu); |
2237 #endif | 2233 #endif |
2238 #ifdef FEAT_QUICKFIX | 2234 #ifdef FEAT_QUICKFIX |
2245 clear_string_option(&buf->b_p_tags); | 2241 clear_string_option(&buf->b_p_tags); |
2246 clear_string_option(&buf->b_p_tc); | 2242 clear_string_option(&buf->b_p_tc); |
2247 #ifdef FEAT_EVAL | 2243 #ifdef FEAT_EVAL |
2248 clear_string_option(&buf->b_p_tfu); | 2244 clear_string_option(&buf->b_p_tfu); |
2249 #endif | 2245 #endif |
2250 #ifdef FEAT_INS_EXPAND | |
2251 clear_string_option(&buf->b_p_dict); | 2246 clear_string_option(&buf->b_p_dict); |
2252 clear_string_option(&buf->b_p_tsr); | 2247 clear_string_option(&buf->b_p_tsr); |
2253 #endif | |
2254 #ifdef FEAT_TEXTOBJ | 2248 #ifdef FEAT_TEXTOBJ |
2255 clear_string_option(&buf->b_p_qe); | 2249 clear_string_option(&buf->b_p_qe); |
2256 #endif | 2250 #endif |
2257 buf->b_p_ar = -1; | 2251 buf->b_p_ar = -1; |
2258 buf->b_p_ul = NO_LOCAL_UNDOLEVEL; | 2252 buf->b_p_ul = NO_LOCAL_UNDOLEVEL; |