diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-07-29 20:42:59 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2022-07-30 22:17:32 +0200 |
| commit | 45aad1ed2cf9986942dc0ccc8aaf3729063ebf79 (patch) | |
| tree | 4b32145483172c22b234b4c4df55ba8a6a329dae /src | |
| parent | 329b215494ed1d3a294a134ecc39dda3e5256e82 (diff) | |
rc man: fix man-jump when selection contains first character of man link
If I use "man dirname" and select "basename"
SEE ALSO
basename(1), readlink(1)
^------^
then pressing <ret> to trigger man-jump selects everything from "ALSO"
until "basename(1)" Obviously that's not the name of a man page,
so it fails. When I select only "asename" it works.
The bad selection happens because we use a combination of <a-?> and ?
to extend the selection to a full link. This is more complicated than
it needs to be; let's just select the surrounding WORD. This works
fine because man page links never start mid-word, and trailing
characters are ignored anyway.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
