diff options
| author | 2019-03-28 22:18:46 +0000 | |
|---|---|---|
| committer | 2019-03-28 22:18:46 +0000 | |
| commit | cff1d32dc01db16b7a64baea8f24514eebcdf94e (patch) | |
| tree | 5428acbfbaeef235b00993ab74d01b2c0c0cd5a2 /usr.bin/tmux/format-draw.c | |
| parent | Expand session and window formats for buffer filters. (diff) | |
| download | wireguard-openbsd-cff1d32dc01db16b7a64baea8f24514eebcdf94e.tar.xz wireguard-openbsd-cff1d32dc01db16b7a64baea8f24514eebcdf94e.zip | |
Fix offset of list ranges.
Diffstat (limited to 'usr.bin/tmux/format-draw.c')
| -rw-r--r-- | usr.bin/tmux/format-draw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/format-draw.c b/usr.bin/tmux/format-draw.c index 6fff55951bf..8ffea3ec6c9 100644 --- a/usr.bin/tmux/format-draw.c +++ b/usr.bin/tmux/format-draw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format-draw.c,v 1.6 2019/03/20 07:30:05 nicm Exp $ */ +/* $OpenBSD: format-draw.c,v 1.7 2019/03/28 22:18:46 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -86,6 +86,9 @@ format_update_ranges(struct format_ranges *frs, struct screen *s, u_int offset, continue; } + fr->start -= start; + fr->end -= start; + fr->start += offset; fr->end += offset; } |
