aboutsummaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-04-06 23:21:18 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-04-06 23:23:58 +0200
commit1c442e6aefd8855cdeec776b0e4e604edf585884 (patch)
tree18b7a62118ce65473d3bd192b2c86a1954f42178 /src/io.c
parentd0b0ed3c202c3212a65ba628026a53d9663fc2d7 (diff)
downloadcalcurse-1c442e6aefd8855cdeec776b0e4e604edf585884.tar.gz
calcurse-1c442e6aefd8855cdeec776b0e4e604edf585884.zip
Miscellaneous small code cleanups
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/io.c b/src/io.c
index d1d2f44..ded7889 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1239,13 +1239,12 @@ io_log_print (struct io_file *log, int line, const char *msg)
void
io_log_display (struct io_file *log, const char *msg, char *pager)
{
- char *choices = "[y/n] ";
int ans;
RETURN_IF (log == NULL, _("No log file to display!"));
if (ui_mode == UI_CMDLINE)
{
- printf ("\n%s %s", msg, choices);
+ printf ("\n%s [y/n] ", msg);
ans = fgetc (stdin);
if (ans == 'y')
{
@@ -1258,7 +1257,7 @@ io_log_display (struct io_file *log, const char *msg, char *pager)
}
else
{
- status_mesg (msg, choices);
+ status_mesg_yesno (msg);
do
{
ans = wgetch (win[STA].p);