aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 01:26:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 01:28:20 +1200
commit3085eabaa3da37a638bb06771396845e6efd35be (patch)
tree50d4b3de968b02ef640c2432ba736452029314a2
parent2e6b0b13b652bf7e5187c7964abbb5506ac18944 (diff)
downloadvim-shebang-create-exec-3085eabaa3da37a638bb06771396845e6efd35be.tar.gz
vim-shebang-create-exec-3085eabaa3da37a638bb06771396845e6efd35be.zip
Remove unneeded variable scoping
-rw-r--r--autoload/shebang_create_exec.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/shebang_create_exec.vim b/autoload/shebang_create_exec.vim
index 1ce68e3..a69600a 100644
--- a/autoload/shebang_create_exec.vim
+++ b/autoload/shebang_create_exec.vim
@@ -71,7 +71,7 @@ function! s:MakeExecutable(filename) abort
" We'll need to fork to chmod(1); escape the filename safely, using
" shellescape() if we've got it
- let l:filename_escaped = exists('*shellescape')
+ let filename_escaped = exists('*shellescape')
\ ? shellescape(filename)
\ : '''' . escape(filename, '''') . ''''