On Do, 04 Dez 2014, Troy Sankey wrote:

> On 2014-12-04 10:47:46 -0800, Christian Brabandt wrote:
> > Okay, I suspected something like this. Might got wrangled on its way. 
> > Can you zip and attach it again?
> 
> Sure, attached.

Problem occurs, because cursor is positioned in the last window line 
(the commandline) and will therefore be overdrawn by the commandline 
once the screen is redrawn (after a typed character).

This patch fixes it for me:

diff --git a/src/ex_getln.c b/src/ex_getln.c
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1840,9 +1840,11 @@ cmdline_changed:
                    curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count;
                    coladvance((colnr_T)MAXCOL);
                }
-               validate_cursor();
                end_pos = curwin->w_cursor;
                curwin->w_cursor = save_pos;
+               if (curwin->w_height <= curwin->w_cursor.lnum + p_so + p_ch)
+                   scrolldown(curwin->w_height - curwin->w_cursor.lnum - p_so 
- p_ch + 1,
+                           TRUE);
            }
            else
                end_pos = curwin->w_cursor; /* shutup gcc 4 */

Note, I removed the validate_cursor() call, because it will be called 
after the else clause anyhow).

I actually, thought, that a single call to cursor_correct() should have 
fixed it as well, but while this fixed the cursor, the screen wasn't 
scrolled, so I used the scrolldown function.

Best,
Christian
-- 
Die Verstellung hilft unter Leuten, denen wir ähnlich sind, nichts.
                -- Jean Paul

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui