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

Move cursor if replace char (2)

Expand Messages
  • Yasuhiro Matsumoto
    ... Sorry It seems wrong. This is correctry ... *************** *** 4532,4539 **** } else if (IsLeadByte(prechar)) { (void)del_char(TRUE); !
    Message 1 of 1 , Apr 14, 2000
    • 0 Attachment
      > Hi.
      >
      > if replacing double-byte with single-bute,
      > cursor move next.
      >
      > I made patch.

      Sorry It seems wrong.

      This is correctry

      ------------------------------------------------
      *** src.orig/normal.c Fri Apr 14 15:53:38 2000
      --- src/normal.c Fri Apr 14 18:47:01 2000
      ***************
      *** 4532,4539 ****
      }
      else if (IsLeadByte(prechar))
      {
      (void)del_char(TRUE);
      ! ++curwin->w_cursor.col;
      }
      }
      #endif
      --- 4532,4541 ----
      }
      else if (IsLeadByte(prechar))
      {
      + /* store old column */
      + int old_col = curwin->w_cursor.col;
      (void)del_char(TRUE);
      ! curwin->w_cursor.col = old_col;
      }
      }
      #endif
    Your message has been successfully submitted and would be delivered to recipients shortly.