> Christian wrote:
> 
> > As requested in
> > https://github.com/vim/vim/pull/4693#issuecomment-529642042 amend the
> > cursorlineopt setting and allow a 'screenline' value. The
> > value `both` has been aliased to the option `number,line` which is now
> > the new default. To set the value do `:set culopt=screenline` or `:set
> > culopt=screenline,number`. Setting `both,screenline` or
> > `line,screenline` will be an error.
> > 
> > I have been conscious in adjusting the `win_line()` function. It
> > needed quite a bit additional code to handle all different special
> > cases, like when 'list' is set or when a multibyte character
> > does not fit on the screen and gets wrapped and handling are different
> > drawing states. Also, it might cause a small performance penalty,
> > because the caching using `w_last_cursorline` does not work, since we
> > are only highlighting parts of the file.  
> 
> I was going to include this, but with a simple test the highlighting is
> very wrong.  Try editing src/main.c with:
>       hi CursorLine cterm=underline   
> 
> With 'cursorlineopt' set to "both" the number column isn't highlighted.
> With set to "screenline" lots of highlighting is missing.

Oh wait, the default CursorLineNr highlight is wrong, it is missing the
underline attribute.  So th problem is only when using "screenline".

-- 
Did you hear about the new 3 million dollar West Virginia State Lottery?
The winner gets 3 dollars a year for a million years.

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201909141412.x8EECoUT012483%40masaka.moolenaar.net.

Raspunde prin e-mail lui