mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.2254: Vim9: bool option type is number
Problem: Vim9: bool option type is number. Solution: Have get_option_value() return a different value for bool and number options. (closes #7583)
This commit is contained in:
11
src/option.h
11
src/option.h
@@ -60,6 +60,17 @@
|
||||
#define P_RWINONLY 0x10000000L // only redraw current window
|
||||
#define P_MLE 0x20000000L // under control of 'modelineexpr'
|
||||
|
||||
// Returned by get_option_value().
|
||||
typedef enum {
|
||||
gov_unknown,
|
||||
gov_bool,
|
||||
gov_number,
|
||||
gov_string,
|
||||
gov_hidden_bool,
|
||||
gov_hidden_number,
|
||||
gov_hidden_string
|
||||
} getoption_T;
|
||||
|
||||
/*
|
||||
* Default values for 'errorformat'.
|
||||
* The "%f|%l| %m" one is used for when the contents of the quickfix window is
|
||||
|
Reference in New Issue
Block a user