diff options
author | Frederic Culot <calcurse@culot.org> | 2009-01-03 21:32:10 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-01-03 21:32:10 +0000 |
commit | 936b6fe3737c760657d82c50fa6b81c3011ffa27 (patch) | |
tree | cb909cd269419fdf31134ecc407315765804e7c1 /src/io.c | |
parent | bf3bce0ab2d6d5fc8448821fbfa29b48a1bb5994 (diff) | |
download | calcurse-936b6fe3737c760657d82c50fa6b81c3011ffa27.zip |
more code cleanup
Diffstat (limited to 'src/io.c')
-rwxr-xr-x | src/io.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $calcurse: io.c,v 1.54 2009/01/02 22:28:54 culot Exp $ */ +/* $calcurse: io.c,v 1.55 2009/01/03 21:32:11 culot Exp $ */ /* * Calcurse - text-based organizer @@ -975,7 +975,8 @@ io_save_cal (conf_t *conf, io_save_display_t display) } /* Print a message telling data were saved */ - if (ui_mode == UI_CURSES && !conf->skip_system_dialogs) + if (ui_mode == UI_CURSES && !conf->skip_system_dialogs + && display != IO_SAVE_DISPLAY_MARK) { status_mesg (save_success, enter); (void)wgetch (win[STA].p); @@ -1693,7 +1694,7 @@ ical_unformat_line (char *line) switch (*p) { case LINE_FEED: - return strdup (uline); + return mem_strdup (uline); case CARRIAGE_RETURN: break; case '\\': @@ -2766,7 +2767,7 @@ io_log_display (io_file_t *log, char *msg, char *pager) } } while (ans != 'y' && ans != 'n'); - erase_status_bar (); + wins_erase_status_bar (); } } |