Skip to content

Commit e12bbee

Browse files
authored
Merge pull request #69 from nickspoons/cino-J
setlocal cinoptions=J1
2 parents ac933c3 + 5f3294c commit e12bbee

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

ftplugin/cs.vim

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ setlocal formatoptions-=t formatoptions+=croql
2121
" Set 'comments' to format dashed lists in comments.
2222
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
2323

24+
setlocal cinoptions=J1
25+
2426
let b:undo_ftplugin = 'setl com< fo<'
2527

2628
if exists('loaded_matchit') && !exists('b:match_words')

test/indent.vader

+17
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,20 @@ Expect cs(correct indentation):
7474
string m_PrettyName = "";
7575
}
7676
}
77+
78+
Given cs (an object initialization with more than one property):
79+
return new LoginResponse
80+
{
81+
Success = false,
82+
Message = _frameworkSettings.InvalidLoginErrorMessage
83+
};
84+
85+
Execute:
86+
normal! gg=G
87+
88+
Expect cs(correct indentation):
89+
return new LoginResponse
90+
{
91+
Success = false,
92+
Message = _frameworkSettings.InvalidLoginErrorMessage
93+
};

0 commit comments

Comments
 (0)