]> granicus.if.org Git - mutt/commitdiff
Here's a fix to allow (n)curses versions to work with some terminfo
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 6 Aug 2001 17:49:06 +0000 (17:49 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 6 Aug 2001 17:49:06 +0000 (17:49 +0000)
entries where (for whatever reason), someone specified cvvis but not
cnorm. From a report/discussion with Mario Vanoni
<vanonim@dial.eunet.ch>. (From Thomas Dickey.)

curs_lib.c

index ecd1a00d9990deb0fe39e98c17bc787c93bcfd79..82ee5d75c13c197c302f01f7399356f250ec96cd 100644 (file)
@@ -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