Merge branch '0.6.x'

This commit is contained in:
Andrzej Rybczak
2015-02-11 15:43:39 +01:00
2 changed files with 2 additions and 1 deletions

View File

@@ -733,7 +733,7 @@ std::string Window::prompt(const std::string &base, size_t width, bool encrypted
curs_set(0);
if (input != nullptr)
{
if (input[0] != 0)
if (!encrypted && input[0] != 0)
add_history(input);
result = input;
free(input);