summaryrefslogtreecommitdiffstats
path: root/debian/patches/patch-8.1.0948-when-built-without-eval-Vim-clean-produces.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:44:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:44:26 +0000
commit0cde7a370d07f80208bcd29597cf30d5274f38b0 (patch)
treee228a85db87eb0491d2937e213bbbab19826b682 /debian/patches/patch-8.1.0948-when-built-without-eval-Vim-clean-produces.patch
parentAdding upstream version 2:8.1.0875. (diff)
downloadvim-0cde7a370d07f80208bcd29597cf30d5274f38b0.tar.xz
vim-0cde7a370d07f80208bcd29597cf30d5274f38b0.zip
Adding debian version 2:8.1.0875-5+deb10u2.debian/2%8.1.0875-5+deb10u2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/patch-8.1.0948-when-built-without-eval-Vim-clean-produces.patch')
-rw-r--r--debian/patches/patch-8.1.0948-when-built-without-eval-Vim-clean-produces.patch95
1 files changed, 95 insertions, 0 deletions
diff --git a/debian/patches/patch-8.1.0948-when-built-without-eval-Vim-clean-produces.patch b/debian/patches/patch-8.1.0948-when-built-without-eval-Vim-clean-produces.patch
new file mode 100644
index 0000000..8544ba9
--- /dev/null
+++ b/debian/patches/patch-8.1.0948-when-built-without-eval-Vim-clean-produces.patch
@@ -0,0 +1,95 @@
+From: Bram Moolenaar <Bram@vim.org>
+Date: Mon, 18 Feb 2019 21:32:28 +0100
+Subject: patch 8.1.0948: when built without +eval "Vim --clean" produces
+ errors
+
+Problem: When built without +eval "Vim --clean" produces errors. (James
+ McCoy)
+Solution: Do not enable filetype detection.
+---
+ runtime/defaults.vim | 51 ++++++++++++++++++++++++++++-----------------------
+ src/version.c | 2 ++
+ 2 files changed, 30 insertions(+), 23 deletions(-)
+
+diff --git a/runtime/defaults.vim b/runtime/defaults.vim
+index b848217..e8a0ff4 100644
+--- a/runtime/defaults.vim
++++ b/runtime/defaults.vim
+@@ -1,7 +1,7 @@
+ " The default vimrc file.
+ "
+ " Maintainer: Bram Moolenaar <Bram@vim.org>
+-" Last change: 2019 Jan 26
++" Last change: 2019 Feb 18
+ "
+ " This is loaded if no vimrc file was found.
+ " Except when Vim is run with "-u NONE" or "-C".
+@@ -90,28 +90,33 @@ if &t_Co > 2 || has("gui_running")
+ let c_comment_strings=1
+ endif
+
+-" Enable file type detection.
+-" Use the default filetype settings, so that mail gets 'tw' set to 72,
+-" 'cindent' is on in C files, etc.
+-" Also load indent files, to automatically do language-dependent indenting.
+-" Revert with ":filetype off".
+-filetype plugin indent on
+-
+-" Put these in an autocmd group, so that you can revert them with:
+-" ":augroup vimStartup | au! | augroup END"
+-augroup vimStartup
+- au!
+-
+- " When editing a file, always jump to the last known cursor position.
+- " Don't do it when the position is invalid, when inside an event handler
+- " (happens when dropping a file on gvim) and for a commit message (it's
+- " likely a different one than last time).
+- autocmd BufReadPost *
+- \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
+- \ | exe "normal! g`\""
+- \ | endif
+-
+-augroup END
++" Only do this part when Vim was compiled with the +eval feature.
++if 1
++
++ " Enable file type detection.
++ " Use the default filetype settings, so that mail gets 'tw' set to 72,
++ " 'cindent' is on in C files, etc.
++ " Also load indent files, to automatically do language-dependent indenting.
++ " Revert with ":filetype off".
++ filetype plugin indent on
++
++ " Put these in an autocmd group, so that you can revert them with:
++ " ":augroup vimStartup | au! | augroup END"
++ augroup vimStartup
++ au!
++
++ " When editing a file, always jump to the last known cursor position.
++ " Don't do it when the position is invalid, when inside an event handler
++ " (happens when dropping a file on gvim) and for a commit message (it's
++ " likely a different one than last time).
++ autocmd BufReadPost *
++ \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
++ \ | exe "normal! g`\""
++ \ | endif
++
++ augroup END
++
++endif
+
+ " Convenient command to see the difference between the current buffer and the
+ " file it was loaded from, thus the changes you made.
+diff --git a/src/version.c b/src/version.c
+index 46f63e7..b59878e 100644
+--- a/src/version.c
++++ b/src/version.c
+@@ -791,6 +791,8 @@ static char *(features[]) =
+
+ static int included_patches[] =
+ { /* Add new patch number below this line */
++/**/
++ 948,
+ /**/
+ 884,
+ /**/