Hi Bram,
> As a compromise the error is shortened when the cursor moves. When you
> jump to an error in the same line, then the full error is echoed, so
> that you can read it.
You're assuming there is a long error involved but this also happens
when the message is empty! The reported condition is a sufficient
condition. It only requires the current line to be the target line.
For example:
1) Write this simple 3-line python script:
#
#
1/0
2) let &l:errorformat=' File "%f"\, line %l%.%#' | let &l:makeprg='python %'
3a) Move the cursor to the first line and :make
=> Fine
3b) Move the cursor to the third line and :make
=> Double Hit Enter prompt
Notice the error is just empty because of the way errorformat was defined.
There is another situation when the Hit Enter prompt is shown twice
and yet it's also unrelated to long messages: when there are no valid
entries in the qf list. In the example above, replace `1/0` for
`print('hello')` and repeat the steps. Now both 3a and 3b end up
showing a double prompt, despite there is nowhere to jump to and no
valid error message to show.
This last point also illustrates something I've posted about
yesterday: the treatment of completely non-valid errors qf lists. IMO
they're best seen as ok output in their own than as a special case of
error output that happens to contain 0 errors by chance. In
particular: the || prefix is just noise in this case, and the current
error highlight (Search) makes no sense. To keep DRY I won't replicate
my full arguments here, though, but I would like to hear what do you
think about it (there).
Best regards
--
Carlos
>
> I don't think there is a better compromise.
>
> --
> I wish there was a knob on the TV to turn up the intelligence.
> There's a knob called "brightness", but it doesn't seem to work.
>
> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
> /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\ an exciting new programming language -- http://www.Zimbu.org ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.