Hrm, replying to my own post...

Another problem is that filler lines do not get the 2 prefix columns for
the sign. In the example from my previous mail, the buffer for file2 is
displayed as


    .-----------.
    |██---------|
    |██---------|
    |████3      |
    |████       |
    |████       |
    `-----------´
     ||^^- sign columns
     ``--- foldcolumns


The patch below builds on the last one. It makes the mark below the
filler lines appear and also makes the sign columns appear in front of
the filler lines.


    .-----------.
    |████-------|
    |████-------|
    |██>>3      |
    |████       |
    |████       |
    `-----------´
     ||^^- sign columns
     ``--- foldcolumns


This makes the sign column appear less bumpy and attention-drawing.

-- 
Olaf Dabrunz (oda <at> fctrace.org)


--- a/src/screen.c
+++ b/src/screen.c
@@ -3553,11 +3553,7 @@ win_line(wp, lnum, startrow, endrow, noc
                draw_state = WL_SIGN;
                /* Show the sign column when there are any signs in this
                 * buffer or when using Netbeans. */
-               if (draw_signcolumn(wp)
-# ifdef FEAT_DIFF
-                       && filler_todo <= 0
-# endif
-                  )
+               if (draw_signcolumn(wp))
                {
                    int text_sign;
 # ifdef FEAT_SIGN_ICONS
@@ -3569,7 +3565,11 @@ win_line(wp, lnum, startrow, endrow, noc
                    char_attr = hl_attr(HLF_SC);
                    n_extra = 2;
 
-                   if (row == startrow)
+                   if (row == startrow
+#ifdef FEAT_DIFF
+                           + filler_lines && filler_todo <= 0
+#endif
+                           )
                    {
                        text_sign = buf_getsigntype(wp->w_buffer, lnum,
                                                                   SIGN_TEXT);

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