Commit 3b0b1c8
Restore unnamed register after format (rhysd#57)
* Restore unnamed register after format
Replacing a visual selection with the formatted lines (ggVG"gp),
puts in the unnamed register the selections.
This commit restores the previously held value of the unnamed register
after applying the formatting.
* Use v:register instead of '' for getreg/setreg1 parent e8d39a3 commit 3b0b1c8
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| 223 | + | |
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
| |||
0 commit comments