comparison src/window.c @ 5202:8edba3805d78 v7.4a.027

updated for version 7.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.
author Bram Moolenaar <bram@vim.org>
date Wed, 17 Jul 2013 17:15:25 +0200
parents cad8d29b0bc0
children 1899acc5aebd
comparison
equal deleted inserted replaced
5201:b2ed17f5d19c 5202:8edba3805d78
6575 return wp; 6575 return wp;
6576 } 6576 }
6577 6577
6578 #endif 6578 #endif
6579 6579
6580 #if defined(FEAT_EVAL) || defined(PROTO) 6580 #if defined(FEAT_EVAL) || defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) \
6581 || defined(PROTO)
6581 /* 6582 /*
6582 * Set "win" to be the curwin and "tp" to be the current tab page. 6583 * Set "win" to be the curwin and "tp" to be the current tab page.
6583 * restore_win() MUST be called to undo. 6584 * restore_win() MUST be called to undo.
6584 * No autocommands will be executed. 6585 * No autocommands will be executed.
6585 * When "no_display" is TRUE the display won't be affected, no redraw is 6586 * When "no_display" is TRUE the display won't be affected, no redraw is