To: vim-dev@vim.org Subject: Patch 6.1.278 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.278 Problem: When using signs the line number of a closed fold doesn't line up with the other line numbers. (Kamil Burzynski) Solution: Insert two spaces for the sign column. Files: src/screen.c *** ../vim61.277/src/screen.c Sun Nov 10 13:33:34 2002 --- src/screen.c Mon Jan 6 20:09:43 2003 *************** *** 1980,1985 **** --- 1980,2007 ---- /* Set all attributes of the 'number' column and the text */ RL_MEMSET(col, hl_attr(HLF_FL), (size_t)(W_WIDTH(wp) - col)); + #ifdef FEAT_SIGNS + /* If signs are being displayed, add two spaces. */ + if (wp->w_buffer->b_signlist != NULL) + { + len = W_WIDTH(wp) - col; + if (len > 0) + { + if (len > 2) + len = 2; + # ifdef FEAT_RIGHTLEFT + if (wp->w_p_rl) + /* the line number isn't reversed */ + copy_text_attr(off + W_WIDTH(wp) - len - col, " ", len, + hl_attr(HLF_FL)); + else + # endif + copy_text_attr(off + col, " ", len, hl_attr(HLF_FL)); + col += len; + } + } + #endif + /* * 3. Add the 'number' column */ *** ../vim61.277/src/version.c Mon Jan 6 10:16:31 2003 --- src/version.c Mon Jan 6 20:14:37 2003 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 278, /**/ -- GUARD #1: Where'd you get the coconut? ARTHUR: We found them. GUARD #1: Found them? In Mercea? The coconut's tropical! ARTHUR: What do you mean? GUARD #1: Well, this is a temperate zone. The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///