From 4b6556381032c4aad2bb002adb1ce87f6fb5a69d Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 20 Nov 2019 20:13:24 -0500 Subject: Remove PSlit --- bin/1sh/histedit.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'bin/1sh/histedit.c') diff --git a/bin/1sh/histedit.c b/bin/1sh/histedit.c index 08339a00..0d23e9aa 100644 --- a/bin/1sh/histedit.c +++ b/bin/1sh/histedit.c @@ -223,30 +223,6 @@ sethistsize(const char *hs) } } -void -setpslit(const char *lit_ch) { - wchar_t wc; - - if (!(iflag && editing && el)) - return; - - if (lit_ch == NULL) { - el_set(el, EL_PROMPT, getprompt); - el_set(el, EL_RPROMPT, getrprompt); - return; - } - - mbtowc(&wc, NULL, 1); /* state init */ - - if (mbtowc(&wc, lit_ch, strlen(lit_ch)) <= 0) { - el_set(el, EL_PROMPT, getprompt); - el_set(el, EL_RPROMPT, getrprompt); - } else { - el_set(el, EL_PROMPT_ESC, getprompt, (int)wc); - el_set(el, EL_RPROMPT_ESC, getrprompt, (int)wc); - } -} - void setterm(const char *term) { -- cgit 1.4.1