diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-03-28 22:18:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-03-28 22:18:47 +0000 |
commit | d70d97798fd94ea739d13ec7b332e224625b3471 (patch) | |
tree | 1816028d2ba9ea13109fbae7630ffa2d67fc0acb /usr.bin | |
parent | 7af38517f2c58a012de8a120447acda71d4f3a0f (diff) |
Fix offset of list ranges.
Diffstat (limited to 'usr.bin')
-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; } |