OSDN Git Service

[Fix] The cursor will no longer be displayed
authorHabu <habu1010+github@gmail.com>
Mon, 31 Jan 2022 15:24:53 +0000 (00:24 +0900)
committerHabu <habu1010+github@gmail.com>
Mon, 31 Jan 2022 15:29:29 +0000 (00:29 +0900)
Since the code to display the cursor is after the return statement, once
it disappears, it will not be displayed again.
Move the code to display the cursor to the correct position.

src/term/z-term.cpp

index 4a101c7..f6f8e47 100644 (file)
@@ -1206,13 +1206,13 @@ errr term_fresh(void)
 
     /* Actually flush the output */
     term_xtra(TERM_XTRA_FRESH, 0);
-    return 0;
-        
+
     if (!Term->soft_cursor && !scr->cu && scr->cv) {
         /* The cursor is visible, display it correctly */
         term_xtra(TERM_XTRA_SHAPE, 1);
     }
 
+    return 0;
 }
 
 /*