Mercurial > vim
diff src/window.c @ 698:e402b0af6083
updated for version 7.0211
author | vimboss |
---|---|
date | Wed, 01 Mar 2006 22:01:55 +0000 |
parents | 0e922220d322 |
children | 59971e227f8c |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -3087,9 +3087,9 @@ make_tabpages(maxcount) int count = maxcount; int todo; - /* Limit to 10 tabs. */ - if (count > 10) - count = 10; + /* Limit to 'tabpagemax' tabs. */ + if (count > p_tpm) + count = p_tpm; #ifdef FEAT_AUTOCMD /* @@ -3852,7 +3852,9 @@ win_free(wp, tp) vim_free(wp->w_localdir); #ifdef FEAT_SEARCH_EXTRA - vim_free(wp->w_match.regprog); + vim_free(wp->w_match[0].regprog); + vim_free(wp->w_match[1].regprog); + vim_free(wp->w_match[2].regprog); #endif #ifdef FEAT_JUMPLIST free_jumplist(wp);