mirror of
https://github.com/troglobit/editline.git
synced 2025-09-18 02:08:08 +08:00
Revert "Merge pull request #21 from cogutvalera/issue_1171"
This reverts commitcddd8d8de0
, reversing changes made to4ec7d26a9d
.
This commit is contained in:
@@ -159,16 +159,12 @@ static void tty_flush(void)
|
||||
ssize_t res;
|
||||
|
||||
if (!ScreenCount)
|
||||
return;
|
||||
return;
|
||||
|
||||
if (!el_no_echo) {
|
||||
if (rl_check_secret(rl_line_buffer))
|
||||
res = write(el_outfd, "", 1);
|
||||
else
|
||||
res = write(el_outfd, Screen, ScreenCount);
|
||||
|
||||
if (res > 0)
|
||||
ScreenCount = 0;
|
||||
res = write(el_outfd, Screen, ScreenCount);
|
||||
if (res > 0)
|
||||
ScreenCount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1138,10 +1134,6 @@ static void hist_add(const char *p)
|
||||
if (s == NULL)
|
||||
return;
|
||||
|
||||
// Don't add secret information in history
|
||||
if (rl_check_secret(s))
|
||||
return;
|
||||
|
||||
if (H.Size < el_hist_size) {
|
||||
H.Lines[H.Size++] = s;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user