mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00

command_line_changed: - Check (current_SID == 0) instead of KeyTyped - We want to update during mappings (KeyTyped is false then). - Check vpeekc_any() - Avoids unnecessary work. - Avoids triggering live preview during macros. - Caveat: This makes the redraw "stutter" if user spams (holds a key) in the replace pattern. But that scenario is not important. - Update screen if the command is changed to a non-live command. (`s->live` goes from true => false) => clears the preview command_line_execute: - Let CTRL-C cancel live preview do_sub: - Enforce a time limit ('redrawtime'). - Unset 'inccommand' if time limit is reached. Closes #5602 Closes #5585
28 lines
932 B
C
28 lines
932 B
C
#ifndef NVIM_OPTION_H
|
||
#define NVIM_OPTION_H
|
||
|
||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||
|
||
/* flags for buf_copy_options() */
|
||
#define BCO_ENTER 1 /* going to enter the buffer */
|
||
#define BCO_ALWAYS 2 /* always copy the options */
|
||
#define BCO_NOHELP 4 /* don't touch the help related options */
|
||
|
||
/// Flags for option-setting functions
|
||
///
|
||
/// When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global
|
||
/// values, get local value.
|
||
typedef enum {
|
||
OPT_FREE = 1, ///< Free old value if it was allocated.
|
||
OPT_GLOBAL = 2, ///< Use global value.
|
||
OPT_LOCAL = 4, ///< Use local value.
|
||
OPT_MODELINE = 8, ///< Option in modeline.
|
||
OPT_WINONLY = 16, ///< Only set window-local options.
|
||
OPT_NOWIN = 32, ///< Don’t set window-local options.
|
||
} OptionFlags;
|
||
|
||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||
# include "option.h.generated.h"
|
||
#endif
|
||
#endif // NVIM_OPTION_H
|