jump to the correct view (intstead of the last one) on new view creation (issue reported by DenisG)

This commit is contained in:
Sander van Dijk 2006-04-16 23:00:31 +00:00
parent 7b509ce08b
commit 05964332e1

View File

@ -32,9 +32,9 @@ create_view(char *name)
cext_strlcpy(v->name, name, sizeof(v->name));
create_area(v);
create_area(v);
sel = view.size;
cext_vattach(vector_of_views(&view), v);
qsort(view.data, view.size, sizeof(View *), comp_view_name);
sel = idx_of_view(v);
return v;
}