Skip to content

Commit

Permalink
Don't flush buffers for popened (LESSOPEN) input
Browse files Browse the repository at this point in the history
when closing file (eg. view help file and return).
  • Loading branch information
gwsw committed Jul 7, 2017
1 parent 6295563 commit 2b13b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ ch_close()
if (thisfile == NULL)
return;

if (ch_flags & (CH_CANSEEK|CH_POPENED|CH_HELPFILE))
if (ch_flags & (CH_CANSEEK|CH_HELPFILE))
{
/*
* We can seek or re-open, so we don't need to keep buffers.
Expand Down

0 comments on commit 2b13b4e

Please sign in to comment.