comparison src/fileio.c @ 6201:52fa8300ce20 v7.4.436

updated for version 7.4.436 Problem: ml_get error for autocommand that moves the cursor of the current window. Solution: Check the cursor position after switching back to the current buffer. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 09 Sep 2014 16:59:38 +0200
parents 67edf731a240
children 54194bd6ed60
comparison
equal deleted inserted replaced
6200:e219cf1bb321 6201:52fa8300ce20
9007 ++curbuf->b_nwindows; 9007 ++curbuf->b_nwindows;
9008 } 9008 }
9009 9009
9010 curwin = aco->save_curwin; 9010 curwin = aco->save_curwin;
9011 curbuf = curwin->w_buffer; 9011 curbuf = curwin->w_buffer;
9012 /* In case the autocommand move the cursor to a position that that
9013 * not exist in curbuf. */
9014 check_cursor();
9012 } 9015 }
9013 } 9016 }
9014 } 9017 }
9015 9018
9016 static int autocmd_nested = FALSE; 9019 static int autocmd_nested = FALSE;