Commit 62fa6df
committed
Avoid the use of :normal in the indentexpr
Docs state that the indentexpr must not contain side effects, but that
moving the cursor is okay because it will be reset. However, a closer
look reveals that :normal commands for moving the cursor have side
effects beyond just moving the cursor and thus do not behave properly.
The Vim documentation should be changed to make this more clear, but we
can do our part now.1 parent 1b47218 commit 62fa6df
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
298 | | - | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| |||
0 commit comments