Revert "Merge pull request #21 from cogutvalera/issue_1171"

This reverts commit cddd8d8de0, reversing
changes made to 4ec7d26a9d.
This commit is contained in:
Joachim Nilsson
2018-11-15 10:27:22 +01:00
parent 66d8ae84e2
commit 2137b9df9f
4 changed files with 4 additions and 59 deletions

View File

@@ -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 {