Skip to content

Commit

Permalink
v591
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Aug 10, 2021
1 parent 2cdb984 commit 0202daa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
======================================================================
Major changes between "less" versions 590 and 591

* Fix display of multibyte and double-width chars in prompt.

* Fix ESC-BACKSPACE command when BACKSPACE key does not send 0x08.

* Add more \k codes to lesskey format.
Expand Down
5 changes: 5 additions & 0 deletions line.c
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,11 @@ load_line(str)
prewind();
if (pappstr(str) == 0)
break;
/*
* Didn't fit on screen; increase left shift by one.
* {{ This gets very inefficient if the string
* is much longer than the screen width. }}
*/
hshift += 1;
}
set_linebuf(linebuf.end, '\0', AT_NORMAL);
Expand Down
5 changes: 3 additions & 2 deletions version.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,8 @@ v587 5/27/21 Fix --with-secure; fix --file-size message on Windows;
v588 5/27/21 Fix release.
v589 5/29/21 Copyright & build changes.
v590 6/3/21 Fix non-autoconf Makefiles.
v591 8/8/21 Use \kB for backspace key in lesskey; add more \k codes.
v591 8/8/21 Use \kB for backspace key in lesskey; add more \k codes;
handle multibyte chars in prompt.
*/

char version[] = "591x";
char version[] = "591";

0 comments on commit 0202daa

Please sign in to comment.