]> granicus.if.org Git - neomutt/commitdiff
make the cursor resetting work in slang
authorRichard Russon <rich@flatcap.org>
Sat, 18 Jun 2016 22:59:04 +0000 (23:59 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 18 Jun 2016 22:59:40 +0000 (23:59 +0100)
fixes: neomutt/homebrew-neomutt#13

sidebar.c

index 333ec609e33a24107a8f6fb472949d014328404f..1cfb9309f0b89e565b21eb45d4a4c956dcbe70c5 100644 (file)
--- 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;