diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-10 17:35:54 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-10 17:35:54 +0000 |
commit | 7263a77b998151fa95666d9a379fcc2dd8725ba3 (patch) | |
tree | ef44aa3904439a0766f47b71e30f3c2a61d97c89 /src | |
parent | 2bb8df23dc2065304d9fab28be07ba6a7362be6d (diff) | |
download | vim-git-7263a77b998151fa95666d9a379fcc2dd8725ba3.tar.gz |
updated for version 7.1b
Diffstat (limited to 'src')
-rw-r--r-- | src/GvimExt/GvimExt.reg | 4 | ||||
-rw-r--r-- | src/Make_ming.mak | 2 | ||||
-rw-r--r-- | src/fileio.c | 34 | ||||
-rw-r--r-- | src/gui_riscos.c | 2 | ||||
-rw-r--r-- | src/gui_w16.c | 2 | ||||
-rw-r--r-- | src/os_os2_cfg.h | 2 |
6 files changed, 26 insertions, 20 deletions
diff --git a/src/GvimExt/GvimExt.reg b/src/GvimExt/GvimExt.reg index ed0f5af1a..7409fa0d4 100644 --- a/src/GvimExt/GvimExt.reg +++ b/src/GvimExt/GvimExt.reg @@ -15,6 +15,6 @@ REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Vim\Gvim] "path"="gvim.exe" -[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Vim 7.1a] - "DisplayName"="Vim 7.1a: Edit with Vim popup menu entry" +[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Vim 7.1b] + "DisplayName"="Vim 7.1b: Edit with Vim popup menu entry" "UninstallString"="uninstal.exe" diff --git a/src/Make_ming.mak b/src/Make_ming.mak index e09ba8c04..0f2022c3e 100644 --- a/src/Make_ming.mak +++ b/src/Make_ming.mak @@ -24,7 +24,7 @@ #>>>>> choose options: # set to yes for a debug build DEBUG=no -# set to SIZE for size, SPEED for speed, MAXSPEED for maximium optimization +# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization OPTIMIZE=MAXSPEED # set to yes to make gvim, no for vim GUI=yes diff --git a/src/fileio.c b/src/fileio.c index 39ce7a7ce..c44a08d37 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1271,7 +1271,7 @@ retry: else if (conv_restlen > 0) { /* Reached end-of-file but some trailing bytes could - * not be converted. Trucated file? */ + * not be converted. Truncated file? */ if (conv_error == 0) conv_error = linecnt; if (bad_char_behavior != BAD_DROP) @@ -2192,16 +2192,22 @@ failed: if (filesize == 0) linecnt = 0; if (newfile || read_buffer) + { redraw_curbuf_later(NOT_VALID); - else if (linecnt) /* appended at least one line */ - appended_lines_mark(from, linecnt); - #ifdef FEAT_DIFF - /* After reading the text into the buffer the diff info needs to be - * updated. */ - if (newfile || read_buffer) + /* After reading the text into the buffer the diff info needs to + * be updated. */ diff_invalidate(curbuf); #endif +#ifdef FEAT_FOLDING + /* All folds in the window are invalid now. Mark them for update + * before triggering autocommands. */ + foldUpdateAll(curwin); +#endif + } + else if (linecnt) /* appended at least one line */ + appended_lines_mark(from, linecnt); + #ifndef ALWAYS_USE_GUI /* * If we were reading from the same terminal as where messages go, @@ -4026,8 +4032,8 @@ restore_backup: /* TODO: Is it need for MACOS_X? (Dany) */ /* * On macintosh copy the original files attributes (i.e. the backup) - * This is done in order to preserve the ressource fork and the - * Finder attribute (label, comments, custom icons, file creatore) + * This is done in order to preserve the resource fork and the + * Finder attribute (label, comments, custom icons, file creator) */ if (backup != NULL && overwriting && !append) { @@ -4041,7 +4047,7 @@ restore_backup: { if (buf->b_ffname != NULL) (void)mch_copy_file_attribute(buf->b_ffname, wfname); - /* Should copy ressource fork */ + /* Should copy resource fork */ } #endif @@ -5795,7 +5801,7 @@ buf_modname(shortname, fname, ext, prepend_dot) #endif /* * If the extension doesn't start with '.', and there already is an - * extension, it may need to be tructated + * extension, it may need to be truncated */ else if ((int)STRLEN(e) + extlen > 4) s = e + 4 - extlen; @@ -5989,7 +5995,7 @@ vim_rename(from, to) /* * With MSDOS-compatible filesystems (crossdos, messydos) it is possible * that the name of the "to" file is the same as the "from" file, even - * though the names are different. To avoid the chance of accidently + * though the names are different. To avoid the chance of accidentally * deleting the "from" file (horror!) we lock it during the remove. * * When used for making a backup before writing the file: This should not @@ -6058,7 +6064,7 @@ vim_rename(from, to) errmsg = _("E210: Error reading \"%s\""); to = from; } -#ifndef UNIX /* for Unix mch_open() already set ther permission */ +#ifndef UNIX /* for Unix mch_open() already set the permission */ mch_setperm(to, perm); #endif #ifdef HAVE_ACL @@ -8402,7 +8408,7 @@ apply_autocmds_group(event, fname, fname_io, force, group, buf, eap) #ifdef FEAT_EVAL /* - * Quickly return when immdediately aborting on error, or when an interrupt + * Quickly return when immediately aborting on error, or when an interrupt * occurred or an exception was thrown but not caught. */ if (aborting()) diff --git a/src/gui_riscos.c b/src/gui_riscos.c index 46e79c048..6adc8b77e 100644 --- a/src/gui_riscos.c +++ b/src/gui_riscos.c @@ -2873,7 +2873,7 @@ gui_mch_destroy_menu(vimmenu_T *menu) } /* Size of buffer has changed. - * Add one to max since gui.c substracts one more than it should! + * Add one to max since gui.c subtracts one more than it should! */ void gui_mch_set_scrollbar_thumb(sb, val, size, max) diff --git a/src/gui_w16.c b/src/gui_w16.c index 75726c805..f7e6d597f 100644 --- a/src/gui_w16.c +++ b/src/gui_w16.c @@ -1531,7 +1531,7 @@ initialise_toolbar(void) s_hwnd, WS_CHILD | WS_VISIBLE, CMD_TB_BASE, /*<vn>*/ - 31, //number of images in inital bitmap + 31, //number of images in initial bitmap s_hinst, IDR_TOOLBAR1, // id of initial bitmap NULL, diff --git a/src/os_os2_cfg.h b/src/os_os2_cfg.h index 62527a9f6..039d395f1 100644 --- a/src/os_os2_cfg.h +++ b/src/os_os2_cfg.h @@ -90,7 +90,7 @@ /* Define as the command at the end of signal handlers ("" or "return 0;"). */ #define SIGRETURN -/* Define if touuper/tolower only work on lower/upercase characters */ +/* Define if toupper/tolower only work on lower/uppercase characters */ #undef BROKEN_TOUPPER /* Define if tgetstr() has a second argument that is (char *) */ |