mirror of
https://github.com/tmux/tmux.git
synced 2026-10-06 17:49:52 +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>
|
* 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 (srs != NULL) {
|
||||||
if (fr != NULL && !format_is_type(fr, &sy)) {
|
if (fr != NULL && !format_is_type(fr, &sy)) {
|
||||||
if (s[current].cx != fr->start) {
|
if (s[current].cx != fr->start) {
|
||||||
fr->end = s[current].cx + 1;
|
fr->end = s[current].cx;
|
||||||
TAILQ_INSERT_TAIL(&frs, fr, entry);
|
TAILQ_INSERT_TAIL(&frs, fr, entry);
|
||||||
} else
|
} else
|
||||||
free(fr);
|
free(fr);
|
||||||
|
|||||||
Reference in New Issue
Block a user