comparison src/buffer.c @ 2583:7c2e6ba1d702 v7.3.008

updated for version 7.3.008 Problem: 'cursorbind' is kept in places where 'scrollbind' is reset. Solution: Reset 'cursorbind'.
author Bram Moolenaar <bram@vim.org>
date Tue, 21 Sep 2010 16:56:35 +0200
parents 298d8d6e69be
children 5fbc411a611d
comparison
equal deleted inserted replaced
2582:2cdbc91795ca 2583:7c2e6ba1d702
1286 } 1286 }
1287 1287
1288 /* Go to the other buffer. */ 1288 /* Go to the other buffer. */
1289 set_curbuf(buf, action); 1289 set_curbuf(buf, action);
1290 1290
1291 #if defined(FEAT_LISTCMDS) && defined(FEAT_SCROLLBIND) 1291 #if defined(FEAT_LISTCMDS) \
1292 && (defined(FEAT_SCROLLBIND) || defined(FEAT_CURSORBIND))
1292 if (action == DOBUF_SPLIT) 1293 if (action == DOBUF_SPLIT)
1293 curwin->w_p_scb = FALSE; /* reset 'scrollbind' */ 1294 {
1295 RESET_BINDING(curwin); /* reset 'scrollbind' and 'cursorbind' */
1296 }
1294 #endif 1297 #endif
1295 1298
1296 #if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL) 1299 #if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL)
1297 if (aborting()) /* autocmds may abort script processing */ 1300 if (aborting()) /* autocmds may abort script processing */
1298 return FAIL; 1301 return FAIL;
1915 { 1918 {
1916 if (swb_flags & SWB_NEWTAB) /* Open in a new tab */ 1919 if (swb_flags & SWB_NEWTAB) /* Open in a new tab */
1917 tabpage_new(); 1920 tabpage_new();
1918 else if (win_split(0, 0) == FAIL) /* Open in a new window */ 1921 else if (win_split(0, 0) == FAIL) /* Open in a new window */
1919 return FAIL; 1922 return FAIL;
1920 # ifdef FEAT_SCROLLBIND 1923 RESET_BINDING(curwin);
1921 curwin->w_p_scb = FALSE;
1922 # endif
1923 } 1924 }
1924 } 1925 }
1925 #endif 1926 #endif
1926 1927
1927 ++RedrawingDisabled; 1928 ++RedrawingDisabled;