From d0b92dcc2e8be9379af5322510982532017a2b3517203b1de174413b86e4ddec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= <mimi.vx@gmail.com>
Date: Tue, 13 Oct 2020 06:23:09 +0000
Subject: [PATCH] - Updated to version 8.2.1840, fixes the following problems -
 refreshed vim-7.3-filetype_changes.patch and vim-8.0.1568-defaults.patch   *
 Filetype.vim may be loaded twice.   * Vim9: some assignment tests in the
 wrong file.   * Vim9: returning from a partial call clears outer context,
 causing a crash.   * Some debian changelog files are not recognized.   *
 Statusline not updated when splitting windows.   * Writing to prompt buffer
 interferes with insert mode.   * Vim9: cannot pass boolean to mapset().   *
 Try-catch test fails.   * commits are not scanned for security problems   *
 Compiler warning for strcp() out of bounds. (Christian Brabandt)   * Various
 Normal mode commands not fully tested.   * Crash with 'incsearch' and very
 long line.   * Vim9: still allows :let for declarations.   * Vim9: crash with
 invalid list constant. (Dhiraj Mishra)   * Vim9: debugger test fails.   *
 Configure does not recognize Racket 6.1+.   * Not consistently giving the "is
 a directory" warning.   * No falsy Coalescing operator.   * Vim9: operators
 && and || have a confusing result.   * Vim9: invalid memory access with weird
 function name. (Dhiraj Mishra)   * Vim9: some parts of the code not tested.  
 * Vim9: trinary operator condition is too permissive.   * Some Normal mode
 commands not fully tested.   * Vim9: memory leak if "if" condition is
 invalid.   * Undo file not found when using ":args" or ":next".   * Vim9:
 crash with unterminated dict. (Dhiraj Mishra)   * A few failures are not
 tested.   * resolve('/') returns an empty string.

OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=628
---
 vim-7.3-filetype_changes.patch | 14 +++----
 vim-8.0.1568-defaults.patch    | 10 ++---
 vim-8.2.1775.tar.gz            |  3 --
 vim-8.2.1840.tar.gz            |  3 ++
 vim.changes                    | 68 ++++++++++++++++++++++++++++++++++
 vim.spec                       |  2 +-
 6 files changed, 84 insertions(+), 16 deletions(-)
 delete mode 100644 vim-8.2.1775.tar.gz
 create mode 100644 vim-8.2.1840.tar.gz

diff --git a/vim-7.3-filetype_changes.patch b/vim-7.3-filetype_changes.patch
index 013818b..16c28d1 100644
--- a/vim-7.3-filetype_changes.patch
+++ b/vim-7.3-filetype_changes.patch
@@ -1,8 +1,8 @@
-Index: vim-8.2.0348/runtime/filetype.vim
+Index: vim-8.2.1840/runtime/filetype.vim
 ===================================================================
---- vim-8.2.0348.orig/runtime/filetype.vim
-+++ vim-8.2.0348/runtime/filetype.vim
-@@ -314,6 +314,9 @@ au BufNewFile,BufRead *.css			setf css
+--- vim-8.2.1840.orig/runtime/filetype.vim
++++ vim-8.2.1840/runtime/filetype.vim
+@@ -320,6 +320,9 @@ au BufNewFile,BufRead *.css			setf css
  " Century Term Command Scripts (*.cmd too)
  au BufNewFile,BufRead *.con			setf cterm
  
@@ -10,12 +10,12 @@ Index: vim-8.2.0348/runtime/filetype.vim
 +au BufNewFile,BufRead *.changes			setf changes
 +
  " Changelog
- au BufNewFile,BufRead changelog.Debian,changelog.dch,NEWS.Debian,NEWS.dch
+ au BufNewFile,BufRead changelog.Debian,changelog.dch,NEWS.Debian,NEWS.dch,*/debian/changelog
  					\	setf debchangelog
-Index: vim-8.2.0348/runtime/syntax/changes.vim
+Index: vim-8.2.1840/runtime/syntax/changes.vim
 ===================================================================
 --- /dev/null
-+++ vim-8.2.0348/runtime/syntax/changes.vim
++++ vim-8.2.1840/runtime/syntax/changes.vim
 @@ -0,0 +1,41 @@
 +" Vim syntax file
 +" Filename:     changes.vim
diff --git a/vim-8.0.1568-defaults.patch b/vim-8.0.1568-defaults.patch
index 57b9bf8..696a207 100644
--- a/vim-8.0.1568-defaults.patch
+++ b/vim-8.0.1568-defaults.patch
@@ -1,7 +1,7 @@
-Index: vim-8.2.0701/runtime/defaults.vim
+Index: vim-8.2.1840/runtime/defaults.vim
 ===================================================================
---- vim-8.2.0701.orig/runtime/defaults.vim
-+++ vim-8.2.0701/runtime/defaults.vim
+--- vim-8.2.1840.orig/runtime/defaults.vim
++++ vim-8.2.1840/runtime/defaults.vim
 @@ -77,13 +77,15 @@ inoremap <C-U> <C-G>u<C-U>
  " can position the cursor, Visually select and scroll with the mouse.
  " Only xterm can grab the mouse events when using the shift key, for other
@@ -23,8 +23,8 @@ Index: vim-8.2.0701/runtime/defaults.vim
 +"  endif
 +"endif
  
- " Switch syntax highlighting on when the terminal has colors or when using the
- " GUI (which always has colors).
+ " Only do this part when Vim was compiled with the +eval feature.
+ if 1
 @@ -139,3 +141,6 @@ if has('langmap') && exists('+langremap'
    " compatible).
    set nolangremap
diff --git a/vim-8.2.1775.tar.gz b/vim-8.2.1775.tar.gz
deleted file mode 100644
index 10afcf1..0000000
--- a/vim-8.2.1775.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d7269864d75e682c06ff380625d46b78986b8940018f998a179f81337ea0bc41
-size 15184691
diff --git a/vim-8.2.1840.tar.gz b/vim-8.2.1840.tar.gz
new file mode 100644
index 0000000..d252636
--- /dev/null
+++ b/vim-8.2.1840.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b29fce4af4a2ab5537a766a183bc5d43cd4546095d25233fadf1997caf1ddfbe
+size 15200509
diff --git a/vim.changes b/vim.changes
index b642322..0a85827 100644
--- a/vim.changes
+++ b/vim.changes
@@ -1,3 +1,71 @@
+-------------------------------------------------------------------
+Tue Oct 13 06:21:33 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
+
+- Updated to version 8.2.1840, fixes the following problems
+- refreshed vim-7.3-filetype_changes.patch and vim-8.0.1568-defaults.patch
+  * Filetype.vim may be loaded twice.
+  * Vim9: some assignment tests in the wrong file.
+  * Vim9: returning from a partial call clears outer context, causing a crash.
+  * Some debian changelog files are not recognized.
+  * Statusline not updated when splitting windows.
+  * Writing to prompt buffer interferes with insert mode.
+  * Vim9: cannot pass boolean to mapset().
+  * Try-catch test fails.
+  * commits are not scanned for security problems
+  * Compiler warning for strcp() out of bounds. (Christian Brabandt)
+  * Various Normal mode commands not fully tested.
+  * Crash with 'incsearch' and very long line.
+  * Vim9: still allows :let for declarations.
+  * Vim9: crash with invalid list constant. (Dhiraj Mishra)
+  * Vim9: debugger test fails.
+  * Configure does not recognize Racket 6.1+.
+  * Not consistently giving the "is a directory" warning.
+  * No falsy Coalescing operator.
+  * Vim9: operators && and || have a confusing result.
+  * Vim9: invalid memory access with weird function name. (Dhiraj Mishra)
+  * Vim9: some parts of the code not tested.
+  * Vim9: trinary operator condition is too permissive.
+  * Some Normal mode commands not fully tested.
+  * Vim9: memory leak if "if" condition is invalid.
+  * Undo file not found when using ":args" or ":next".
+  * Vim9: crash with unterminated dict. (Dhiraj Mishra)
+  * A few failures are not tested.
+  * resolve('/') returns an empty string.
+  * Unix: terminal mode changed when using ":shell".
+  * Can use :help in a terminal popup window.
+  * No test coverage for ":spelldump!".
+  * Mapping some keys with Ctrl does not work properly.
+  * Some code in normal.c not covered by tests.
+  * Mapping Ctrl-key does not work for '{', '}' and '|'.
+  * Vim9: nested closure throws an internal error.
+  * Vim9: can assign wrong type to script dict. (Christian J.  Robinson)
+  * Missing change to remove "static".
+  * Vim9: memory leak when using function reference.
+  * Vim9: another memory leak when using function reference.
+  * Vim9: wrong instruction when reusing a local variable spot.
+  * SE Linux: deprecation warning for security_context_t.
+  * Vim9: Memory leak when using a closure.
+  * Vim9: crash when error happens in timer callback.
+  * Vim9: concatenating to a NULL list doesn't work.
+  * List test doesn't fail.
+  * "gN" does not select the matched string.
+  * Vim9: variables at the script level escape their scope.
+  * Vim9: accessing freed memory.
+  * Vim9: cannot use a {} block at script level.
+  * Filetype detection does not test enough file names.
+  * Build failure without the +eval feature.
+  * Warnings when executing Github actions.
+  * File missing from distribution.
+  * readdirex() error is displayed as a message. (Yegappan Lakshmanan)
+  * When reading from stdin dup() is called twice.
+  * PyEval_InitThreads() is deprecated in Python 3.9.
+  * ":help ??" finds the "!!" tag.
+  * Autocmd test fails on pacifist systems.
+  * Using "gn" after "gN" does not work.
+  * Vim9: cannot insert a comment line in an expression.
+  * Vim9: memory leaks reported in assign test.
+  * Vim9: error message is not clear about compilation error.
+
 -------------------------------------------------------------------
 Thu Oct  8 21:35:39 UTC 2020 - Christian Boltz <suse-beta@cboltz.de>
 
diff --git a/vim.spec b/vim.spec
index de608d5..94bd7df 100644
--- a/vim.spec
+++ b/vim.spec
@@ -17,7 +17,7 @@
 
 
 %define pkg_version 8.2
-%define patchlevel 1775
+%define patchlevel 1840
 %define patchlevel_compact %{patchlevel}
 %define VIM_SUBDIR vim82
 %define site_runtimepath %{_datadir}/vim/site