diff options
| author | Toby Goodwin <toby@paccrat.org> | 2014-09-02 08:01:39 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:22:10 +0100 |
| commit | a8699a58d8632f21e897ea5c4900a15483a9a8ca (patch) | |
| tree | fd8e7910807eb91bcd79d498582959f1d750f9c6 /var.c | |
| parent | d884971193ef4934424b77ae862e8b0ecf70bab3 (diff) | |
release: rc-1.7.2
Diffstat (limited to 'var.c')
| -rw-r--r-- | var.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,6 +2,8 @@ #include "rc.h" +#include "input.h" + static void colonassign(char *, List *, bool); static void listassign(char *, List *, bool); static int hasalias(char *); @@ -19,10 +21,8 @@ extern void varassign(char *name, List *def, bool stack) { new->def = newdef; new->extdef = NULL; set_exportable(name, TRUE); -#if READLINE - if (interactive && (streq(name, "TERM") || streq(name, "TERMCAP"))) - rl_reset_terminal(NULL); -#endif + if (streq(name, "TERM") || streq(name, "TERMCAP")) + termchange(); } /* assign a variable in string form. Check to see if it is aliased (e.g., PATH and path) */ |