Mirror of the Vim source from https://github.com/vim/vim
修訂 | 54a6b47d473e64d7ae5212f00b8b125c721d2c41 (tree) |
---|---|
時間 | 2007-11-24 23:44:58 |
作者 | vimboss |
Commiter | vimboss |
updated for version 7.1-160
@@ -2850,6 +2850,15 @@ | ||
2850 | 2850 | } |
2851 | 2851 | else if (State == HITRETURN || State == SETWSIZE) |
2852 | 2852 | { |
2853 | + if (msg_row == Rows - 1) | |
2854 | + { | |
2855 | + /* Avoid drawing the "hit-enter" prompt below the previous one, | |
2856 | + * overwrite it. Esp. useful when regaining focus and a | |
2857 | + * FocusGained autocmd exists but didn't draw anything. */ | |
2858 | + msg_didout = FALSE; | |
2859 | + msg_col = 0; | |
2860 | + msg_clr_eos(); | |
2861 | + } | |
2853 | 2862 | hit_return_msg(); |
2854 | 2863 | msg_row = Rows - 1; |
2855 | 2864 | } |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 160, | |
671 | +/**/ | |
670 | 672 | 159, |
671 | 673 | /**/ |
672 | 674 | 158, |