Mercurial > vim
comparison src/buffer.c @ 819:23f82b5d2814 v7.0c10
updated for version 7.0c10
author | vimboss |
---|---|
date | Wed, 05 Apr 2006 20:41:53 +0000 |
parents | c68b7b2b9e07 |
children | 57c7403f6599 |
comparison
equal
deleted
inserted
replaced
818:1f929f3ca806 | 819:23f82b5d2814 |
---|---|
1812 if (text_locked()) | 1812 if (text_locked()) |
1813 { | 1813 { |
1814 text_locked_msg(); | 1814 text_locked_msg(); |
1815 return FAIL; | 1815 return FAIL; |
1816 } | 1816 } |
1817 #ifdef FEAT_AUTOCMD | |
1818 if (curbuf_locked()) | |
1819 return FAIL; | |
1820 #endif | |
1817 | 1821 |
1818 /* altfpos may be changed by getfile(), get it now */ | 1822 /* altfpos may be changed by getfile(), get it now */ |
1819 if (lnum == 0) | 1823 if (lnum == 0) |
1820 { | 1824 { |
1821 fpos = buflist_findfpos(buf); | 1825 fpos = buflist_findfpos(buf); |
3314 } | 3318 } |
3315 #endif | 3319 #endif |
3316 | 3320 |
3317 if (fillchar == 0) | 3321 if (fillchar == 0) |
3318 fillchar = ' '; | 3322 fillchar = ' '; |
3323 #ifdef FEAT_MBYTE | |
3324 /* Can't handle a multi-byte fill character yet. */ | |
3325 else if (mb_char2len(fillchar) > 1) | |
3326 fillchar = '-'; | |
3327 #endif | |
3328 | |
3319 /* | 3329 /* |
3320 * Get line & check if empty (cursorpos will show "0-1"). | 3330 * Get line & check if empty (cursorpos will show "0-1"). |
3321 * If inversion is possible we use it. Else '=' characters are used. | 3331 * If inversion is possible we use it. Else '=' characters are used. |
3322 */ | 3332 */ |
3323 linecont = ml_get_buf(wp->w_buffer, wp->w_cursor.lnum, FALSE); | 3333 linecont = ml_get_buf(wp->w_buffer, wp->w_cursor.lnum, FALSE); |
4365 /* Don't execute Win/Buf Enter/Leave autocommands here. */ | 4375 /* Don't execute Win/Buf Enter/Leave autocommands here. */ |
4366 ++autocmd_no_enter; | 4376 ++autocmd_no_enter; |
4367 ++autocmd_no_leave; | 4377 ++autocmd_no_leave; |
4368 #endif | 4378 #endif |
4369 win_enter(lastwin, FALSE); | 4379 win_enter(lastwin, FALSE); |
4380 #ifdef FEAT_WINDOWS | |
4381 /* ":drop all" should re-use an empty window to avoid "--remote-tab" | |
4382 * leaving an empty tab page when executed locally. */ | |
4383 if (keep_tabs && bufempty() && curbuf->b_nwindows == 1 | |
4384 && curbuf->b_ffname == NULL && !curbuf->b_changed) | |
4385 use_firstwin = TRUE; | |
4386 #endif | |
4387 | |
4370 for (i = 0; i < count && i < alist->al_ga.ga_len && !got_int; ++i) | 4388 for (i = 0; i < count && i < alist->al_ga.ga_len && !got_int; ++i) |
4371 { | 4389 { |
4372 if (alist == &global_alist && i == global_alist.al_ga.ga_len - 1) | 4390 if (alist == &global_alist && i == global_alist.al_ga.ga_len - 1) |
4373 arg_had_last = TRUE; | 4391 arg_had_last = TRUE; |
4374 if (i < opened_len && opened[i]) | 4392 if (i < opened_len && opened[i]) |