mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Fix issue with one char documents. Patch by Felix Janda
This commit is contained in:
parent
b6fd548049
commit
0266633025
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user