Merge pull request #41 from orbea/gentoo
Fix the build on gentoo.
build: Add CFLAGS default
build: Use pkgconfig to fix undefined references
On gentoo the build also requires -ltinfow which is exposed
by the ncursesw.pc pkgconfig file.
Merge pull request #40 from orbea/build
More standard install
build: Explicitly set variables
build: Use standard install variables
This removes DESTDIR from both BINDIR and MANDIR and adds it directly
to the intall and uninstall rules.
This also moves 'man1' directly to the rules as it should not be
configurable by the user.
And lastly this removes the non-standard and now useless MANPREFIX.
Merge pull request #35 from ikji/master
Correctly handle CJK/double width characters.
Fix memory errors when browsing empty directories.
Correctly handle CJK/double width characters.
Some CJK characters take more than more column on the terminal, so should use
wcswidth to calculate the screen width. Also fixed potential buffer overflow
in calls to swprintf.
Merge pull request #31 from orbea/man
Fix the date in rover.1
Fix the date in rover.1
Silences the following warning from mandoc(1)
man -Tlint rover
cannot parse date, using it verbatim
(mdoc, man) The date given in a Dd or TH macro does not follow the
conventional format.
man: rover.1.gz:1:13: WARNING: cannot parse date, using it verbatim: rover\-1.0.0
https://man.openbsd.org/mandoc.1
Prefer VISUAL to EDITOR
VISUAL is useed on many systems these days without EDITOR being set, see
the manual pages for various shells or other documentation.
This patch makes rover respect VISUAL being set in the environment and
prefer it to EDITOR.
Forbid copy/move to the same path.
Merge pull request #27 from orbea/rm
Use 'rm -f' in Makefile
Ensure CWD ends with slash.
Don't assume CWD is a valid path.