We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f7cca8 commit e8d39a3Copy full SHA for e8d39a3
t/clang_format_spec.vim
@@ -423,3 +423,23 @@ describe 'g:clang_format#auto_formatexpr'
423
end
424
425
" }}}
426
+
427
+describe 'undo formatting text'
428
+ before
429
+ let g:clang_format#detect_style_file = 0
430
+ new
431
+ execute 'silent' 'edit!' './'.s:root_dir.'t/test.cpp'
432
+ end
433
434
+ after
435
+ bdelete!
436
437
438
+ it 'restores previous text as editing buffer normally'
439
+ let prev = GetBuffer()
440
+ ClangFormat
441
+ undo
442
+ let buf = GetBuffer()
443
+ Expect prev ==# buf
444
445
+end
0 commit comments