diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-22 18:45:17 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-22 19:43:18 -0500 |
commit | 80ebfc304e295cdb1bed3d0f2781d7884933719a (patch) | |
tree | 32158dcff76a1b976223c9cb387b52fc68599ba6 /src/nvim/eval | |
parent | bc8da6cdbe4e300344e45dbc2eb5b22a7afc9e89 (diff) | |
download | rneovim-80ebfc304e295cdb1bed3d0f2781d7884933719a.tar.gz rneovim-80ebfc304e295cdb1bed3d0f2781d7884933719a.tar.bz2 rneovim-80ebfc304e295cdb1bed3d0f2781d7884933719a.zip |
vim-patch:8.2.0030: "gF" does not work on output of "verbose command"
Problem: "gF" does not work on output of "verbose command".
Solution: Recognize " line " and translations. (closes vim/vim#5391)
https://github.com/vim/vim/commit/64e74c9cc7d5aab215cf72d9bdd3aac32e128191
Diffstat (limited to 'src/nvim/eval')
-rw-r--r-- | src/nvim/eval/typval.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 72ee45a03a..728e3a7fa3 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -2732,16 +2732,7 @@ varnumber_T tv_get_number_chk(const typval_T *const tv, bool *const ret_error) return n; } case VAR_SPECIAL: { - switch (tv->vval.v_special) { - case kSpecialVarTrue: { - return 1; - } - case kSpecialVarFalse: - case kSpecialVarNull: { - return 0; - } - } - break; + return tv->vval.v_special == kSpecialVarTrue ? 1 : 0; } case VAR_UNKNOWN: { emsgf(_(e_intern2), "tv_get_number(UNKNOWN)"); |