Limit docskip to doclines offset and reset it when docs disappears

This commit is contained in:
aurhat
2017-03-20 22:44:18 +01:00
parent 0c75b8ef4b
commit 0525981799
+2
View File
@@ -631,11 +631,13 @@ void renderdoc(int x, int y, int doch)
else cury += FONTH;
}
if(docskip > offset) docskip = offset;
if(maxl < doclines.length()) draw_text("\f4more (F3)", x, y+doch); // footer
if(offset > 0) draw_text("\f4less (F2)", x, y+doch+FONTH);
draw_text("\f4disable doc reference (F1)", x, y+doch+2*FONTH);
return;
}
else docskip = 0;
}
}
}