Hi, Op do 31 dec. 2020 17:42 schreef Bram Moolenaar <[email protected]>:
> > Patch 8.2.2254 > Problem: Vim9: bool option type is number. > Solution: Have get_option_value() return a different value for bool and > number options. (closes #7583) > > --- src/option.c 2020-12-31 16:54:06.330813166 +0100 > *************** > *** 3834,3846 **** > * Get the value for an option. > * > * Returns: > ! * Number or Toggle option: 1, *numval gets value. > ! * String option: 0, *stringval gets allocated string. > ! * Hidden Number or Toggle option: -1. > ! * hidden String option: -2. > ! * unknown option: -3. > */ > ! int > get_option_value( > char_u *name, > long *numval, > --- 3834,3848 ---- > * Get the value for an option. > * > * Returns: > ! * Number option: gov_number, *numval gets value. > ! * Tottle option: gov_bool, *numval gets value. > Toggle option meant here?? Christ van Willegen -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CA%2BOt1OxzwRPx8Vuzo%2Bp3iBdzU%3Dcc-NqNGMNCE_zh33_bgFHu%3Dw%40mail.gmail.com.
