Commit 359dd7d
committed
fix(actions): set lnum=0 + valid=1 in sel_to_qf
For any qf entry with/without lnum, `:cnext` don't respect
`:h restore-cursor`.
With lnum=0, user can rewrite `:cnext` in script to custom
the jump behavior, since this is a file entry.
`valid=1` to make sure `:cfdo` can work as expected (#1560).
e.g. #2592 (comment)1 parent 29ee11c commit 359dd7d
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
0 commit comments