From 5a109cc2365562fbd2e17d0ef4bc4e997fb48817 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 6 Aug 2001 17:49:06 +0000 Subject: [PATCH] Here's a fix to allow (n)curses versions to work with some terminfo entries where (for whatever reason), someone specified cvvis but not cnorm. From a report/discussion with Mario Vanoni . (From Thomas Dickey.) --- curs_lib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/curs_lib.c b/curs_lib.c index ecd1a00d..82ee5d75 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -457,7 +457,10 @@ void mutt_curs_set (int cursor) else SavedCursor = cursor; - curs_set (cursor); + if (curs_set (cursor) == ERR) { + if (cursor == 1) /* cnorm */ + curs_set (2); /* cvvis */ + } } #endif -- 2.40.0