diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-08-24 09:07:35 +0900 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-08-24 11:33:06 +0900 |
commit | 327e3fab9e66701334a55dd7893283acb85899a2 (patch) | |
tree | f2daa4b73c06401001707b838b65f32e3a474d69 /runtime/indent/php.vim | |
parent | 1c961a9d620f8e5efa324f0b35f42c06cba8b262 (diff) | |
download | rneovim-327e3fab9e66701334a55dd7893283acb85899a2.tar.gz rneovim-327e3fab9e66701334a55dd7893283acb85899a2.tar.bz2 rneovim-327e3fab9e66701334a55dd7893283acb85899a2.zip |
vim-patch:3fc7a7e44abd
runtime: Fix typos in various files
closes: vim/vim#12836
https://github.com/vim/vim/commit/3fc7a7e44abda6505ccd39a6d067db6e5173cbf6
Co-authored-by: Viktor Szépe <viktor@szepe.net>
Diffstat (limited to 'runtime/indent/php.vim')
-rw-r--r-- | runtime/indent/php.vim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/indent/php.vim b/runtime/indent/php.vim index 0e623689d5..6b3d700059 100644 --- a/runtime/indent/php.vim +++ b/runtime/indent/php.vim @@ -327,13 +327,13 @@ endfun function! FindArrowIndent (lnum) " {{{ - let parrentArrowPos = -1 + let parentArrowPos = -1 let cursorPos = -1 let lnum = a:lnum while lnum > 1 let last_line = getline(lnum) if last_line =~ '^\s*->' - let parrentArrowPos = indent(a:lnum) + let parentArrowPos = indent(a:lnum) break else @@ -355,28 +355,28 @@ function! FindArrowIndent (lnum) " {{{ else endif else - let parrentArrowPos = -1 + let parentArrowPos = -1 break end endif if cleanedLnum =~ '->' call cursor(lnum, cursorPos == -1 ? strwidth(cleanedLnum) : cursorPos) - let parrentArrowPos = searchpos('->', 'cWb', lnum)[1] - 1 + let parentArrowPos = searchpos('->', 'cWb', lnum)[1] - 1 break else - let parrentArrowPos = -1 + let parentArrowPos = -1 break endif endif endwhile - if parrentArrowPos == -1 - let parrentArrowPos = indent(lnum) + shiftwidth() + if parentArrowPos == -1 + let parentArrowPos = indent(lnum) + shiftwidth() end - return parrentArrowPos + return parentArrowPos endfun "}}} function! FindTheIfOfAnElse (lnum, StopAfterFirstPrevElse) " {{{ |