mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-25 05:00:21 +00:00
packages/vim-python&&packages/vim
This commit is contained in:
17
packages/vim-python/runtime-syntax-sh.vim.patch
Normal file
17
packages/vim-python/runtime-syntax-sh.vim.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
--- a/runtime/syntax/sh.vim
|
||||
+++ b/runtime/syntax/sh.vim
|
||||
@@ -25,10 +25,10 @@
|
||||
" the script itself does not specify which shell to use. FYI: /bin/sh is ambiguous.
|
||||
" Assuming /bin/sh is executable, and if its a link, find out what it links to.
|
||||
let s:shell = ""
|
||||
- if executable("/bin/sh")
|
||||
- let s:shell = resolve("/bin/sh")
|
||||
- elseif executable("/usr/bin/sh")
|
||||
- let s:shell = resolve("/usr/bin/sh")
|
||||
+ if executable("@TERMUX_PREFIX@/bin/sh")
|
||||
+ let s:shell = resolve("@TERMUX_PREFIX@/bin/sh")
|
||||
+ elseif executable("/system/bin/sh")
|
||||
+ let s:shell = resolve("/system/bin/sh")
|
||||
endif
|
||||
if s:shell =~ '\<ksh\>'
|
||||
let b:is_kornshell= 1
|
||||
Reference in New Issue
Block a user