Skip to content

Commit d2d706f

Browse files
committed
fixup: fix cursor
1 parent b92da01 commit d2d706f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/engine/sys/con_curses.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ static void CON_SetColor( WINDOW *win, const Color::Color& color )
103103
static void CON_UpdateCursor()
104104
{
105105
// pdcurses uses a different mechanism to move the cursor than ncurses
106-
#ifdef _WIN32
107-
move( LINES - 1, Color::StrlenNocolor( PROMPT ) + 8 + input_field.GetViewCursorPos() );
108-
wnoutrefresh( stdscr );
109-
#else
106+
#ifdef USE_CURSES_NCURSES
110107
wmove( inputwin, 0, input_field.GetViewCursorPos() );
111108
wnoutrefresh( inputwin );
109+
#else
110+
move( LINES - 1, Color::StrlenNocolor( PROMPT ) + 8 + input_field.GetViewCursorPos() );
111+
wnoutrefresh( stdscr );
112112
#endif
113113
}
114114

0 commit comments

Comments
 (0)