Mercurial > vim
diff src/ex_docmd.c @ 1668:0b796e045c42 v7.2b.000
updated for version 7.2b-000
author | vimboss |
---|---|
date | Sun, 13 Jul 2008 17:41:49 +0000 |
parents | 5bbc2d6658ad |
children | 75dbeedddaa9 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -6728,6 +6728,10 @@ handle_drop(filec, filev, split) if (curbuf_locked()) return; #endif + /* When the screen is being updated we should not change buffers and + * windows structures, it may cause freed memory to be used. */ + if (updating_screen) + return; /* Check whether the current buffer is changed. If so, we will need * to split the current window or data could be lost.