Skip to main content
8 events
when toggle format what by license comment
Sep 22, 2019 at 19:22 comment added Matt @JoshLawrence It should work; make sure you pass bufnr as argument to a function. cursor() would fail if the function would be called when quickfix is not an active buffer; that's not possible in this case, but in general that could be an issue.
Sep 22, 2019 at 19:13 comment added Josh Lawrence call cursor(a:firstline, 1) worked while call setpos('.', [a:bufnr, a:firstline, 1, 0]) did not
Sep 22, 2019 at 19:12 vote accept Josh Lawrence
Sep 22, 2019 at 18:52 history edited Matt CC BY-SA 4.0
added 31 characters in body
Sep 22, 2019 at 18:22 history edited Matt CC BY-SA 4.0
added 76 characters in body
Sep 22, 2019 at 18:18 comment added Matt @JoshLawrence Add call cursor(a:firstline, 1), for example.
Sep 22, 2019 at 18:00 comment added Josh Lawrence is there a way to preserve the cursor position after the delete has been executed so that it behaves fully like normal delete operations? Otherwise this is great!
Sep 22, 2019 at 17:49 history answered Matt CC BY-SA 4.0