Files
neovim/runtime
Edwin Pujols ba2e94d223 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.
2020-11-29 19:56:15 -04:00
..
2017-11-07 01:16:42 +01:00
2020-09-21 11:29:02 +03:00
2014-12-19 15:28:49 -05:00
2020-10-11 21:18:28 +02:00
2018-01-15 23:58:52 +01:00
2020-08-15 10:57:17 -04:00
2019-11-27 22:47:25 -08:00
2019-07-29 20:50:07 +02:00
2019-01-04 02:17:23 +01:00
2019-07-29 20:50:07 +02:00
2019-07-29 20:50:07 +02:00
2019-11-24 17:53:33 -08:00
2017-01-31 02:02:09 +01:00
2014-07-29 02:12:31 +00:00