From 71b235bfa7dccc3b5b12433a9d41127a137df757 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sun, 2 Feb 2014 14:07:23 -0800 Subject: 32341: heuristic initialization of ZLE_RPROMPT_INDENT --- Src/init.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'Src') diff --git a/Src/init.c b/Src/init.c index bd871cbbd..da2a1bf56 100644 --- a/Src/init.c +++ b/Src/init.c @@ -749,9 +749,8 @@ init_term(void) tcstr[TCCLEARSCREEN] = ztrdup("\14"); tclen[TCCLEARSCREEN] = 1; } -#if 0 /* This might work, but there may be more to it */ + /* This might work, but there may be more to it */ rprompt_indent = (hasye || !tccan(TCLEFT)) ? 1 : 0; -#endif } return 1; } @@ -1003,15 +1002,6 @@ setupvals(void) setiparam("COLUMNS", zterm_columns); setiparam("LINES", zterm_lines); #endif - { - /* Import from environment, overrides init_term() */ - struct value vbuf; - char *name = "ZLE_RPROMPT_INDENT"; - if (getvalue(&vbuf, &name, 1) && !(vbuf.flags & PM_UNSET)) - rprompt_indent = getintvalue(&vbuf); - else - rprompt_indent = 1; - } #ifdef HAVE_GETRLIMIT for (i = 0; i != RLIM_NLIMITS; i++) { -- cgit 1.4.1