about summary refs log tree commit diff stats
path: root/doc/tools/print_keys.py
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-09-06 22:26:10 +0200
committertoonn <toonn@toonn.io>2021-09-06 22:26:10 +0200
commit99771df4d7ec71b45976bdc85be66c30b725d14e (patch)
treedddf80df892f850736f585703549ed6db1dbc64c /doc/tools/print_keys.py
parent46abf8c9fa439de921886a7aed2e4d2e8251b6fd (diff)
downloadranger-99771df4d7ec71b45976bdc85be66c30b725d14e.tar.gz
commands: Fix off-by-one shift in setinpath/regex
Rather than complicating the matter by adding 1 to shift the specific
set command (not sure why this works for me in testing, since
`parse_setting_from_line` already drops the command) and then taking the
minimum of the length of the path and 1 because of the "path=" bit
that's always present, even if the path is an empty string, we just
recreate the argument, substituting "=" for "path=", and iterate over
the whitespace seperated parts and shift once for each.
Diffstat (limited to 'doc/tools/print_keys.py')
0 files changed, 0 insertions, 0 deletions