1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

fixup_typeahead_match: use check_vs

Use check_vs instead of set_pos_x and set_pos_y in fixup_typeahead_match.
This saves us a line of code, and in addition, check_vs does not needlessly
scroll when the link is already in view.
This commit is contained in:
Miciah Dashiel Butler Masters 2010-09-16 01:56:45 +00:00
parent f690141cab
commit b53e8450d1

View File

@ -1272,8 +1272,7 @@ fixup_typeahead_match(struct session *ses, struct document_view *doc_view)
struct link *link = &doc_view->document->links[current_link]; struct link *link = &doc_view->document->links[current_link];
doc_view->box.height -= 1; doc_view->box.height -= 1;
set_pos_x(doc_view, link); check_vs(doc_view);
set_pos_y(doc_view, link);
doc_view->box.height += 1; doc_view->box.height += 1;
} }