aboutsummaryrefslogtreecommitdiff
path: root/doc/vis.rst
diff options
context:
space:
mode:
authorKelsey Judson <kelseyjudson@protonmail.com>2018-01-01 19:52:40 +1300
committerKelsey Judson <kelseyjudson@protonmail.com>2018-01-01 19:52:40 +1300
commit664b3ee8b72ef815227b9f1fd76ee0ca72f3704a (patch)
tree9ebcaa0e2a2b86d487392c17159df35067cdb8f3 /doc/vis.rst
parent6557d0ee823418d3e78a4133fd5d5af9b5319bca (diff)
downloadvis-664b3ee8b72ef815227b9f1fd76ee0ca72f3704a.tar.gz
vis-664b3ee8b72ef815227b9f1fd76ee0ca72f3704a.tar.xz
vis-open: fix for absolute and non-existent paths
When the shell cannot find any matching files, the glob is not expanded, and vis-open will return the absolute path of the current working directory (because dirname outputs '.'), followed by the filename, followed by a literal '*'. This commit checks that the final path actually exists, and if not, exits with status 1. It also uses text_object_longword for the range to match, so that absolute paths are accepted, and replaced properly (else it only works back to the first '/').
Diffstat (limited to 'doc/vis.rst')
0 files changed, 0 insertions, 0 deletions