aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/ed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/ed.c b/editors/ed.c
index 859668406..b1b6a8d27 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -129,7 +129,7 @@ static void doCommands(void)
129 * 0 on ctrl-C, 129 * 0 on ctrl-C,
130 * >0 length of input string, including terminating '\n' 130 * >0 length of input string, including terminating '\n'
131 */ 131 */
132 len = read_line_input(": ", buf, sizeof(buf), NULL); 132 len = read_line_input(NULL, ": ", buf, sizeof(buf), /*timeout*/ -1);
133 if (len <= 0) 133 if (len <= 0)
134 return; 134 return;
135 endbuf = &buf[len - 1]; 135 endbuf = &buf[len - 1];
@@ -227,7 +227,7 @@ static void doCommands(void)
227 } 227 }
228 if (!dirty) 228 if (!dirty)
229 return; 229 return;
230 len = read_line_input("Really quit? ", buf, 16, NULL); 230 len = read_line_input(NULL, "Really quit? ", buf, 16, /*timeout*/ -1);
231 /* read error/EOF - no way to continue */ 231 /* read error/EOF - no way to continue */
232 if (len < 0) 232 if (len < 0)
233 return; 233 return;
@@ -541,7 +541,7 @@ static void addLines(int num)
541 * 0 on ctrl-C, 541 * 0 on ctrl-C,
542 * >0 length of input string, including terminating '\n' 542 * >0 length of input string, including terminating '\n'
543 */ 543 */
544 len = read_line_input("", buf, sizeof(buf), NULL); 544 len = read_line_input(NULL, "", buf, sizeof(buf), /*timeout*/ -1);
545 if (len <= 0) { 545 if (len <= 0) {
546 /* Previously, ctrl-C was exiting to shell. 546 /* Previously, ctrl-C was exiting to shell.
547 * Now we exit to ed prompt. Is in important? */ 547 * Now we exit to ed prompt. Is in important? */