aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index efd260f1..d9834f9e 100644
--- a/terminal.c
+++ b/terminal.c
@@ -3018,7 +3018,7 @@ term_ime_set_cursor_rect(struct terminal *term, int x, int y, int width,
void
term_osc8_open(struct terminal *term, uint64_t id, const char *uri)
{
- if (unlikely(term->vt.osc8.begin.row < 0)) {
+ if (unlikely(term->vt.osc8.begin.row >= 0)) {
/* It’s valid to switch from one URI to another without
* closing the first one */
term_osc8_close(term);