mirror of
https://github.com/tmux/tmux.git
synced 2026-07-22 08:51:17 +00:00
Use correct cursor position for range end, GitHub issue 5414.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: format-draw.c,v 1.33 2026/06/29 17:08:52 nicm Exp $ */
|
||||
/* $OpenBSD: format-draw.c,v 1.34 2026/07/21 07:20:18 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -958,7 +958,7 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
|
||||
if (srs != NULL) {
|
||||
if (fr != NULL && !format_is_type(fr, &sy)) {
|
||||
if (s[current].cx != fr->start) {
|
||||
fr->end = s[current].cx + 1;
|
||||
fr->end = s[current].cx;
|
||||
TAILQ_INSERT_TAIL(&frs, fr, entry);
|
||||
} else
|
||||
free(fr);
|
||||
|
||||
Reference in New Issue
Block a user