X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftic.c;h=c66a4ef4cdb93e97e82c8d2752c52043589193a6;hp=2f3b5877b1557f464d5bf6328d0a9726fd7000a2;hb=d97989d1e0db7282c723cabb44b991b951790006;hpb=97cb42f22c43eb31a4bf11475bd73ab0e0b10923 diff --git a/progs/tic.c b/progs/tic.c index 2f3b5877..c66a4ef4 100644 --- a/progs/tic.c +++ b/progs/tic.c @@ -48,7 +48,7 @@ #include #include -MODULE_ID("$Id: tic.c,v 1.278 2019/07/27 22:44:21 tom Exp $") +MODULE_ID("$Id: tic.c,v 1.281 2019/11/09 18:51:36 tom Exp $") #define STDIN_NAME "" @@ -218,7 +218,8 @@ write_it(ENTRY * ep) while ((ch = *t++) != 0) { *d++ = (char) ch; if (ch == '\\') { - *d++ = *t++; + if ((*d++ = *t++) == '\0') + break; } else if ((ch == '%') && (*t == L_BRACE)) { char *v = 0; @@ -2938,6 +2939,7 @@ check_termtype(TERMTYPE2 *tp, bool literal) * These are probably both or none. */ PAIRED(parm_index, parm_rindex); + PAIRED(parm_ich, parm_dch); /* * These may be mismatched because the terminal description relies on @@ -3054,7 +3056,7 @@ check_termtype(TERMTYPE2 *tp, bool literal) * ncurses handles it. */ if ((PRESENT(enter_insert_mode) || PRESENT(exit_insert_mode)) - && PRESENT(parm_ich)) { + && PRESENT(insert_character)) { _nc_warning("non-curses applications may be confused by ich1 with smir/rmir"); }