1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-02 07:35:47 +01:00

Deal with some Buffer.findScrollable corner cases.

--HG--
extra : rebase_source : 6acbaac21f3098ab357ceddcd796e6566a61a6d9
This commit is contained in:
Kris Maglione
2010-12-21 14:03:09 -05:00
parent 21ddb65595
commit 9511624649
3 changed files with 12 additions and 3 deletions

View File

@@ -675,7 +675,7 @@ unlet s:cpo_save
lines.__defineGetter__("last", function () this[this.length - 1]);
for (let item in (isArray(items) ? array.iterValues : iter)(items)) {
if (item.length > width && (!lines.length || lines.last.length)) {
if (item.length > width && (!lines.length || lines.last.length > 1)) {
lines.push([prefix]);
width = WIDTH - prefix.length;
prefix = " \\ ";