From 9f9ad6984954071b29ab8dd970c503bc50d2c883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 6 Oct 2020 19:05:11 +0200 Subject: [PATCH] term: cursor-left: unlikely -> likely for reverse-wrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since reverse wrap-around is enabled by default, we’re *likely* to take this branch. --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index a171b182..c05d71d4 100644 --- a/terminal.c +++ b/terminal.c @@ -1735,7 +1735,7 @@ term_cursor_left(struct terminal *term, int count) /* Reverse wrap */ if (unlikely(new_col < 0)) { - if (unlikely(term->reverse_wrap && term->auto_margin)) { + if (likely(term->reverse_wrap && term->auto_margin)) { /* Number of rows to reverse wrap through */ int row_count = (abs(new_col) - 1) / term->cols + 1;