vim/vim-7.3-sh_is_bash.patch

19 lines
538 B
Diff
Raw Normal View History

- Updated to version 8.2.1775, fixes the following problems - refreshed vim-7.3-sh_is_bash.patch * Vim9: no error if comma is missing in between arguments. * Vim9: memory leak with heredoc that isn't executed. (Dominique Pellé) * Vim9: cannot assign a lambda to a variable of type function. * Vim9: Variable argument name cannot start with underscore. * Vim9: assignment tests spread out. * Not all Pascal files are recognized. * Fuzzy matching only works on strings. * A popup created with "cursorline" will ignore "firstline". * Compiler warning for using uninitialized variable. (John Marriott) * Endless loop when ":normal" feeds popup window filter. * Vim9: cannot use member of unknown type. * Vim9: cannot use += to append to empty NULL list. * Stuck when win_execute() for a popup causes an error. * Vim9: memory leaks when using nested function. * Vim9: cannot use a funcref for a closure twice. * Failure to compile a pattern not tested much. * Cursor line highlight in popup window is not always updated. * Mac: str2float() recognizes comma instead of decimal point. * Vim9: crash when compiling a manually defined function. (Antony Scriven) * Test fails without the terminal feature. * pathshorten() only supports using one character. * Test still fails without the terminal feature. * Cannot build without the eval feature. * Vim9: using ":const!" is weird. * Tiny version doesn't build. * Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino) * Result of expand() unexpectedly depends on 'completeslash'. * Closing split window in other tab may cause a crash. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=624
2020-09-30 11:56:48 +02:00
Index: vim-8.2.1775/runtime/syntax/sh.vim
- Updated to revision 935, fixes the following problems * Test 94 fails on some systems. * test_utf8 has confusing dummy command. * Crash when using longest completion match. - Updated to revision 930, fixes the following problems * When a BufLeave autocommand changes folding in a way it syncs undo, undo can be corrupted. * Python interface can produce error "vim.message' object has no attribute 'isatty'". * Libraries for dynamically loading interfaces can only be defined at compile time. * Compiler complains about type punned pointer. * t_Ce and t_Cs are documented but not supported. (Hirohito Higashi) * Wrong indenting for C++ constructor. * No utf-8 support for the hangul input feature. * New compiler warning: logical-not-parentheses * When removing from 'path' and then adding, a comma may go missing. (Malcolm Rowe) * When running out of memory while copying a dict memory may be freed twice. (ZyX) * Compiler warning for comparing signed and unsigned. * A digit in an option name has problems. * The dll options are not in the options window. * The rubydll option is not in the options window. * Missing proto file update. (Randall W. Morris) * Leaking memory with ":helpt {dir-not-exists}". * Prototypes not always generated. * User may yank or put using the register being recorded in. * Completing the longest match doesn't work properly with multi-byte characters. * Ruby crashes when there is a runtime error. * A clientserver message interrupts handling keys of a mapping. * "gv" after paste selects one character less if 'selection' is "exclusive". * MS-Windows: Most users appear not to like the window border. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=292
2015-11-22 17:39:30 +01:00
===================================================================
- Updated to version 8.2.1775, fixes the following problems - refreshed vim-7.3-sh_is_bash.patch * Vim9: no error if comma is missing in between arguments. * Vim9: memory leak with heredoc that isn't executed. (Dominique Pellé) * Vim9: cannot assign a lambda to a variable of type function. * Vim9: Variable argument name cannot start with underscore. * Vim9: assignment tests spread out. * Not all Pascal files are recognized. * Fuzzy matching only works on strings. * A popup created with "cursorline" will ignore "firstline". * Compiler warning for using uninitialized variable. (John Marriott) * Endless loop when ":normal" feeds popup window filter. * Vim9: cannot use member of unknown type. * Vim9: cannot use += to append to empty NULL list. * Stuck when win_execute() for a popup causes an error. * Vim9: memory leaks when using nested function. * Vim9: cannot use a funcref for a closure twice. * Failure to compile a pattern not tested much. * Cursor line highlight in popup window is not always updated. * Mac: str2float() recognizes comma instead of decimal point. * Vim9: crash when compiling a manually defined function. (Antony Scriven) * Test fails without the terminal feature. * pathshorten() only supports using one character. * Test still fails without the terminal feature. * Cannot build without the eval feature. * Vim9: using ":const!" is weird. * Tiny version doesn't build. * Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino) * Result of expand() unexpectedly depends on 'completeslash'. * Closing split window in other tab may cause a crash. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=624
2020-09-30 11:56:48 +02:00
--- vim-8.2.1775.orig/runtime/syntax/sh.vim
+++ vim-8.2.1775/runtime/syntax/sh.vim
@@ -74,6 +74,13 @@ if exists("b:is_dash")
let b:is_posix= 1
endif
+" Neither is_kornshell nor is_bash was explicitly set, and
+" /bin/sh is a bash on SUSE LINUX.
+if exists("b:is_sh")
+ let b:is_bash= 1
+ unlet b:is_sh
+endif
+
" set up default g:sh_fold_enabled {{{1
- Updated to revision 935, fixes the following problems * Test 94 fails on some systems. * test_utf8 has confusing dummy command. * Crash when using longest completion match. - Updated to revision 930, fixes the following problems * When a BufLeave autocommand changes folding in a way it syncs undo, undo can be corrupted. * Python interface can produce error "vim.message' object has no attribute 'isatty'". * Libraries for dynamically loading interfaces can only be defined at compile time. * Compiler complains about type punned pointer. * t_Ce and t_Cs are documented but not supported. (Hirohito Higashi) * Wrong indenting for C++ constructor. * No utf-8 support for the hangul input feature. * New compiler warning: logical-not-parentheses * When removing from 'path' and then adding, a comma may go missing. (Malcolm Rowe) * When running out of memory while copying a dict memory may be freed twice. (ZyX) * Compiler warning for comparing signed and unsigned. * A digit in an option name has problems. * The dll options are not in the options window. * The rubydll option is not in the options window. * Missing proto file update. (Randall W. Morris) * Leaking memory with ":helpt {dir-not-exists}". * Prototypes not always generated. * User may yank or put using the register being recorded in. * Completing the longest match doesn't work properly with multi-byte characters. * Ruby crashes when there is a runtime error. * A clientserver message interrupts handling keys of a mapping. * "gv" after paste selects one character less if 'selection' is "exclusive". * MS-Windows: Most users appear not to like the window border. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=292
2015-11-22 17:39:30 +01:00
" ================================
if !exists("g:sh_fold_enabled")