summaryrefslogtreecommitdiff
path: root/src/shared_string.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-07-29 20:42:59 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2022-07-30 22:17:32 +0200
commit45aad1ed2cf9986942dc0ccc8aaf3729063ebf79 (patch)
tree4b32145483172c22b234b4c4df55ba8a6a329dae /src/shared_string.cc
parent329b215494ed1d3a294a134ecc39dda3e5256e82 (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/shared_string.cc')
0 files changed, 0 insertions, 0 deletions