Skip to content

Commit

Permalink
Fix erroneous EOF calculation when F command is interrupted.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed May 10, 2020
1 parent c99bb26 commit 87599e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.VER
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* Fix regression: make screen repaint when "squished" and
a no-movement command is given.

* Fix erroneous EOF calculation when F command is interrupted.

* Make WIN32C version include this fix from 551:
Don't count lines in initial screen if using -X with -F.

Expand Down
3 changes: 2 additions & 1 deletion ch.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ seekable(f)
public void
ch_set_eof(VOID_PARAM)
{
ch_fsize = ch_fpos;
if (ch_fsize != NULL_POSITION && ch_fsize < ch_fpos)
ch_fsize = ch_fpos;
}


Expand Down
2 changes: 1 addition & 1 deletion version.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ v558 4/17/20 Don't init terminal if -F and file fits on one screen (WIN32).
v559 4/19/20 Handle deinit correctly on WIN32.
v560 5/3/20 Fix regression when command results in no movement;
fix some less.nro issues (thanks to Bjarni I. Gislason).
v561x
v561x Fix erroneous EOF calculation when F command is interrupted.
*/

char version[] = "561x";

0 comments on commit 87599e9

Please sign in to comment.