comparison src/fileio.c @ 1352:c544a3507e83 v7.1.066

updated for version 7.1-066
author vimboss
date Sun, 12 Aug 2007 13:51:26 +0000
parents dbd226be80b1
children cdd82acd75b4
comparison
equal deleted inserted replaced
1351:df6967461cef 1352:c544a3507e83
652 { 652 {
653 curbuf->b_p_eol = TRUE; 653 curbuf->b_p_eol = TRUE;
654 curbuf->b_start_eol = TRUE; 654 curbuf->b_start_eol = TRUE;
655 #ifdef FEAT_MBYTE 655 #ifdef FEAT_MBYTE
656 curbuf->b_p_bomb = FALSE; 656 curbuf->b_p_bomb = FALSE;
657 curbuf->b_start_bomb = FALSE;
657 #endif 658 #endif
658 } 659 }
659 660
660 /* Create a swap file now, so that other Vims are warned that we are 661 /* Create a swap file now, so that other Vims are warned that we are
661 * editing this file. 662 * editing this file.
910 while (lnum > from) 911 while (lnum > from)
911 ml_delete(lnum--, FALSE); 912 ml_delete(lnum--, FALSE);
912 file_rewind = FALSE; 913 file_rewind = FALSE;
913 #ifdef FEAT_MBYTE 914 #ifdef FEAT_MBYTE
914 if (set_options) 915 if (set_options)
916 {
915 curbuf->b_p_bomb = FALSE; 917 curbuf->b_p_bomb = FALSE;
918 curbuf->b_start_bomb = FALSE;
919 }
916 conv_error = 0; 920 conv_error = 0;
917 #endif 921 #endif
918 } 922 }
919 923
920 /* 924 /*
1359 /* Remove BOM from the text */ 1363 /* Remove BOM from the text */
1360 filesize += blen; 1364 filesize += blen;
1361 size -= blen; 1365 size -= blen;
1362 mch_memmove(ptr, ptr + blen, (size_t)size); 1366 mch_memmove(ptr, ptr + blen, (size_t)size);
1363 if (set_options) 1367 if (set_options)
1368 {
1364 curbuf->b_p_bomb = TRUE; 1369 curbuf->b_p_bomb = TRUE;
1370 curbuf->b_start_bomb = TRUE;
1371 }
1365 } 1372 }
1366 1373
1367 if (fio_flags == FIO_UCSBOM) 1374 if (fio_flags == FIO_UCSBOM)
1368 { 1375 {
1369 if (ccname == NULL) 1376 if (ccname == NULL)