stefandtw / quickfix-reflector.vim

Change code right in the quickfix window
MIT License
347 stars 18 forks source link

Prevent error spew: Abort and try to avoid applying changes when invalid #32

Closed idbrii closed 2 years ago

idbrii commented 2 years ago

I use quickfix-reflector with asyncrun.vim and it's mostly great. However, sometimes quickfix-reflector spews out a screen of errors -- possibly because asyncrun.vim adds to the quickfix and I needed to reload the quickfix before doing anything with quickfix-reflector.

Regardless, using abort prevents the error spew and just gives a single error where it occurred -- there's no point in trying to continue.

I also cleaned up some unrelated inconsistent whitespace.

I've been using this since back when I wrote it and forgot to send a PR.