commit | c236c16d0884c7d6cdc4dbaddb8cb3992085f83e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jul 13 17:41:49 2008 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jul 13 17:41:49 2008 +0000 |
tree | 7d87344cdf07b6b9234abe26ccef39fbbee54f63 | |
parent | b316376b4893ac3ae62f7f33c483b28b7fc147c0 [diff] [blame] |
updated for version 7.2b-000
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 83cffc1..246c4c0 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -6728,6 +6728,10 @@ 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.