curses - don't use popup for count selection.
There are issues with dismissing the popup afterwards. These were not really investigated as a count-selection doesn't really warrant a popup anyway.
This commit is contained in:
+2
-13
@@ -298,8 +298,8 @@ curses_prev_mesg()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Shows Count: in a separate window, or at the bottom of the message
|
/* Shows Count: at the bottom of the message window,
|
||||||
window, depending on the user's settings */
|
popup_dialog is not currently implemented for this function */
|
||||||
|
|
||||||
void
|
void
|
||||||
curses_count_window(const char *count_text)
|
curses_count_window(const char *count_text)
|
||||||
@@ -317,16 +317,6 @@ curses_count_window(const char *count_text)
|
|||||||
|
|
||||||
counting = TRUE;
|
counting = TRUE;
|
||||||
|
|
||||||
if (iflags.wc_popup_dialog) { /* Display count in popup window */
|
|
||||||
startx = 1;
|
|
||||||
starty = 1;
|
|
||||||
|
|
||||||
if (countwin == NULL) {
|
|
||||||
countwin = curses_create_window(25, 1, UP);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else { /* Display count at bottom of message window */
|
|
||||||
|
|
||||||
curses_get_window_xy(MESSAGE_WIN, &winx, &winy);
|
curses_get_window_xy(MESSAGE_WIN, &winx, &winy);
|
||||||
curses_get_window_size(MESSAGE_WIN, &messageh, &messagew);
|
curses_get_window_size(MESSAGE_WIN, &messageh, &messagew);
|
||||||
|
|
||||||
@@ -351,7 +341,6 @@ curses_count_window(const char *count_text)
|
|||||||
#endif /* PDCURSES */
|
#endif /* PDCURSES */
|
||||||
startx = 0;
|
startx = 0;
|
||||||
starty = 0;
|
starty = 0;
|
||||||
}
|
|
||||||
|
|
||||||
mvwprintw(countwin, starty, startx, "%s", count_text);
|
mvwprintw(countwin, starty, startx, "%s", count_text);
|
||||||
wrefresh(countwin);
|
wrefresh(countwin);
|
||||||
|
|||||||
Reference in New Issue
Block a user