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

Re: . after change selected text [patch]

Expand Messages
  • Bram Moolenaar
    ... I see the problem. The flag that indicates select mode isn t reset. This patch should fix it: ... *************** ... { VIsual = curwin- w_cursor;
    Message 1 of 2 , Feb 28, 2001
    • 0 Attachment
      Raul Segura wrote:

      > after change some text in "select" mode, everytime you type "."
      > to repeat the change a "c" character is added at the beginning of
      > the "." register before it's inserted.
      >
      > for example if I "select" some text and replace it with the word
      > "Vim" the next "." command would insert "cVim", a second "."
      > would insert "ccVim", and so on.

      I see the problem. The flag that indicates select mode isn't reset. This
      patch should fix it:

      *** getchar.c~ Mon Feb 26 19:46:35 2001
      --- getchar.c Wed Feb 28 10:17:28 2001
      ***************
      *** 798,803 ****
      --- 798,804 ----
      {
      VIsual = curwin->w_cursor;
      VIsual_active = TRUE;
      + VIsual_select = FALSE;
      VIsual_reselect = TRUE;
      redo_VIsual_busy = TRUE;
      c = read_redo(FALSE, old_redo);

      --
      login: yes
      password: I don't know, please tell me
      password is incorrect
      login: yes
      password: incorrect

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.