Mercurial > vim
comparison src/optionstr.c @ 27018:268f6a3511df v8.2.4038
patch 8.2.4038: various code not used when features are disabled
Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sat Jan 8 12:41:16 2022 +0000
patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jan 2022 13:45:04 +0100 |
parents | 8c0730eca2ce |
children | aeadf4315bef |
comparison
equal
deleted
inserted
replaced
27017:da790d50f73d | 27018:268f6a3511df |
---|---|
452 curwin = save_curwin; | 452 curwin = save_curwin; |
453 curbuf = curwin->w_buffer; | 453 curbuf = curwin->w_buffer; |
454 unblock_autocmds(); | 454 unblock_autocmds(); |
455 } | 455 } |
456 | 456 |
457 #if defined(FEAT_PROP_POPUP) || defined(PROTO) | |
457 /* | 458 /* |
458 * Like set_string_option_direct(), but for a buffer-local option in "buf". | 459 * Like set_string_option_direct(), but for a buffer-local option in "buf". |
459 * Blocks autocommands to avoid the old curbuf becoming invalid. | 460 * Blocks autocommands to avoid the old curbuf becoming invalid. |
460 */ | 461 */ |
461 void | 462 void |
475 set_string_option_direct(name, opt_idx, val, opt_flags, set_sid); | 476 set_string_option_direct(name, opt_idx, val, opt_flags, set_sid); |
476 curbuf = save_curbuf; | 477 curbuf = save_curbuf; |
477 curwin->w_buffer = curbuf; | 478 curwin->w_buffer = curbuf; |
478 unblock_autocmds(); | 479 unblock_autocmds(); |
479 } | 480 } |
481 #endif | |
480 | 482 |
481 /* | 483 /* |
482 * Set a string option to a new value, and handle the effects. | 484 * Set a string option to a new value, and handle the effects. |
483 * | 485 * |
484 * Returns NULL on success or error message on error. | 486 * Returns NULL on success or error message on error. |