diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-01-29 20:22:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 20:22:25 +0100 |
commit | e0242c4a937be5b5a7eea21bfe780fb49216e2a2 (patch) | |
tree | 934cefaf8b9a44a18fd134ef11b27d74a32089b0 /src/nvim/option.c | |
parent | 4b719e4a16dfab0829d833ed8bbc102bf6c6b0b4 (diff) | |
parent | baec0d3152afeab3007ebb505f3fc274511db434 (diff) | |
download | rneovim-e0242c4a937be5b5a7eea21bfe780fb49216e2a2.tar.gz rneovim-e0242c4a937be5b5a7eea21bfe780fb49216e2a2.tar.bz2 rneovim-e0242c4a937be5b5a7eea21bfe780fb49216e2a2.zip |
Merge pull request #17222 from bfredl/babajpy2
feat(provider)!: remove support for python2 and python3.[3-6]
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index a4a6423ac7..2fb1966cda 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -4349,6 +4349,12 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, char *errbuf, } else if (value > 10000) { errmsg = e_invarg; } + } else if (pp == &p_pyx) { + if (value == 0) { + value = 3; + } else if (value != 3) { + errmsg = e_invarg; + } } else if (pp == &p_re) { if (value < 0 || value > 2) { errmsg = e_invarg; @@ -4523,10 +4529,6 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, char *errbuf, if (pum_drawn()) { pum_redraw(); } - } else if (pp == &p_pyx) { - if (p_pyx != 0 && p_pyx != 2 && p_pyx != 3) { - errmsg = e_invarg; - } } else if (pp == &p_ul || pp == &curbuf->b_p_ul) { // sync undo before 'undolevels' changes // use the old value, otherwise u_sync() may not work properly |