Karsten Hopp a6898b
To: vim_dev@googlegroups.com
Karsten Hopp a6898b
Subject: Patch 7.4.065
Karsten Hopp a6898b
Fcc: outbox
Karsten Hopp a6898b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a6898b
Mime-Version: 1.0
Karsten Hopp a6898b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp a6898b
Content-Transfer-Encoding: 8bit
Karsten Hopp a6898b
------------
Karsten Hopp a6898b
Karsten Hopp a6898b
Patch 7.4.065
Karsten Hopp a6898b
Problem:    When recording, the character typed at the hit-enter prompt is
Karsten Hopp a6898b
            recorded twice. (Urtica Dioica)
Karsten Hopp a6898b
Solution:   Avoid recording the character twice. (Christian Brabandt)
Karsten Hopp a6898b
Files:      src/message.c
Karsten Hopp a6898b
Karsten Hopp a6898b
Karsten Hopp a6898b
*** ../vim-7.4.064/src/message.c	2013-08-09 20:30:45.000000000 +0200
Karsten Hopp a6898b
--- src/message.c	2013-11-04 01:56:09.000000000 +0100
Karsten Hopp a6898b
***************
Karsten Hopp a6898b
*** 887,892 ****
Karsten Hopp a6898b
--- 887,894 ----
Karsten Hopp a6898b
      int		oldState;
Karsten Hopp a6898b
      int		tmpState;
Karsten Hopp a6898b
      int		had_got_int;
Karsten Hopp a6898b
+     int		save_Recording;
Karsten Hopp a6898b
+     FILE	*save_scriptout;
Karsten Hopp a6898b
  
Karsten Hopp a6898b
      if (redraw == TRUE)
Karsten Hopp a6898b
  	must_redraw = CLEAR;
Karsten Hopp a6898b
***************
Karsten Hopp a6898b
*** 957,967 ****
Karsten Hopp a6898b
--- 959,979 ----
Karsten Hopp a6898b
  	     * typeahead buffer. */
Karsten Hopp a6898b
  	    ++no_mapping;
Karsten Hopp a6898b
  	    ++allow_keys;
Karsten Hopp a6898b
+ 
Karsten Hopp a6898b
+ 	    /* Temporarily disable Recording. If Recording is active, the
Karsten Hopp a6898b
+ 	     * character will be recorded later, since it will be added to the
Karsten Hopp a6898b
+ 	     * typebuf after the loop */
Karsten Hopp a6898b
+ 	    save_Recording = Recording;
Karsten Hopp a6898b
+ 	    save_scriptout = scriptout;
Karsten Hopp a6898b
+ 	    Recording = FALSE;
Karsten Hopp a6898b
+ 	    scriptout = NULL;
Karsten Hopp a6898b
  	    c = safe_vgetc();
Karsten Hopp a6898b
  	    if (had_got_int && !global_busy)
Karsten Hopp a6898b
  		got_int = FALSE;
Karsten Hopp a6898b
  	    --no_mapping;
Karsten Hopp a6898b
  	    --allow_keys;
Karsten Hopp a6898b
+ 	    Recording = save_Recording;
Karsten Hopp a6898b
+ 	    scriptout = save_scriptout;
Karsten Hopp a6898b
  
Karsten Hopp a6898b
  #ifdef FEAT_CLIPBOARD
Karsten Hopp a6898b
  	    /* Strange way to allow copying (yanking) a modeless selection at
Karsten Hopp a6898b
*** ../vim-7.4.064/src/version.c	2013-11-04 01:41:11.000000000 +0100
Karsten Hopp a6898b
--- src/version.c	2013-11-04 01:53:19.000000000 +0100
Karsten Hopp a6898b
***************
Karsten Hopp a6898b
*** 740,741 ****
Karsten Hopp a6898b
--- 740,743 ----
Karsten Hopp a6898b
  {   /* Add new patch number below this line */
Karsten Hopp a6898b
+ /**/
Karsten Hopp a6898b
+     65,
Karsten Hopp a6898b
  /**/
Karsten Hopp a6898b
Karsten Hopp a6898b
-- 
Karsten Hopp a6898b
Zen Microsystems: we're the om in .commmmmmmmm
Karsten Hopp a6898b
Karsten Hopp a6898b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a6898b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a6898b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp a6898b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///