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

Re: Bug in builtin line() function? (second query)

Expand Messages
  • Bram Moolenaar
    ... I had it in my mail backlog somewhere. Anyway, this patch should fix the problem: ... *************** ... { pos_T pos; oparg_T oa; + int slcb =
    Message 1 of 2 , Jun 23, 2003
      Gary Holloway wrote:

      > I never saw any response to this.
      > Did I miss it, or can no one else reproduce this?
      > Or, should I send this to vim@...?

      I had it in my mail backlog somewhere. Anyway, this patch should fix
      the problem:

      *** mark.c~ Sat Apr 19 16:06:43 2003
      --- mark.c Mon Jun 23 22:20:34 2003
      ***************
      *** 270,295 ****
      --- 270,301 ----
      {
      pos_T pos;
      oparg_T oa;
      + int slcb = listcmd_busy;

      pos = curwin->w_cursor;
      + listcmd_busy = TRUE; /* avoid that '' is changed */
      if (findpar(&oa, c == '}' ? FORWARD : BACKWARD, 1L, NUL, FALSE))
      {
      pos_copy = curwin->w_cursor;
      posp = &pos_copy;
      }
      curwin->w_cursor = pos;
      + listcmd_busy = slcb;
      }
      else if (c == '(' || c == ')') /* to previous/next sentence */
      {
      pos_T pos;
      + int slcb = listcmd_busy;

      pos = curwin->w_cursor;
      + listcmd_busy = TRUE; /* avoid that '' is changed */
      if (findsent(c == ')' ? FORWARD : BACKWARD, 1L))
      {
      pos_copy = curwin->w_cursor;
      posp = &pos_copy;
      }
      curwin->w_cursor = pos;
      + listcmd_busy = slcb;
      }
      #ifdef FEAT_VISUAL
      else if (c == '<' || c == '>') /* start/end of visual area */

      Please let me know if it works OK for you.

      --
      "Hit any key to continue" is a lie.

      /// Bram Moolenaar -- Bram@... -- 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 ///
      \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.