mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:50dbe16cd818
runtime(qml): Use shiftwidth() in indent plugin (vim/vim#13908)
Fixes vim/vim#13907
50dbe16cd8
Co-authored-by: dkearns <dougkearns@gmail.com>
			
			
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| " Vim indent file | ||||
| " Language:     QML | ||||
| " Maintainer:   Chase Knowlden <haroldknowlden@gmail.com> | ||||
| " Last Change:  2023 Aug 16 | ||||
| " Last Change:  2024 Jan 24 by Vim Project | ||||
| " | ||||
| " Improved JavaScript indent script. | ||||
|  | ||||
| @@ -40,10 +40,10 @@ function! s:GetQmlIndent() | ||||
|  | ||||
|   " bracket/brace/paren blocks | ||||
|   if pline =~ '[{[(]$' | ||||
|     let ind += &sw | ||||
|     let ind += shiftwidth() | ||||
|   endif | ||||
|   if line =~ '^[}\])]' | ||||
|     let ind -= &sw | ||||
|     let ind -= shiftwidth() | ||||
|   endif | ||||
|  | ||||
|   " '/*' comments | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christian Clason
					Christian Clason