Hi mgaleski!

On Mi, 22 Apr 2015, [email protected] wrote:

> Hello,
> 
> If wrap is set and text on line ends just on columns size (for example 80), 
> then VIM will display empty EOL below the line.
> 
> Example:
> :set listchars=eol:$
> :set list
> :set columns=80
> 80ia<ESC>
> 
> When you disable EOL completely you can't visually select empty lines. Maybe 
> there should be an additional listchar for just an empty line?
> 
> Example:
> :set listchars=
> :set list
> :new
> 5o<ESC>
> vgg
> 
> Can't see the visual selection on the empty lines (to be fair Windows Notepad 
>  and many other editors do the same).
> 
> This issue can somewhat circumvented with the use of linebreak, but it's not 
> always the best solution.

So only the second part is a problem that needs to be fixed, right?

Something like this?

diff --git a/src/screen.c b/src/screen.c
--- a/src/screen.c
+++ b/src/screen.c
@@ -4703,7 +4703,7 @@ win_line(wp, lnum, startrow, endrow, noc
                    }
                }
                else if (c == NUL
-                       && ((wp->w_p_list && lcs_eol > 0)
+                       && (wp->w_p_list
                            || ((fromcol >= 0 || fromcol_prev >= 0)
                                && tocol > vcol
                                && VIsual_mode != Ctrl_V
@@ -4749,7 +4749,7 @@ win_line(wp, lnum, startrow, endrow, noc
                            c_extra = NUL;
                        }
                    }
-                   if (wp->w_p_list)
+                   if (wp->w_p_list && lcs_eol > 0)
                        c = lcs_eol;
                    else
                        c = ' ';


Best,
Christian
-- 
Letzte Worte eines Baustatikers:
  "Ich glaube da habe ich mich irgendwo verrechnet."

-- 
-- 
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.

Raspunde prin e-mail lui