1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

Fix issue with one char documents. Patch by Felix Janda

This commit is contained in:
Witold Filipczyk 2017-11-14 09:54:05 +01:00
parent b6fd548049
commit 0266633025

View File

@ -302,7 +302,7 @@ draw_doc(struct session *ses, struct document_view *doc_view, int active)
en - st,
&doc_view->document->data[y].chars[st]);
for (i = en - 1; i > 0; --i) {
for (i = en - 1; i >= 0; --i) {
if (doc_view->document->data[y].chars[i].data != ' ') {
last = &doc_view->document->data[y].chars[i];
last_index = i + 1;