Mercurial > vim
comparison src/screen.c @ 67:6b9e8f951af4
updated for version 7.0030
author | vimboss |
---|---|
date | Tue, 04 Jan 2005 21:31:43 +0000 |
parents | c75153d791d0 |
children | e8f07016e34d |
comparison
equal
deleted
inserted
replaced
66:99064882c85b | 67:6b9e8f951af4 |
---|---|
6473 return; | 6473 return; |
6474 entered = TRUE; | 6474 entered = TRUE; |
6475 | 6475 |
6476 win_new_shellsize(); /* fit the windows in the new sized shell */ | 6476 win_new_shellsize(); /* fit the windows in the new sized shell */ |
6477 | 6477 |
6478 #ifdef FEAT_GUI_BEOS | |
6479 vim_lock_screen(); /* be safe, put it here */ | |
6480 #endif | |
6481 | |
6482 comp_col(); /* recompute columns for shown command and ruler */ | 6478 comp_col(); /* recompute columns for shown command and ruler */ |
6483 | 6479 |
6484 /* | 6480 /* |
6485 * We're changing the size of the screen. | 6481 * We're changing the size of the screen. |
6486 * - Allocate new arrays for ScreenLines and ScreenAttrs. | 6482 * - Allocate new arrays for ScreenLines and ScreenAttrs. |
6690 if (msg_col >= Columns) /* Columns got smaller */ | 6686 if (msg_col >= Columns) /* Columns got smaller */ |
6691 msg_col = Columns - 1; /* put cursor at last column */ | 6687 msg_col = Columns - 1; /* put cursor at last column */ |
6692 } | 6688 } |
6693 #endif | 6689 #endif |
6694 | 6690 |
6695 #ifdef FEAT_GUI_BEOS | |
6696 vim_unlock_screen(); | |
6697 #endif | |
6698 entered = FALSE; | 6691 entered = FALSE; |
6699 } | 6692 } |
6700 | 6693 |
6701 void | 6694 void |
6702 screenclear() | 6695 screenclear() |
7524 clip_clear_selection(); | 7517 clip_clear_selection(); |
7525 else | 7518 else |
7526 clip_scroll_selection(-line_count); | 7519 clip_scroll_selection(-line_count); |
7527 #endif | 7520 #endif |
7528 | 7521 |
7529 #ifdef FEAT_GUI_BEOS | |
7530 vim_lock_screen(); | |
7531 #endif | |
7532 #ifdef FEAT_GUI | 7522 #ifdef FEAT_GUI |
7533 /* Don't update the GUI cursor here, ScreenLines[] is invalid until the | 7523 /* Don't update the GUI cursor here, ScreenLines[] is invalid until the |
7534 * scrolling is actually carried out. */ | 7524 * scrolling is actually carried out. */ |
7535 gui_dont_update_cursor(); | 7525 gui_dont_update_cursor(); |
7536 #endif | 7526 #endif |
7578 lineclear(temp, (int)Columns); | 7568 lineclear(temp, (int)Columns); |
7579 else | 7569 else |
7580 lineinvalid(temp, (int)Columns); | 7570 lineinvalid(temp, (int)Columns); |
7581 } | 7571 } |
7582 } | 7572 } |
7583 #ifdef FEAT_GUI_BEOS | |
7584 vim_unlock_screen(); | |
7585 #endif | |
7586 | 7573 |
7587 screen_stop_highlight(); | 7574 screen_stop_highlight(); |
7588 windgoto(cursor_row, 0); | 7575 windgoto(cursor_row, 0); |
7589 | 7576 |
7590 #ifdef FEAT_VERTSPLIT | 7577 #ifdef FEAT_VERTSPLIT |
7752 clip_clear_selection(); | 7739 clip_clear_selection(); |
7753 else | 7740 else |
7754 clip_scroll_selection(line_count); | 7741 clip_scroll_selection(line_count); |
7755 #endif | 7742 #endif |
7756 | 7743 |
7757 #ifdef FEAT_GUI_BEOS | |
7758 vim_lock_screen(); | |
7759 #endif | |
7760 #ifdef FEAT_GUI | 7744 #ifdef FEAT_GUI |
7761 /* Don't update the GUI cursor here, ScreenLines[] is invalid until the | 7745 /* Don't update the GUI cursor here, ScreenLines[] is invalid until the |
7762 * scrolling is actually carried out. */ | 7746 * scrolling is actually carried out. */ |
7763 gui_dont_update_cursor(); | 7747 gui_dont_update_cursor(); |
7764 #endif | 7748 #endif |
7813 lineclear(temp, (int)Columns); | 7797 lineclear(temp, (int)Columns); |
7814 else | 7798 else |
7815 lineinvalid(temp, (int)Columns); | 7799 lineinvalid(temp, (int)Columns); |
7816 } | 7800 } |
7817 } | 7801 } |
7818 #ifdef FEAT_GUI_BEOS | |
7819 vim_unlock_screen(); | |
7820 #endif | |
7821 | 7802 |
7822 screen_stop_highlight(); | 7803 screen_stop_highlight(); |
7823 | 7804 |
7824 #ifdef FEAT_VERTSPLIT | 7805 #ifdef FEAT_VERTSPLIT |
7825 /* redraw the characters */ | 7806 /* redraw the characters */ |