Module Name:    src
Committed By:   christos
Date:           Thu Jan 10 18:41:56 UTC 2019

Modified Files:
        src/lib/libedit: readline.c

Log Message:
PR/53856: F. Aragon: editline/libedit not prompting colors in readline mode


To generate a diff of this commit:
cvs rdiff -u -r1.148 -r1.149 src/lib/libedit/readline.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/readline.c
diff -u src/lib/libedit/readline.c:1.148 src/lib/libedit/readline.c:1.149
--- src/lib/libedit/readline.c:1.148	Sun Dec  2 11:58:13 2018
+++ src/lib/libedit/readline.c	Thu Jan 10 13:41:56 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: readline.c,v 1.148 2018/12/02 16:58:13 christos Exp $	*/
+/*	$NetBSD: readline.c,v 1.149 2019/01/10 18:41:56 christos Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.148 2018/12/02 16:58:13 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.149 2019/01/10 18:41:56 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -319,7 +319,7 @@ rl_initialize(void)
 		el_end(e);
 		return -1;
 	}
-	el_set(e, EL_PROMPT, _get_prompt, RL_PROMPT_START_IGNORE);
+	el_set(e, EL_PROMPT_ESC, _get_prompt, RL_PROMPT_START_IGNORE);
 	el_set(e, EL_SIGNAL, rl_catch_signals);
 
 	/* set default mode to "emacs"-style and read setting afterwards */

Reply via email to