de7b1e2ba3
(upstream git commit b45e7b8b7968855411d6270aa36897431b8e15de) Fix segfault when sending empty tag strings (upstream git commit be44e166c40e9708dbee563dbe6915a5391fe75c)
17 lines
476 B
Plaintext
17 lines
476 B
Plaintext
$OpenBSD: patch-source_readline_c,v 1.1 2012/06/29 09:16:23 dcoppa Exp $
|
|
|
|
Nonbuffered readline
|
|
(upstream git commit b45e7b8b7968855411d6270aa36897431b8e15de)
|
|
|
|
--- source/readline.c.orig Fri Jun 29 11:06:55 2012
|
|
+++ source/readline.c Fri Jun 29 11:07:40 2012
|
|
@@ -39,6 +39,8 @@ char * readline(struct prompt * setup) {
|
|
for(histsize = 0; setup->history && setup->history[histsize]; ++histsize);
|
|
index = histsize;
|
|
|
|
+ canon(0);
|
|
+
|
|
while(!eoln) {
|
|
int key = fgetc(stdin);
|
|
|