summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-29 20:33:07 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-29 20:33:07 +0200
commit9db580634c0055674017eab535b1b9eec7d6939d (patch)
treed34ad271b13df816deeeae7622757b8dd385cf1a /runtime
parentf05e3b0220a6b68791b5563ddf67ad42dbf74ee2 (diff)
Various improvements to undo file code to make it more robust.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/tags3
-rw-r--r--runtime/doc/todo.txt1
-rw-r--r--runtime/doc/undo.txt5
-rw-r--r--runtime/syntax/sed.vim10
4 files changed, 7 insertions, 12 deletions
diff --git a/runtime/doc/tags b/runtime/doc/tags
index bc573b7d68..66cc0332dd 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -4170,13 +4170,10 @@ E822 undo.txt /*E822*
E823 undo.txt /*E823*
E824 undo.txt /*E824*
E825 undo.txt /*E825*
-E826 undo.txt /*E826*
-E827 undo.txt /*E827*
E828 undo.txt /*E828*
E829 undo.txt /*E829*
E83 message.txt /*E83*
E830 undo.txt /*E830*
-E831 undo.txt /*E831*
E84 windows.txt /*E84*
E85 options.txt /*E85*
E86 windows.txt /*E86*
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index a53eb533ee..bde8146be0 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1097,6 +1097,7 @@ Vim 7.3:
- When there is no undo info (undolevels negative), delete the undo file.
- Need to check all values for evil manipulation.
- Add undofile(name): get undo file name for buffer "name".
+- patch for unused functions. (Dominique Pelle, 2010 May 29)
- Also crypt the undo file.
- Also crypt the swap file, each block separately. Change mf_write() and
mf_read(). How to get b_p_key to these functions?
diff --git a/runtime/doc/undo.txt b/runtime/doc/undo.txt
index c0b9d12511..a7ae1736c3 100644
--- a/runtime/doc/undo.txt
+++ b/runtime/doc/undo.txt
@@ -267,10 +267,7 @@ Reading an existing undo file may fail for several reasons:
The file text differs from when the undo file was written. This means
the undo file cannot be used, it would corrupt the text. This also
happens when 'encoding' differs from when the undo file was written.
-*E825* *E826* *E831*
- The undo file does not contain valid contents and cannot be used.
-*E827* The magic number at the end of the file was not found. This usually
- means the file was truncated.
+*E825* The undo file does not contain valid contents and cannot be used.
Writing an undo file may fail for these reasons:
*E828* The file to be written cannot be created. Perhaps you do not have
diff --git a/runtime/syntax/sed.vim b/runtime/syntax/sed.vim
index 0383b6fe4f..42ad6d8e62 100644
--- a/runtime/syntax/sed.vim
+++ b/runtime/syntax/sed.vim
@@ -2,7 +2,7 @@
" Language: sed
" Maintainer: Haakon Riiser <hakonrk@fys.uio.no>
" URL: http://folk.uio.no/hakonrk/vim/syntax/sed.vim
-" Last Change: 2005 Dec 15
+" Last Change: 2010 May 29
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
@@ -49,7 +49,7 @@ syn match sedReplaceMeta "&\|\\\($\|.\)" contains=sedTab contained
" Metacharacters: $ * . \ ^ [ ~
" @ is used as delimiter and treated on its own below
let __at = char2nr("@")
-let __sed_i = char2nr(" ")
+let __sed_i = char2nr(" ") " ASCII: 32, EBCDIC: 64
if has("ebcdic")
let __sed_last = 255
else
@@ -105,8 +105,8 @@ if version >= 508 || !exists("did_sed_syntax_inits")
if exists("highlight_sedtabs")
HiLink sedTab Todo
endif
- let __sed_i = 32
- while __sed_i <= 126
+ let __sed_i = char2nr(" ") " ASCII: 32, EBCDIC: 64
+ while __sed_i <= __sed_last
exe "HiLink sedRegexp".__sed_i "Macro"
exe "HiLink sedReplacement".__sed_i "NONE"
let __sed_i = __sed_i + 1
@@ -115,7 +115,7 @@ if version >= 508 || !exists("did_sed_syntax_inits")
delcommand HiLink
endif
-unlet __sed_i __sed_delimiter __sed_metacharacters
+unlet __sed_i __sed_last __sed_delimiter __sed_metacharacters
let b:current_syntax = "sed"