tweaks: move a cursor-on switch to a more logical place (again)
But do it correctly this time: don't switch it on when replacing.master
parent
f03f5d5b51
commit
86121cf3fc
|
@ -779,6 +779,10 @@ int do_yesno_prompt(bool all, const char *msg)
|
||||||
|
|
||||||
wnoutrefresh(bottomwin);
|
wnoutrefresh(bottomwin);
|
||||||
|
|
||||||
|
/* When not replacing, show the cursor. */
|
||||||
|
if (!all)
|
||||||
|
curs_set(1);
|
||||||
|
|
||||||
currmenu = MYESNO;
|
currmenu = MYESNO;
|
||||||
kbinput = get_kbinput(bottomwin);
|
kbinput = get_kbinput(bottomwin);
|
||||||
|
|
||||||
|
|
|
@ -3375,8 +3375,6 @@ void do_linter(void)
|
||||||
sprintf(msg, _("This message is for unopened file %s,"
|
sprintf(msg, _("This message is for unopened file %s,"
|
||||||
" open it in a new buffer?"),
|
" open it in a new buffer?"),
|
||||||
curlint->filename);
|
curlint->filename);
|
||||||
/* Show a cursor after the question. */
|
|
||||||
curs_set(1);
|
|
||||||
i = do_yesno_prompt(FALSE, msg);
|
i = do_yesno_prompt(FALSE, msg);
|
||||||
free(msg);
|
free(msg);
|
||||||
if (i == -1) {
|
if (i == -1) {
|
||||||
|
|
|
@ -2085,9 +2085,6 @@ void warn_and_shortly_pause(const char *msg)
|
||||||
statusbar(msg);
|
statusbar(msg);
|
||||||
beep();
|
beep();
|
||||||
napms(1800);
|
napms(1800);
|
||||||
|
|
||||||
/* Switch the cursor back on after displaying the message. */
|
|
||||||
curs_set(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display a message on the statusbar, and set suppress_cursorpos to
|
/* Display a message on the statusbar, and set suppress_cursorpos to
|
||||||
|
|
Loading…
Reference in New Issue