Loading ...
Sorry, an error occurred while loading the content.

Patch 7.3.747

Expand Messages
  • Bram Moolenaar
    Patch 7.3.747 Problem: When characters are concealed text aligned with tabs are no longer aligned, e.g. at :help :index . Solution: Compensate space for
    Message 1 of 1 , Dec 5, 2012
    • 0 Attachment
      Patch 7.3.747
      Problem: When characters are concealed text aligned with tabs are no longer
      aligned, e.g. at ":help :index".
      Solution: Compensate space for tabs for concealed characters. (Dominique
      Pelle)
      Files: src/screen.c


      *** ../vim-7.3.746/src/screen.c 2012-10-03 18:24:55.000000000 +0200
      --- src/screen.c 2012-12-05 15:22:03.000000000 +0100
      ***************
      *** 4269,4275 ****
      {
      /* tab amount depends on current column */
      n_extra = (int)wp->w_buffer->b_p_ts
      ! - VCOL_HLC % (int)wp->w_buffer->b_p_ts - 1;
      #ifdef FEAT_MBYTE
      mb_utf8 = FALSE; /* don't draw as UTF-8 */
      #endif
      --- 4269,4288 ----
      {
      /* tab amount depends on current column */
      n_extra = (int)wp->w_buffer->b_p_ts
      ! - vcol % (int)wp->w_buffer->b_p_ts - 1;
      ! #ifdef FEAT_CONCEAL
      ! /* Tab alignment should be identical regardless of
      ! * 'conceallevel' value. So tab compensates of all
      ! * previous concealed characters, and thus resets vcol_off
      ! * and boguscols accumulated so far in the line. Note that
      ! * the tab can be longer than 'tabstop' when there
      ! * are concealed characters. */
      ! n_extra += vcol_off;
      ! vcol -= vcol_off;
      ! vcol_off = 0;
      ! col -= boguscols;
      ! boguscols = 0;
      ! #endif
      #ifdef FEAT_MBYTE
      mb_utf8 = FALSE; /* don't draw as UTF-8 */
      #endif
      *** ../vim-7.3.746/src/version.c 2012-12-05 15:16:42.000000000 +0100
      --- src/version.c 2012-12-05 15:22:27.000000000 +0100
      ***************
      *** 727,728 ****
      --- 727,730 ----
      { /* Add new patch number below this line */
      + /**/
      + 747,
      /**/

      --
      hundred-and-one symptoms of being an internet addict:
      99. The hum of a cooling fan and the click of keys is comforting to you.

      /// Bram Moolenaar -- Bram@... -- 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
    Your message has been successfully submitted and would be delivered to recipients shortly.