summary refs log tree commit diff
path: root/bin/1sh/histedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/1sh/histedit.c')
-rw-r--r--bin/1sh/histedit.c24
1 files changed, 0 insertions, 24 deletions
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
@@ -224,30 +224,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)
 {
 	if (rootshell && el != NULL && term != NULL)