| To: vim-dev@vim.org |
| Subject: Patch 7.1.160 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.1.160 |
| Problem: When a focus autocommand is defined, getting or losing focus |
| causes the hit-enter prompt to be redrawn. (Bjorn Winckler) |
| Solution: Overwrite the last line. |
| Files: src/message.c |
| |
| |
| |
| |
| |
| *** 2850,2855 **** |
| --- 2850,2864 ---- |
| } |
| else if (State == HITRETURN || State == SETWSIZE) |
| { |
| + if (msg_row == Rows - 1) |
| + { |
| + /* Avoid drawing the "hit-enter" prompt below the previous one, |
| + * overwrite it. Esp. useful when regaining focus and a |
| + * FocusGained autocmd exists but didn't draw anything. */ |
| + msg_didout = FALSE; |
| + msg_col = 0; |
| + msg_clr_eos(); |
| + } |
| hit_return_msg(); |
| msg_row = Rows - 1; |
| } |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 160, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 142. You dream about creating the world's greatest web site. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ download, build and distribute -- http://www.A-A-P.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |