diff options
author | toonn <toonn@toonn.io> | 2022-05-26 20:11:46 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-05-26 23:42:14 +0200 |
commit | 9b47c41a3717ebcb7deeccd0ba947eb50069634e (patch) | |
tree | ce2158009098d7f0835b5a9660b8c4e9b6a198d3 /doc/config/rc.conf | |
parent | c9cb40d86bcfb7cff6453d99ba0ed70356203b5c (diff) | |
download | ranger-9b47c41a3717ebcb7deeccd0ba947eb50069634e.tar.gz |
browsercolumn: Include linum_text_len in key
The width of an item needs to be recalculated if the width of the line numbers changes. This happens every time we get to another order of magnitude (an additional digit). This is based on [review comments](https://github.com/ranger/ranger/pull/2346#issuecomment-1062257526) from markus-bauer. The solution opted for here is basically their second bullet point. I tried the third bullet point first, replacing `line_numbers` by `linum_text_len` in the key but this requires recalculating `linum_text_len` to be zero when line numbers are disabled, which feels like a somewhat clunky overloading while we have a perfectly usable boolean flag available. Closes #2346 Co-authored-by: markus-bauer <mail.markus.bauer@gmail.com>
Diffstat (limited to 'doc/config/rc.conf')
0 files changed, 0 insertions, 0 deletions