aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-16 16:49:31 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-16 16:49:31 -0700
commit14f4e0e2718c32147a1f99416f3bec0221ce3dad (patch)
treec4b336e04a3abba8d5e74738feaa1502ec1a9955 /reader.cpp
parent73c2846d64216b42064bc4a42f6e779831a8e9e6 (diff)
Fix for issue where pager contents may stay around if you executed a
command with pager contents visible
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/reader.cpp b/reader.cpp
index 069771c1..7bbac43a 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -3427,6 +3427,9 @@ const wchar_t *reader_readline(void)
break;
}
+ /* The user may have hit return with pager contents, but while not navigating them. Clear the pager in that event. */
+ clear_pager();
+
/* We only execute the command line */
editable_line_t *el = &data->command_line;