Mercurial > vim
comparison src/popupmnu.c @ 816:4a79d6d376f0 v7.0c02
updated for version 7.0c02
author | vimboss |
---|---|
date | Tue, 28 Mar 2006 21:08:56 +0000 |
parents | d8f905020502 |
children | 6675076019ae |
comparison
equal
deleted
inserted
replaced
815:c68b7b2b9e07 | 816:4a79d6d376f0 |
---|---|
399 pum_first = pum_selected + context - pum_height + 1; | 399 pum_first = pum_selected + context - pum_height + 1; |
400 } | 400 } |
401 } | 401 } |
402 | 402 |
403 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) | 403 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) |
404 /* Show extra info in the preview window if there is something and | 404 /* |
405 * 'completeopt' contains "preview". */ | 405 * Show extra info in the preview window if there is something and |
406 * 'completeopt' contains "preview". | |
407 * NOTE: Be very careful not to sync undo! | |
408 */ | |
406 if (pum_array[pum_selected].pum_info != NULL | 409 if (pum_array[pum_selected].pum_info != NULL |
407 && vim_strchr(p_cot, 'p') != NULL) | 410 && vim_strchr(p_cot, 'p') != NULL) |
408 { | 411 { |
409 win_T *curwin_save = curwin; | 412 win_T *curwin_save = curwin; |
410 int res = OK; | 413 int res = OK; |
411 | 414 |
412 /* Open a preview window. 3 lines by default. */ | 415 /* Open a preview window. 3 lines by default. */ |
413 g_do_tagpreview = 3; | 416 g_do_tagpreview = 3; |
414 resized = prepare_tagpreview(); | 417 resized = prepare_tagpreview(FALSE); |
415 g_do_tagpreview = 0; | 418 g_do_tagpreview = 0; |
416 | 419 |
417 if (curwin->w_p_pvw) | 420 if (curwin->w_p_pvw) |
418 { | 421 { |
419 if (curbuf->b_fname == NULL | 422 if (curbuf->b_fname == NULL |
494 * Enable updating the status lines. */ | 497 * Enable updating the status lines. */ |
495 pum_do_redraw = TRUE; | 498 pum_do_redraw = TRUE; |
496 update_screen(0); | 499 update_screen(0); |
497 pum_do_redraw = FALSE; | 500 pum_do_redraw = FALSE; |
498 | 501 |
499 if (win_valid(curwin_save)) | 502 if (!resized && win_valid(curwin_save)) |
500 win_enter(curwin_save, TRUE); | 503 win_enter(curwin_save, TRUE); |
501 | 504 |
502 /* May need to update the screen again when there are | 505 /* May need to update the screen again when there are |
503 * autocommands involved. */ | 506 * autocommands involved. */ |
504 pum_do_redraw = TRUE; | 507 pum_do_redraw = TRUE; |