Subject: | Curses::UI::Grid::Cell v0.14 // Error: substr outside of string // SLES11/12 // perl v5.10 and above |
Date: | Wed, 27 Mar 2019 11:44:12 +0100 |
To: | bug-Curses-UI-Grid [...] rt.cpan.org |
From: | Lóránt Halmágyi <lhalmagyi [...] gmail.com> |
Related module versions:
Curses::UI::Grid v0.15
Curses::UI::Grid::Cell v0.14
Dear Madam, Dear Sir,
This reported BUG seems to be OS independent and uncritical.
We get `substr outside of string' error message, when text in a cell is
scrolled so much to the right after the cell string, that only blanks are
shown.
For instance:
BEFORE:
As on screenshots below, by scrolling to the right within Password cell,
last 2 characters of a Password Hash are shown and no error message is
shown:
[image: image.png]
AFTER:
As no limit for scrolling is set, when scrolling additional 2 characters to
the right - thus just blanks are shown in the Cell - , following error
message appears:
[image: image.png]
Related code line:
$text = substr($text, -$this->xoffset, $current_width);
KR,
Lorant