Group :: Editors
RPM: rlwrap
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: rlwrap-single-keystroke.patch
Download
Download
diff -uNr rlwrap-orig/src/readline.c rlwrap/src/readline.c
--- rlwrap-orig/src/readline.c 2003-08-19 00:46:51 +0400
+++ rlwrap/src/readline.c 2003-08-30 17:12:15 +0400
@@ -98,7 +98,7 @@
DPRINTF1(DEBUG_READLINE,"EOF detected, writing character %d", term_eof);
write(master_pty_fd, &term_eof, 1);
} else {
- if (*line && strlen(line) > 1 && redisplay) { /* don't save empty lines,
+ if (*line && strlen(line) > 0 && redisplay) { /* don't save empty lines,
single keystrokes or passwords*/
my_add_history (line);
}