OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5148560
)
[Fix] The cursor will no longer be displayed
author
Habu
<habu1010+github@gmail.com>
Mon, 31 Jan 2022 15:24:53 +0000
(
00:24
+0900)
committer
Habu
<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
patch
|
blob
|
history
diff --git
a/src/term/z-term.cpp
b/src/term/z-term.cpp
index
4a101c7
..
f6f8e47
100644
(file)
--- a/
src/term/z-term.cpp
+++ b/
src/term/z-term.cpp
@@
-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;
}
/*