Skip to content

Commit 2cd93a5

Browse files
committed
Add test for bug #102
Signed-off-by: Wolfgang E. Sanyer <WolfgangSanyer@Google.com>
1 parent 605dc00 commit 2cd93a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vroom/clangformat.vroom

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,12 @@ current buffer.
181181

182182
The -assume-filename arg passed above is also related, used by the clang-format
183183
tool to detect any custom style rules particular to the current file.
184+
185+
186+
Bug #102. When the buffer is empty, clang-format does _not_ return a cursor
187+
position
188+
189+
@clear
190+
:call maktaba#error#TryCommand('FormatCode clang-format')
191+
! clang-format -style file .*
192+
$ echo -n

0 commit comments

Comments
 (0)