diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-07-17 17:15:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-07-17 17:15:25 +0200 |
commit | 95064ece73a72fce696607ccc8896bc9e52af718 (patch) | |
tree | 505ada105acb2691d3cc9f94c7edb970838825b8 /src/window.c | |
parent | 33ca6bf240981363f3dfb259e3715ce4ee3302b3 (diff) | |
download | vim-git-95064ece73a72fce696607ccc8896bc9e52af718.tar.gz |
updated for version 7.4a.027v7.4a.027
Problem: When Python adds lines to another buffer the cursor position is
wrong, it might be below the last line causing ml_get errors.
(Vlad Irnov)
Solution: Temporarily change the current window, so that marks are corrected
properly.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 2435952e1..28bb12547 100644 --- a/src/window.c +++ b/src/window.c @@ -6577,7 +6577,8 @@ restore_snapshot_rec(sn, fr) #endif -#if defined(FEAT_EVAL) || defined(PROTO) +#if defined(FEAT_EVAL) || defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) \ + || defined(PROTO) /* * Set "win" to be the curwin and "tp" to be the current tab page. * restore_win() MUST be called to undo. |