X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=ui.c;h=2799039ca11b0d7d76e146cee03081fde9ff26fa;hb=75633ffa7a52aec7958b5cf4e0f3375683851c65;hp=d99397d4085a33747bc8ccd39e3a1f82c921a786;hpb=fe6b3612a0ddda13d974f7d71e3ab240466ddab5;p=pkg%2Fabook.git diff --git a/ui.c b/ui.c index d99397d..2799039 100644 --- a/ui.c +++ b/ui.c @@ -375,13 +375,15 @@ get_commands() for(;;) { can_resize = TRUE; /* it's safe to resize now */ - hide_cursor(); - if( should_resize ) + if(!opt_get_bool(BOOL_SHOW_CURSOR)) + hide_cursor(); + if(should_resize) refresh_screen(); ch = getch(); - show_cursor(); + if(!opt_get_bool(BOOL_SHOW_CURSOR)) + show_cursor(); can_resize = FALSE; /* it's not safe to resize anymore */ - switch( ch ) { + switch(ch) { case 'q': return; case 'Q': quit_abook(QUIT_DONTSAVE); break; case 'P': print_stderr(selected_items() ?