comparison src/window.c @ 643:d3c978b4c7ce

updated for version 7.0187
author vimboss
date Wed, 25 Jan 2006 22:02:51 +0000
parents 23a639c430c5
children 9090f866cd57
comparison
equal deleted inserted replaced
642:2392a6da4aa4 643:d3c978b4c7ce
516 * In a quickfix window a <CR> jumps to the error under the 516 * In a quickfix window a <CR> jumps to the error under the
517 * cursor in a new window. 517 * cursor in a new window.
518 */ 518 */
519 if (bt_quickfix(curbuf)) 519 if (bt_quickfix(curbuf))
520 { 520 {
521 sprintf((char *)cbuf, "split +%ldcc", 521 sprintf((char *)cbuf, "split +%ld%s",
522 (long)curwin->w_cursor.lnum); 522 (long)curwin->w_cursor.lnum,
523 (curwin->w_llist_ref == NULL) ? "cc" : "ll");
523 do_cmdline_cmd(cbuf); 524 do_cmdline_cmd(cbuf);
524 } 525 }
525 #endif 526 #endif
526 break; 527 break;
527 528
814 wp->w_alt_fnum = curwin->w_alt_fnum; 815 wp->w_alt_fnum = curwin->w_alt_fnum;
815 wp->w_fraction = curwin->w_fraction; 816 wp->w_fraction = curwin->w_fraction;
816 wp->w_prev_fraction_row = curwin->w_prev_fraction_row; 817 wp->w_prev_fraction_row = curwin->w_prev_fraction_row;
817 #ifdef FEAT_JUMPLIST 818 #ifdef FEAT_JUMPLIST
818 copy_jumplist(curwin, wp); 819 copy_jumplist(curwin, wp);
820 #endif
821 #ifdef FEAT_QUICKFIX
822 copy_loclist(curwin, wp);
819 #endif 823 #endif
820 if (curwin->w_localdir != NULL) 824 if (curwin->w_localdir != NULL)
821 wp->w_localdir = vim_strsave(curwin->w_localdir); 825 wp->w_localdir = vim_strsave(curwin->w_localdir);
822 826
823 /* Use the same argument list. */ 827 /* Use the same argument list. */
3180 #endif 3184 #endif
3181 #ifdef FEAT_JUMPLIST 3185 #ifdef FEAT_JUMPLIST
3182 free_jumplist(wp); 3186 free_jumplist(wp);
3183 #endif 3187 #endif
3184 3188
3189 #ifdef FEAT_QUICKFIX
3190 qf_free_all(wp);
3191 #endif
3192
3185 #ifdef FEAT_GUI 3193 #ifdef FEAT_GUI
3186 if (gui.in_use) 3194 if (gui.in_use)
3187 { 3195 {
3188 out_flush(); 3196 out_flush();
3189 gui_mch_destroy_scrollbar(&wp->w_scrollbars[SBAR_LEFT]); 3197 gui_mch_destroy_scrollbar(&wp->w_scrollbars[SBAR_LEFT]);