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

Patch 7.3.803

Expand Messages
  • Bram Moolenaar
    Patch 7.3.803 (after 7.3.792) Problem: Substitute with confirmation and then q does not replace anything. (John McGowan) Solution: Do not break the
    Message 1 of 1 , Feb 6, 2013
    • 0 Attachment
      Patch 7.3.803 (after 7.3.792)
      Problem: Substitute with confirmation and then "q" does not replace
      anything. (John McGowan)
      Solution: Do not break the loop, skip to the end.
      Files: src/ex_cmds.c, src/testdir/test80.in, src/testdir/test80.ok


      *** ../vim-7.3.802/src/ex_cmds.c 2013-01-30 21:55:45.000000000 +0100
      --- src/ex_cmds.c 2013-02-06 18:13:52.000000000 +0100
      ***************
      *** 4878,4884 ****
      goto skip;
      }
      if (got_quit)
      ! break;
      }

      /* Move the cursor to the start of the match, so that we can
      --- 4878,4884 ----
      goto skip;
      }
      if (got_quit)
      ! goto skip;
      }

      /* Move the cursor to the start of the match, so that we can
      *** ../vim-7.3.802/src/testdir/test80.in 2013-01-30 17:03:25.000000000 +0100
      --- src/testdir/test80.in 2013-02-06 18:21:07.000000000 +0100
      ***************
      *** 153,164 ****
      :s/\(^\|,\)\ze\(,\|Y\)/\1N/gc
      a:$put =',,Z'
      :s/\(^\|,\)\ze\(,\|Z\)/\1N/gc
      ! yy/^TEST_9
      ENDTEST

      TEST_9:

      STARTTEST
      :/^Results/,$wq! test.out
      ENDTEST

      --- 153,175 ----
      :s/\(^\|,\)\ze\(,\|Y\)/\1N/gc
      a:$put =',,Z'
      :s/\(^\|,\)\ze\(,\|Z\)/\1N/gc
      ! yy/^TEST_9:
      ENDTEST

      TEST_9:

      STARTTEST
      + :set magic&
      + :set cpo&
      + :$put =\"\n\nTEST_9:\"
      + :$put ='xxx'
      + :s/x/X/gc
      + yyq/^TEST_10:
      + ENDTEST
      +
      + TEST_10:
      +
      + STARTTEST
      :/^Results/,$wq! test.out
      ENDTEST

      *** ../vim-7.3.802/src/testdir/test80.ok 2013-01-30 17:03:25.000000000 +0100
      --- src/testdir/test80.ok 2013-02-06 18:21:16.000000000 +0100
      ***************
      *** 105,107 ****
      --- 105,111 ----
      N,,NX
      N,,NY
      N,,NZ
      +
      +
      + TEST_9:
      + XXx
      *** ../vim-7.3.802/src/version.c 2013-02-06 16:26:20.000000000 +0100
      --- src/version.c 2013-02-06 18:14:42.000000000 +0100
      ***************
      *** 727,728 ****
      --- 727,730 ----
      { /* Add new patch number below this line */
      + /**/
      + 803,
      /**/

      --
      To the optimist, the glass is half full.
      To the pessimist, the glass is half empty.
      To the engineer, the glass is twice as big as it needs to be.

      /// 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

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.