Mercurial > vim
comparison src/buffer.c @ 1744:feb9b4215853 v7.2.042
updated for version 7.2-042
author | vimboss |
---|---|
date | Sat, 15 Nov 2008 15:06:17 +0000 |
parents | 734d5bdae499 |
children | 1c85355293f9 |
comparison
equal
deleted
inserted
replaced
1743:734d5bdae499 | 1744:feb9b4215853 |
---|---|
1399 curwin->w_cursor.col = 0; | 1399 curwin->w_cursor.col = 0; |
1400 #ifdef FEAT_VIRTUALEDIT | 1400 #ifdef FEAT_VIRTUALEDIT |
1401 curwin->w_cursor.coladd = 0; | 1401 curwin->w_cursor.coladd = 0; |
1402 #endif | 1402 #endif |
1403 curwin->w_set_curswant = TRUE; | 1403 curwin->w_set_curswant = TRUE; |
1404 #ifdef FEAT_AUTOCMD | |
1405 curwin->w_topline_was_set = FALSE; | |
1406 #endif | |
1404 | 1407 |
1405 /* Make sure the buffer is loaded. */ | 1408 /* Make sure the buffer is loaded. */ |
1406 if (curbuf->b_ml.ml_mfp == NULL) /* need to load the file */ | 1409 if (curbuf->b_ml.ml_mfp == NULL) /* need to load the file */ |
1407 { | 1410 { |
1408 #ifdef FEAT_AUTOCMD | 1411 #ifdef FEAT_AUTOCMD |
1438 check_arg_idx(curwin); /* check for valid arg_idx */ | 1441 check_arg_idx(curwin); /* check for valid arg_idx */ |
1439 #ifdef FEAT_TITLE | 1442 #ifdef FEAT_TITLE |
1440 maketitle(); | 1443 maketitle(); |
1441 #endif | 1444 #endif |
1442 #ifdef FEAT_AUTOCMD | 1445 #ifdef FEAT_AUTOCMD |
1443 if (curwin->w_topline == 1) /* when autocmds didn't change it */ | 1446 /* when autocmds didn't change it */ |
1447 if (curwin->w_topline == 1 && !curwin->w_topline_was_set) | |
1444 #endif | 1448 #endif |
1445 scroll_cursor_halfway(FALSE); /* redisplay at correct position */ | 1449 scroll_cursor_halfway(FALSE); /* redisplay at correct position */ |
1446 | 1450 |
1447 #ifdef FEAT_NETBEANS_INTG | 1451 #ifdef FEAT_NETBEANS_INTG |
1448 /* Send fileOpened event because we've changed buffers. */ | 1452 /* Send fileOpened event because we've changed buffers. */ |