comparison src/fileio.c @ 765:335444c09581

updated for version 7.0225
author vimboss
date Wed, 15 Mar 2006 22:53:57 +0000
parents 587ea89ab80c
children b5aed52a4881
comparison
equal deleted inserted replaced
764:986753bbc441 765:335444c09581
1593 /* The new size is equal to how much "dst" was advanced. */ 1593 /* The new size is equal to how much "dst" was advanced. */
1594 size = dst - ptr; 1594 size = dst - ptr;
1595 } 1595 }
1596 else 1596 else
1597 # endif 1597 # endif
1598 # ifdef MACOS_X 1598 # ifdef MACOS_CONVERT
1599 if (fio_flags & FIO_MACROMAN) 1599 if (fio_flags & FIO_MACROMAN)
1600 { 1600 {
1601 /* 1601 /*
1602 * Conversion from Apple MacRoman char encoding to UTF-8 or 1602 * Conversion from Apple MacRoman char encoding to UTF-8 or
1603 * latin1. This is in os_mac_conv.c. 1603 * latin1. This is in os_mac_conv.c.
5041 } 5041 }
5042 } 5042 }
5043 } 5043 }
5044 # endif 5044 # endif
5045 5045
5046 # ifdef MACOS_X 5046 # ifdef MACOS_CONVERT
5047 else if (flags & FIO_MACROMAN) 5047 else if (flags & FIO_MACROMAN)
5048 { 5048 {
5049 /* 5049 /*
5050 * Convert UTF-8 or latin1 to Apple MacRoman. 5050 * Convert UTF-8 or latin1 to Apple MacRoman.
5051 */ 5051 */
6405 6405
6406 if (reload) 6406 if (reload)
6407 /* Reload the buffer. */ 6407 /* Reload the buffer. */
6408 buf_reload(buf, orig_mode); 6408 buf_reload(buf, orig_mode);
6409 6409
6410 #ifdef FEAT_AUTOCMD
6411 if (buf_valid(buf))
6412 (void)apply_autocmds(EVENT_FILECHANGEDSHELLPOST,
6413 buf->b_fname, buf->b_fname, FALSE, buf);
6414 #endif
6410 #ifdef FEAT_GUI 6415 #ifdef FEAT_GUI
6411 /* restore this in case an autocommand has set it; it would break 6416 /* restore this in case an autocommand has set it; it would break
6412 * 'mousefocus' */ 6417 * 'mousefocus' */
6413 need_mouse_correct = save_mouse_correct; 6418 need_mouse_correct = save_mouse_correct;
6414 #endif 6419 #endif
6957 {"FileEncoding", EVENT_ENCODINGCHANGED}, 6962 {"FileEncoding", EVENT_ENCODINGCHANGED},
6958 {"FileAppendPost", EVENT_FILEAPPENDPOST}, 6963 {"FileAppendPost", EVENT_FILEAPPENDPOST},
6959 {"FileAppendPre", EVENT_FILEAPPENDPRE}, 6964 {"FileAppendPre", EVENT_FILEAPPENDPRE},
6960 {"FileAppendCmd", EVENT_FILEAPPENDCMD}, 6965 {"FileAppendCmd", EVENT_FILEAPPENDCMD},
6961 {"FileChangedShell",EVENT_FILECHANGEDSHELL}, 6966 {"FileChangedShell",EVENT_FILECHANGEDSHELL},
6967 {"FileChangedShellPost",EVENT_FILECHANGEDSHELLPOST},
6962 {"FileChangedRO", EVENT_FILECHANGEDRO}, 6968 {"FileChangedRO", EVENT_FILECHANGEDRO},
6963 {"FileReadPost", EVENT_FILEREADPOST}, 6969 {"FileReadPost", EVENT_FILEREADPOST},
6964 {"FileReadPre", EVENT_FILEREADPRE}, 6970 {"FileReadPre", EVENT_FILEREADPRE},
6965 {"FileReadCmd", EVENT_FILEREADCMD}, 6971 {"FileReadCmd", EVENT_FILEREADCMD},
6966 {"FileType", EVENT_FILETYPE}, 6972 {"FileType", EVENT_FILETYPE},
6999 {"VimEnter", EVENT_VIMENTER}, 7005 {"VimEnter", EVENT_VIMENTER},
7000 {"VimLeave", EVENT_VIMLEAVE}, 7006 {"VimLeave", EVENT_VIMLEAVE},
7001 {"VimLeavePre", EVENT_VIMLEAVEPRE}, 7007 {"VimLeavePre", EVENT_VIMLEAVEPRE},
7002 {"WinEnter", EVENT_WINENTER}, 7008 {"WinEnter", EVENT_WINENTER},
7003 {"WinLeave", EVENT_WINLEAVE}, 7009 {"WinLeave", EVENT_WINLEAVE},
7010 {"VimResized", EVENT_VIMRESIZED},
7004 {NULL, (event_T)0} 7011 {NULL, (event_T)0}
7005 }; 7012 };
7006 7013
7007 static AutoPat *first_autopat[NUM_EVENTS] = 7014 static AutoPat *first_autopat[NUM_EVENTS] =
7008 { 7015 {
8361 #endif 8368 #endif
8362 8369
8363 /* 8370 /*
8364 * FileChangedShell never nests, because it can create an endless loop. 8371 * FileChangedShell never nests, because it can create an endless loop.
8365 */ 8372 */
8366 if (filechangeshell_busy && event == EVENT_FILECHANGEDSHELL) 8373 if (filechangeshell_busy && (event == EVENT_FILECHANGEDSHELL
8374 || event == EVENT_FILECHANGEDSHELLPOST))
8367 goto BYPASS_AU; 8375 goto BYPASS_AU;
8368 8376
8369 /* 8377 /*
8370 * Ignore events in 'eventignore'. 8378 * Ignore events in 'eventignore'.
8371 */ 8379 */