summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorKoichi Murase <myoga.murase@gmail.com>2024-06-24 09:32:35 +0900
committerGitHub <noreply@github.com>2024-06-24 09:32:35 +0900
commit15257680948bda849747465ac4edf5e9d90f2a52 (patch)
tree99cc1a560f1ce7d726c598e66e41bec07b0485ce /shell
parenta70ea4654ebb5581d6548bc4bd0ae3fcc88646d6 (diff)
downloadfzf-15257680948bda849747465ac4edf5e9d90f2a52.tar.gz
[man] Escape hyphens to prevent conversion to Unicode hyphens (#3885)
ASCII hyphens (U+002D HYPHEN-MINUS) in the option names (e.g. -x and --extended) and the code examples in the man pages should be escaped as \- (e.g. \-x and \-\-extended) to prevent them being converted to Unicode hyphens in some environments. For example, in openSUSE Tumbleweed, the raw ASCII hyphens in the man-page sources are configured to be the Unicode hyphen (U+2010 HYPHEN). This makes it impossible to search the option name in the man page by e.g. /--extended[RET]. A problem also arises in copying and pasting option names and code examples from the man page. It appears to be the normal ASCII hyphens by appearance (in typical terminal fonts) but are not recognized as the ASCII hyphens by the `fzf` command.
Diffstat (limited to 'shell')
0 files changed, 0 insertions, 0 deletions