]> granicus.if.org Git - vim/commitdiff
updated for version 7.1b
authorBram Moolenaar <Bram@vim.org>
Thu, 10 May 2007 17:35:54 +0000 (17:35 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 10 May 2007 17:35:54 +0000 (17:35 +0000)
20 files changed:
README_mac.txt
runtime/doc/if_mzsch.txt
runtime/doc/if_perl.txt
runtime/doc/indent.txt
runtime/doc/os_risc.txt
runtime/doc/pi_getscript.txt
runtime/doc/pi_vimball.txt
runtime/doc/pi_zip.txt
runtime/doc/usr_02.txt
runtime/doc/usr_44.txt
runtime/indent/dictconf.vim
runtime/spell/en.ascii.spl
runtime/spell/en.latin1.sug
runtime/syntax/sh.vim
src/GvimExt/GvimExt.reg
src/Make_ming.mak
src/fileio.c
src/gui_riscos.c
src/gui_w16.c
src/os_os2_cfg.h

index 50d939ee7c713e595f564daeb9d396f27e743dc8..56840ae7073056dc8b6ced21b34d43cfc20fabd0 100644 (file)
@@ -1,4 +1,4 @@
-README_mac.txt for version 7.1a of Vim: Vi IMproved.
+README_mac.txt for version 7.1b of Vim: Vi IMproved.
 
 This file explains the installation of Vim on Macintosh systems.
 See "README.txt" for general information about Vim.
index f42b1bfded7a3e5bbea771e58ee94f1360af742e..8842e3d41f4051777f09de91f3c2b2e6f65d3a39 100644 (file)
@@ -1,4 +1,4 @@
-*if_mzsch.txt*  For Vim version 7.1a.  Last change: 2007 May 03
+*if_mzsch.txt*  For Vim version 7.1b.  Last change: 2007 May 03
 
 
                  VIM REFERENCE MANUAL    by Sergey Khorev
index 930522df151fd30e4072a99482cdf98958c6639d..82235f226ace07f3d367e83d6d20ab8d5d71dca2 100644 (file)
@@ -1,4 +1,4 @@
-*if_perl.txt*   For Vim version 7.1a.  Last change: 2006 Mar 06
+*if_perl.txt*   For Vim version 7.1b.  Last change: 2006 Mar 06
 
 
                  VIM REFERENCE MANUAL    by Sven Verdoolaege
index fd8aea5b7511df3b65ab714e4fe56bf38026147f..f9d1d5644c6487525d54e886f55aa8a56ea539a3 100644 (file)
@@ -1,4 +1,4 @@
-*indent.txt*    For Vim version 7.1a.  Last change: 2007 Mar 17
+*indent.txt*    For Vim version 7.1b.  Last change: 2007 May 10
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -113,7 +113,7 @@ If you really want to reindent when you type 'o', 'O', 'e', '0', '<', '>',
 "<!>", respectively, for those keys.
 
 For an emacs-style indent mode where lines aren't indented every time you
-press Enter but only if you press Tab, I suggest:
+press <Enter> but only if you press Tab, I suggest:
        :set cinkeys=0{,0},:,0#,!<Tab>,!^F
 You might also want to switch off 'autoindent' then.
 
@@ -515,6 +515,28 @@ Indent for a continuation line: >
        let g:pyindent_continue = '&sw * 2'
 
 
+SHELL                                                  *ft-sh-indent*
+
+The amount of indent applied under various circumstances in a shell file can
+be configured by setting the following keys in the |Dictionary|
+b:sh_indent_defaults to a specific amount or to a |Funcref| that references a
+function that will return the amount desired:
+
+b:sh_indent_options['default'] Default amount of indent.
+
+b:sh_indent_options['continuation-line']
+                               Amount of indent to add to a continued line.
+
+b:sh_indent_options['case-labels']
+                               Amount of indent to add for case labels.
+
+b:sh_indent_options['case-statement']
+                               Amount of indent to add for case statements.
+
+b:sh_indent_options['case-breaks']
+                               Amount of indent to add (or more likely
+                               remove) for case breaks.
+
 VERILOG                                                        *ft-verilog-indent*
 
 General block statements such as if, for, case, always, initial, function,
index 2756f224b764c97227f0b57c2319e0e78d2d3c5f..8311080fb0a81ef9030c1bb3f2910a5527010096 100644 (file)
@@ -1,4 +1,4 @@
-*os_risc.txt*   For Vim version 7.1a.  Last change: 2005 Mar 29
+*os_risc.txt*   For Vim version 7.1b.  Last change: 2005 Mar 29
 
 
                  VIM REFERENCE MANUAL    by Thomas Leonard
index 10d9387fd302ce1bcf335ce7d513a76e204787b0..23eee4e2d2583c58fc88a91cf8aa293753b388bb 100644 (file)
@@ -1,4 +1,4 @@
-*pi_getscript.txt*  For Vim version 7.1a.  Last change: 2007 Apr 26
+*pi_getscript.txt*  For Vim version 7.1b.  Last change: 2007 May 08
 >
                GETSCRIPT REFERENCE MANUAL  by Charles E. Campbell, Jr.
 <
@@ -136,7 +136,7 @@ insures that GetLatestVimScripts will assume that the script it has is
 out-of-date.
 
 The SourceID is extracted by GetLatestVimScripts from the script's page on
-vim.sf.net; whenever its greater than the one stored in the
+vim.sf.net; whenever it's greater than the one stored in the
 GetLatestVimScripts.dat file, the script will be downloaded
 (see |GetLatestVimScripts_dat|).
 
@@ -309,7 +309,7 @@ so-called script-id.  Within the webpage of
 
 is a line specifying the latest source-id (src_id).  The source identifier
 numbers are always increasing, hence if the src_id is greater than the one
-recorded for the script in GetLatestVimScripts then its time to download a
+recorded for the script in GetLatestVimScripts then it's time to download a
 newer copy of that script.
 
 GetLatestVimScripts will then download the script and update its internal
@@ -335,6 +335,8 @@ The AutoInstall process will:
 ==============================================================================
 9. GetLatestVimScripts History         *getscript-history* *glvs-hist* {{{1
 
+v24 Apr 16, 2007 : * removed save&restore of the fo option during script
+                     loading
 v23 Nov 03, 2006 : * ignores comments (#...)
                    * handles vimballs
 v22 Oct 13, 2006 : * supports automatic use of curl if wget is not
index 75eae344a81c9ecc9d1e6546313b015ae378d3e5..6c19d9a4062eb7f558f8015530fe3eec5c166164 100644 (file)
@@ -1,4 +1,4 @@
-*pi_vimball.txt*       For Vim version 7.1a.  Last change: 2007 Jan 03
+*pi_vimball.txt*       For Vim version 7.1b.  Last change: 2007 May 08
 
                               ----------------
                               Vimball Archiver
@@ -90,6 +90,7 @@ Copyright: (c) 2004-2006 by Charles E. Campbell, Jr.  *Vimball-copyright*
 ==============================================================================
 3. Vimball History                                     *vimball-history* {{{1
 
+       22 : Mar 21, 2007 * uses setlocal instead of set during BufEnter
        21 : Nov 27, 2006 * (tnx to Bill McCarthy) vimball had a header
                            handling problem and it now changes \s to /s
        20 : Nov 20, 2006 * substitute() calls have all had the 'e' flag
@@ -114,7 +115,7 @@ Copyright: (c) 2004-2006 by Charles E. Campbell, Jr.        *Vimball-copyright*
        10 : Apr 27, 2006 * moved all setting saving/restoration to a pair of
                            functions.  Included some more settings in them
                            which frequently cause trouble.
-       9  : Apr 26, 2006 * various changes to support Windows prediliction
+       9  : Apr 26, 2006 * various changes to support Windows predilection
                            for backslashes and spaces in file and directory
                            names.
        7  : Apr 25, 2006 * bypasses foldenable
index cedd9114aed915cf26f1f8417d7f3f176b8f6ebc..fe2ebbe25914f6e4025ea93490167a952bd3836c 100644 (file)
@@ -1,4 +1,4 @@
-*pi_zip.txt*   For Vim version 7.1a.  Last change: 2006 Sep 29
+*pi_zip.txt*   For Vim version 7.1b.  Last change: 2007 May 08
 
                                +====================+
                                | Zip File Interface |
@@ -6,7 +6,7 @@
 
 Author:  Charles E. Campbell, Jr.  <NdrOchip@ScampbellPfamily.AbizM>
          (remove NOSPAM from Campbell's email first)
-Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright*
+Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr *zip-copyright*
            Permission is hereby granted to use and distribute this code,
           with or without modifications, provided that this copyright
           notice is copied with it. Like anything else that's free,
@@ -18,9 +18,10 @@ Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright*
 
 ==============================================================================
 1. Contents                                    *zip* *zip-contents*
-   1. Contents..................................................|zip-contents|
-   2. Usage.....................................................|zip-usage|
-   3. History...................................................|zip-history|
+   1. Contents................................................|zip-contents|
+   2. Usage...................................................|zip-usage|
+   3. Additional Extensions...................................|zip-extension|
+   4. History.................................................|zip-history|
 
 ==============================================================================
 2. Usage                                       *zip-usage* *zip-manual*
@@ -31,14 +32,45 @@ Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright*
    also write to the file.  Currently, one may not make a new file in
    zip archives via the plugin.
 
-   The zip program supports one option: >
-       g:zip_shq
+   OPTIONS
+                                                       *zip_shq*
+   Different operating systems may use one or more shells to execute
+   commands.  Zip will try to guess the correct quoting mechanism to
+   allow spaces and whatnot in filenames; however, if it is incorrectly
+   guessing the quote to use for your setup, you may use >
+       g:zip_shq
 <  which by default is a single quote under Unix (') and a double quote
    under Windows (").  If you'd rather have no quotes, simply set
    g:zip_shq to the empty string (let g:zip_shq= "") in your <.vimrc>.
 
+                                                       *g:zip_unzipcmd*
+   Use this option to specify the program which does the duty of "unzip".
+   Its used during browsing. By default: >
+       let g:zip_unzipcmd= "unzip"
+<
+                                                       *g:zip_zipcmd*
+   Use this option to specify the program which does the duty of "zip".
+   Its used during the writing (updating) of a file already in a zip
+   file; by default: >
+       let g:zip_zipcmd= "zip"
+<
+
+==============================================================================
+3. Additional Extensions                                       *zip-extension*
+
+   Apparently there are a number of archivers who generate zip files that
+   don't use the .zip extension (.jar, .xpi, etc).  To handle such files,
+   place a line in your <.vimrc> file: >
+
+       au BufReadCmd *.jar,*.xpi call zip#Browse(expand("<amatch>"))
+<
+   One can simply extend this line to accomdate additional extensions that
+   are actually zip files.
+
 ==============================================================================
-3. History                                     *zip-history*
+4. History                                     *zip-history* {{{1
+   v14 May 07, 2007 * using b:zipfile instead of w:zipfile to avoid problem
+                      when editing alternate file to bring up a zipfile
    v10 May 02, 2006 * now using "redraw then echo" to show messages, instead
                       of "echo and prompt user"
                    * g:zip_shq provided to allow for quoting control for the
@@ -62,4 +94,4 @@ Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright*
    v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing
 
 ==============================================================================
-vim:tw=78:ts=8:ft=help
+vim:tw=78:ts=8:ft=help:fdm=marker
index e782754c9779f362e26337daec3d3a763778c7de..c1d50864504dafb64f1a185490709d09df78259e 100644 (file)
@@ -1,4 +1,4 @@
-*usr_02.txt*   For Vim version 7.1a.  Last change: 2007 Feb 28
+*usr_02.txt*   For Vim version 7.1b.  Last change: 2007 Feb 28
 
                     VIM USER MANUAL - by Bram Moolenaar
 
index 48b4b92fcedb23f65f65867dce3c493d40ff3eab..08c2d29fd448de4ef017c006d03f13ebbe7879d0 100644 (file)
@@ -1,4 +1,4 @@
-*usr_44.txt*   For Vim version 7.1a.  Last change: 2006 Apr 24
+*usr_44.txt*   For Vim version 7.1b.  Last change: 2006 Apr 24
 
                     VIM USER MANUAL - by Bram Moolenaar
 
index adb096103f4e87d88757731783f220af7b544449..adbc1a52420c0ccaec4434f29a6c76bb36add74c 100644 (file)
@@ -1,7 +1,7 @@
 " Vim indent file
 " Language:         dict(1) configuration file
 " Maintainer:       Nikolai Weibull <now@bitwi.se>
-" Latest Revision:  2006-04-19
+" Latest Revision:  2006-12-20
 
 if exists("b:did_indent")
   finish
@@ -9,4 +9,5 @@ endif
 let b:did_indent = 1
 
 setlocal indentkeys=0{,0},!^F,o,O cinwords= autoindent smartindent
+setlocal nosmartindent
 inoremap <buffer> # X\b#
index 64bff2670ff15badcdef44a5ef36d207d2fde6b0..b0735c61b94ecf106aae128489c008d4998afa25 100644 (file)
Binary files a/runtime/spell/en.ascii.spl and b/runtime/spell/en.ascii.spl differ
index f75c28bb7c77b976298dbf8bc4bc400b5d848700..e4800bf467d4b6cebe0da68369a4d5a4a6736231 100644 (file)
Binary files a/runtime/spell/en.latin1.sug and b/runtime/spell/en.latin1.sug differ
index 4edff04619cde73a07f93ced20e5b5efbcdd04ac..ce98ac6d78a4ea327d0a326b48cd5d25becbc7ee 100644 (file)
@@ -2,8 +2,8 @@
 " Language:            shell (sh) Korn shell (ksh) bash (sh)
 " Maintainer:          Dr. Charles E. Campbell, Jr.  <NdrOchipS@PcampbellAfamily.Mbiz>
 " Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int>
-" Last Change:         Sep 15, 2006
-" Version:             88
+" Last Change:         Dec 12, 2006
+" Version:             89
 " URL:         http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
 "
 " Using the following VIM variables: {{{1
@@ -75,19 +75,22 @@ syn cluster shCaseList      contains=@shCommandSubList,shCaseEsac,shColon,shCommandSu
 syn cluster shColonList        contains=@shCaseList
 syn cluster shCommandSubList   contains=shArithmetic,shDeref,shDerefSimple,shNumber,shOperator,shPosnParm,shExSingleQuote,shSingleQuote,shDoubleQuote,shStatement,shVariable,shSubSh,shAlias,shTest,shCtrlSeq
 syn cluster shCurlyList        contains=shNumber,shComma,shDeref,shDerefSimple,shDerefSpecial
-syn cluster shDblQuoteList     contains=shCommandSub,shDeref,shDerefSimple,shPosnParm,shExSingleQuote,shCtrlSeq
+syn cluster shDblQuoteList     contains=shCommandSub,shDeref,shDerefSimple,shPosnParm,shExSingleQuote,shCtrlSeq,shSpecial
 syn cluster shDerefList        contains=shDeref,shDerefSimple,shDerefVar,shDerefSpecial,shDerefWordError,shDerefPPS
 syn cluster shDerefVarList     contains=shDerefOp,shDerefVarArray,shDerefOpError
 syn cluster shEchoList contains=shArithmetic,shCommandSub,shDeref,shDerefSimple,shExpr,shExSingleQuote,shSingleQuote,shDoubleQuote,shCtrlSeq
 syn cluster shExprList1        contains=shCharClass,shNumber,shOperator,shExSingleQuote,shSingleQuote,shDoubleQuote,shExpr,shDblBrace,shDeref,shDerefSimple,shCtrlSeq
 syn cluster shExprList2        contains=@shExprList1,@shCaseList,shTest
 syn cluster shFunctionList     contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shOperator,shFunctionStart,shCtrlSeq
+if exists("b:is_kornshell") || exists("b:is_bash")
+ syn cluster shFunctionList    add=shDblBrace,shDblParen
+endif
 syn cluster shHereBeginList    contains=@shCommandSubList
 syn cluster shHereList contains=shBeginHere,shHerePayload
 syn cluster shHereListDQ       contains=shBeginHere,@shDblQuoteList,shHerePayload
 syn cluster shIdList   contains=shCommandSub,shWrapLineOperator,shIdWhiteSpace,shDeref,shDerefSimple,shRedir,shExSingleQuote,shSingleQuote,shDoubleQuote,shExpr,shCtrlSeq
 syn cluster shLoopList contains=@shCaseList,shTestOpr,shExpr,shDblBrace,shConditional,shCaseEsac,shTest
-syn cluster shSubShList        contains=@shCaseList
+syn cluster shSubShList        contains=@shCaseList,shOperator
 syn cluster shTestList contains=shCharClass,shComment,shCommandSub,shDeref,shDerefSimple,shDoubleQuote,shExpr,shExpr,shNumber,shOperator,shExSingleQuote,shSingleQuote,shTestOpr,shTest,shCtrlSeq
 
 
@@ -127,8 +130,16 @@ syn match     shTestError "]"
 syn match   shOption  "\s[\-+][a-zA-Z0-9]\+\>"ms=s+1
 syn match   shOption  "\s--[^ \t$`'"|]\+"ms=s+1
 
+" File Redirection Highlighted As Operators: {{{1
+"===========================================
+syn match      shRedir "\d\=>\(&[-0-9]\)\="
+syn match      shRedir "\d\=>>-\="
+syn match      shRedir "\d\=<\(&[-0-9]\)\="
+syn match      shRedir "\d<<-\="
+
 " Operators: {{{1
 " ==========
+syn match   shOperator "<<\|>>"                contained
 syn match   shOperator "[!&;|]"
 syn match   shOperator "\[[[^:]\|\]]"
 syn match   shOperator "!\=="          skipwhite nextgroup=shPattern
@@ -186,7 +197,7 @@ syn match  shComma     contained    ","
 " ====
 syn match   shCaseBar  contained skipwhite "[^|"`'()]\{-}|"hs=e                nextgroup=shCase,shCaseStart,shCaseBar,shComment,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote
 syn match   shCaseStart        contained skipwhite skipnl "("                  nextgroup=shCase,shCaseBar
-syn region  shCase     contained skipwhite skipnl matchgroup=shSnglCase start="[^#$()'"]\{-})"ms=s,hs=e  end=";;" end="esac"me=s-1 contains=@shCaseList nextgroup=shCaseStart,shCase,shComment
+syn region  shCase     contained skipwhite skipnl matchgroup=shSnglCase start="\([^#$()'" \t]\|\\.\)\{-})"ms=s,hs=e  end=";;" end="esac"me=s-1 contains=@shCaseList nextgroup=shCaseStart,shCase,shComment
 if g:sh_fold_enabled
  syn region  shCaseEsac        fold matchgroup=shConditional start="\<case\>" end="\<esac\>"   contains=@shCaseEsacList
 else
@@ -255,21 +266,16 @@ endif
 syn region  shSingleQuote      matchgroup=shOperator start=+'+ end=+'+         contains=shStringSpecial,@Spell
 syn region  shDoubleQuote      matchgroup=shOperator start=+"+ skip=+\\"+ end=+"+      contains=@shDblQuoteList,shStringSpecial,@Spell
 syn match   shStringSpecial    "[^[:print:]]"  contained
-syn match   shSpecial  "\\[\\\"\'`$()#]"
+syn match   shStringSpecial    "\%(\\\\\)*\\[\\"'`$()#]"
+syn match   shSpecial  "[^\\]\zs\%(\\\\\)*\\[\\"'`$()#]"
+syn match   shSpecial  "^\%(\\\\\)*\\[\\"'`$()#]"
 
 " Comments: {{{1
 "==========
 syn cluster    shCommentGroup  contains=shTodo,@Spell
 syn keyword    shTodo  contained       COMBAK FIXME TODO XXX
-syn match      shComment       "^#.*$" contains=@shCommentGroup
-syn match      shComment       "[^0-9]#.*$"    contains=@shCommentGroup
-
-" File Redirection Highlighted As Operators: {{{1
-"===========================================
-syn match      shRedir "\d\=>\(&[-0-9]\)\="
-syn match      shRedir "\d\=>>-\="
-syn match      shRedir "\d\=<\(&[-0-9]\)\="
-syn match      shRedir "\d<<-\="
+syn match      shComment       "^\s*\zs#.*$"   contains=@shCommentGroup
+syn match      shComment       "#.*$"  contains=@shCommentGroup
 
 " Here Documents: {{{1
 " =========================================
@@ -338,10 +344,11 @@ endif
 
 " Functions: {{{1
 syn keyword shFunctionKey function     skipwhite skipnl nextgroup=shFunctionTwo
-syn match   shFunctionStart    "^\s*{" contained
+" COMBAK -- look at bash09.  function foo() (line#35) is folding 38 lines.  Not being terminated properly
+"syn match   shFunctionStart   "{"     contained
 if g:sh_fold_enabled
- syn region shFunctionOne transparent fold     start="^\s*\h\w*\s*()\_s*\ze{"    matchgroup=shFunctionStart end="}"    contains=@shFunctionList
- syn region shFunctionTwo transparent fold     start="\h\w*\s*\%(()\)\=\_s*\ze{" matchgroup=shFunctionStart end="}"    contains=shFunctionKey,@shFunctionList contained
+ syn region shFunctionOne transparent fold     start="^\s*\h\w*\s*()\_s*\ze{"    matchgroup=shFunctionStart end="}"    contains=@shFunctionList                        skipwhite skipnl nextgroup=shFunctionStart
+ syn region shFunctionTwo transparent fold     start="\h\w*\s*\%(()\)\=\_s*\ze{" matchgroup=shFunctionStart end="}"    contains=shFunctionKey,@shFunctionList contained        skipwhite skipnl nextgroup=shFunctionStart
 else
  syn region shFunctionOne transparent  start="^\s*\h\w*\s*()\_s*\ze{"    matchgroup=shFunctionStart end="}"    contains=@shFunctionList
  syn region shFunctionTwo transparent  start="\h\w*\s*\%(()\)\=\_s*\ze{" matchgroup=shFunctionStart end="}"    contains=shFunctionKey,@shFunctionList contained
index ed0f5af1aedf5a9721fc9f1cbc6c3f47ff74fb8f..7409fa0d4c448639a0805b2bbffb897964e09158 100644 (file)
@@ -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"
index e09ba8c04b02bf31552567257d066930c7ee9415..0f2022c3ea086795a8416fe08ca34a02cf7b5a68 100644 (file)
@@ -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
index 39ce7a7cef58edcbd9b5381c675d94ce43e8ce52..c44a08d378704cfc735787d5d9936f3f09a93f61 100644 (file)
@@ -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())
index 46e79c0485e10ca0f62c59ad6757257e8fa9fa97..6adc8b77e3be7df3a9cacbfa80f95ecf6d5026b5 100644 (file)
@@ -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)
index 75726c805b43a573e093a1f496c8ed6caa7b326b..f7e6d597f845403cb0e94724d536c026a466b15e 100644 (file)
@@ -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,
index 62527a9f6b10498c736e8cb6593a12e1f1d0114f..039d395f11c54a7ba3838d7cd94daf291ac7645a 100644 (file)
@@ -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 *) */