Commit 4475797
* create new undo block for formatting (fix rhysd#30)
This creates a new undo block to only contain the changes introduced by
clang format but still preserves the original cursor position.
* fix creation of undo block in visual mode at line 1
* redirect yanked text to black hole register
* suppress autocmd events when creating new undo block
1 parent 0961a91 commit 4475797
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
| |||
0 commit comments