Skip to content

Commit 43d1ac6

Browse files
committed
patch 8.0.0566: setting nocompatible for the tiny version moves the cursor
Problem: Setting nocompatible for the tiny version moves the cursor. Solution: Use another trick to skip commands when the +eval feature is present. (Christian Brabandt, closes #1630)
1 parent 31bdd13 commit 43d1ac6

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

runtime/defaults.vim

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" The default vimrc file.
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last change: 2017 Apr 01
4+
" Last change: 2017 Apr 12
55
"
66
" This is loaded if no vimrc file was found.
77
" Except when Vim is run with "-u NONE" or "-C".
@@ -28,13 +28,9 @@ endif
2828

2929
" When the +eval feature is missing, the set command above will be skipped.
3030
" Use a trick to reset compatible only when the +eval feature is missing.
31-
if 1
32-
nnoremap : :"
33-
endif
34-
silent normal :set nocompatible
35-
if 1
36-
nunmap :
37-
endif
31+
silent! while 0
32+
set nocompatible
33+
silent! endwhile
3834

3935
" Allow backspacing over everything in insert mode.
4036
set backspace=indent,eol,start

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
566,
767769
/**/
768770
565,
769771
/**/

0 commit comments

Comments
 (0)