mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
draw_frames(): move @more to inner scope.
This commit is contained in:
parent
4a930507e4
commit
dbcc033edb
@ -291,7 +291,7 @@ draw_frames(struct session *ses)
|
|||||||
{
|
{
|
||||||
struct document_view *doc_view, *current_doc_view;
|
struct document_view *doc_view, *current_doc_view;
|
||||||
int *l;
|
int *l;
|
||||||
int n, d, more;
|
int n, d;
|
||||||
|
|
||||||
assert(ses && ses->doc_view && ses->doc_view->document);
|
assert(ses && ses->doc_view && ses->doc_view->document);
|
||||||
if_assert_failed return;
|
if_assert_failed return;
|
||||||
@ -308,16 +308,19 @@ draw_frames(struct session *ses)
|
|||||||
|
|
||||||
current_doc_view = current_frame(ses);
|
current_doc_view = current_frame(ses);
|
||||||
d = 0;
|
d = 0;
|
||||||
do {
|
while (1) {
|
||||||
more = 0;
|
int more = 0;
|
||||||
|
|
||||||
foreach (doc_view, ses->scrn_frames) {
|
foreach (doc_view, ses->scrn_frames) {
|
||||||
if (doc_view->depth == d)
|
if (doc_view->depth == d)
|
||||||
draw_doc(ses, doc_view, doc_view == current_doc_view);
|
draw_doc(ses, doc_view, doc_view == current_doc_view);
|
||||||
else if (doc_view->depth > d)
|
else if (doc_view->depth > d)
|
||||||
more = 1;
|
more = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!more) break;
|
||||||
d++;
|
d++;
|
||||||
} while (more);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @rerender is ridiciously wound-up. */
|
/* @rerender is ridiciously wound-up. */
|
||||||
|
Loading…
Reference in New Issue
Block a user