Skip to content

Commit abbeb44

Browse files
committed
svnbrowse: Don't call clear() every update. This way curses can optimise each
update for the least amount of escape sequences transferred over the wire. * subversion/svnbrowse/svnbrowse.c (view_update): Remove clear(), call werase() for the list instead (which fills the screen with spaces). Footer and header overwrite previous state each time. git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1936143 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7d5b557 commit abbeb44

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

subversion/svnbrowse/svnbrowse.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,10 @@ view_update(svn_browse__view_t *view, int ch, apr_pool_t *scratch_pool)
539539

540540
/* 3. Update the screen. */
541541

542-
/* ### TODO: We don't actually need it. */
543-
clear();
544-
545542
view_draw_header(view, view->header, scratch_pool);
546543
view_draw_footer(view, view->footer, scratch_pool);
547544

545+
werase(view->list);
548546
switch (view->model->current->type)
549547
{
550548
case svn_browse__state_dir:

0 commit comments

Comments
 (0)