Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37753427
en ru br
ALT Linux repos
S:0.46.1-alt1
5.0: 0.21-alt2
4.1: 0.21-alt2
4.0: 0.21-alt2
3.0: 0.18-alt3

Group :: Editors
RPM: rlwrap

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: rlwrap-single-keystroke.patch
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);
     }  
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin