summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2006-03-29 21:06:37 +0000
committervimboss <devnull@localhost>2006-03-29 21:06:37 +0000
commit668bb489a95a32289e52a4f76c2e81d59cd17ee2 (patch)
tree096fc5982ac2ebf110d35e8a4044d74279d19635
parent98329ba20d60ae548596f774010ed4ecd032af16 (diff)
downloadvim-668bb489a95a32289e52a4f76c2e81d59cd17ee2.tar.gz
updated for version 7.0c03
-rw-r--r--runtime/keymap/accents.vim9
-rw-r--r--src/normal.c10
-rw-r--r--src/spell.c2
3 files changed, 19 insertions, 2 deletions
diff --git a/runtime/keymap/accents.vim b/runtime/keymap/accents.vim
index fae465e9..fed94c56 100644
--- a/runtime/keymap/accents.vim
+++ b/runtime/keymap/accents.vim
@@ -1,6 +1,6 @@
" Vim Keymap file for latin1 accents through dead characters
" Maintainer: Bram Moolenaar
-" Last Change: 2001 Jul 22
+" Last Change: 2006 Mar 29
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
@@ -15,6 +15,7 @@ loadkeymap
´A Á
^A Â
~A Ã
+:A Ä
'C Ç
´C Ç
`E È
@@ -31,10 +32,12 @@ loadkeymap
´O Ó
^O Ô
~O Õ
+:O Ö
`U Ù
'U Ú
´U Ú
^U Û
+:U Ü
'Y Ý
´Y Ý
`a à
@@ -42,6 +45,7 @@ loadkeymap
´a á
^a â
~a ã
+:a ä
'c ç
´c ç
`e è
@@ -58,10 +62,12 @@ loadkeymap
´o ó
^o ô
~o õ
+:o ö
`u ù
'u ú
´u ú
^u û
+:u ü
'y ý
´y ý
'' '
@@ -69,3 +75,4 @@ loadkeymap
`` `
^^ ^
~~ ~
+:: :
diff --git a/src/normal.c b/src/normal.c
index 3a336d5e..57591f7e 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -8993,7 +8993,17 @@ nv_put(cap)
/* When all lines were selected and deleted do_put() leaves an empty
* line that needs to be deleted now. */
if (empty && *ml_get(curbuf->b_ml.ml_line_count) == NUL)
+ {
ml_delete(curbuf->b_ml.ml_line_count, TRUE);
+
+ /* If the cursor was in that line, move it to the end of the last
+ * line. */
+ if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count)
+ {
+ curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count;
+ coladvance((colnr_T)MAXCOL);
+ }
+ }
#endif
auto_format(FALSE, TRUE);
}
diff --git a/src/spell.c b/src/spell.c
index 32ce2b49..98507775 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -2039,7 +2039,7 @@ spell_move_to(wp, dir, allwords, curline, attrp)
/*
* Start looking for bad word at the start of the line, because we can't
- * start halfway a word, we don't know where the it starts or ends.
+ * start halfway a word, we don't know where it starts or ends.
*
* When searching backwards, we continue in the line to find the last
* bad word (in the cursor line: before the cursor).