From: Richard Russon Date: Sat, 18 Jun 2016 22:59:04 +0000 (+0100) Subject: make the cursor resetting work in slang X-Git-Tag: neomutt-20160709~21^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78a019f202f1125386db5290f1d39b5164067be8;p=neomutt make the cursor resetting work in slang fixes: neomutt/homebrew-neomutt#13 --- diff --git a/sidebar.c b/sidebar.c index 333ec609e..1cfb9309f 100644 --- a/sidebar.c +++ b/sidebar.c @@ -837,8 +837,13 @@ void mutt_sb_draw (void) /* if (OldVisible == 0) */ /* mutt_buffy_check (1); we probably have bad or no numbers */ +#ifdef USE_SLANG_CURSES + int x = SLsmg_get_column(); + int y = SLsmg_get_row(); +#else int x = getcurx (stdscr); int y = getcury (stdscr); +#endif int first_row = 0; int num_rows = LINES - 2;