aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorEdwin Pujols <edwin.pujols5@outlook.com>2020-11-29 19:56:15 -0400
committerEdwin Pujols <edwin.pujols5@outlook.com>2020-11-29 19:56:15 -0400
commitba2e94d223d6cf4bd2594f6f2b2bfeb2aaa29368 (patch)
tree358b573eb346c2ad8c534e3bbc39f1dc9d5681f9 /src/nvim/api/vim.c
parent15e616a057a2412add6bb7adc369a2d97e20356d (diff)
downloadrneovim-ba2e94d223d6cf4bd2594f6f2b2bfeb2aaa29368.tar.gz
rneovim-ba2e94d223d6cf4bd2594f6f2b2bfeb2aaa29368.tar.bz2
rneovim-ba2e94d223d6cf4bd2594f6f2b2bfeb2aaa29368.zip
runtime: Fix man.vim count handling.
Here I use a negative number to decide whether the count has been explicitly set. I think it unlikely that negative sections will ever be created given that negative numbers complicate argument handling: ``` $ man -1 foo man: invalid option -- '1' ``` and given that there's already precedence for alphanumeric sections like `3p`, `3x`, `n`, etc. --- This does work, though: ``` $ man -S -3 baz ``` With `man baz.-3` and `man 'baz(-3)'`, (GNU) man *might* consider `-3` internally as a section, but in the end reports as if the whole argument was the name of a topic: ``` $ man 'baz(-3)' No manual entry for baz(-3) ``` --- Closes #13411.
Diffstat (limited to 'src/nvim/api/vim.c')
0 files changed, 0 insertions, 0 deletions