Karsten Hopp 916666
To: vim_dev@googlegroups.com
Karsten Hopp 916666
Subject: Patch 7.3.374
Karsten Hopp 916666
Fcc: outbox
Karsten Hopp 916666
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 916666
Mime-Version: 1.0
Karsten Hopp 916666
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 916666
Content-Transfer-Encoding: 8bit
Karsten Hopp 916666
------------
Karsten Hopp 916666
Karsten Hopp 916666
Patch 7.3.374
Karsten Hopp 916666
Problem:    ++encoding does not work properly.
Karsten Hopp 916666
Solution:   Recognize ++encoding before ++enc. (Charles Cooper)
Karsten Hopp 916666
Files:	    src/ex_docmd.c
Karsten Hopp 916666
Karsten Hopp 916666
Karsten Hopp 916666
*** ../vim-7.3.373/src/ex_docmd.c	2011-10-20 21:58:20.000000000 +0200
Karsten Hopp 916666
--- src/ex_docmd.c	2011-12-14 14:46:05.000000000 +0100
Karsten Hopp 916666
***************
Karsten Hopp 916666
*** 4840,4851 ****
Karsten Hopp 916666
  #ifdef FEAT_MBYTE
Karsten Hopp 916666
      else if (STRNCMP(arg, "enc", 3) == 0)
Karsten Hopp 916666
      {
Karsten Hopp 916666
! 	arg += 3;
Karsten Hopp 916666
! 	pp = &eap->force_enc;
Karsten Hopp 916666
!     }
Karsten Hopp 916666
!     else if (STRNCMP(arg, "encoding", 8) == 0)
Karsten Hopp 916666
!     {
Karsten Hopp 916666
! 	arg += 8;
Karsten Hopp 916666
  	pp = &eap->force_enc;
Karsten Hopp 916666
      }
Karsten Hopp 916666
      else if (STRNCMP(arg, "bad", 3) == 0)
Karsten Hopp 916666
--- 4840,4849 ----
Karsten Hopp 916666
  #ifdef FEAT_MBYTE
Karsten Hopp 916666
      else if (STRNCMP(arg, "enc", 3) == 0)
Karsten Hopp 916666
      {
Karsten Hopp 916666
! 	if (STRNCMP(arg, "encoding", 8) == 0)
Karsten Hopp 916666
! 	    arg += 8;
Karsten Hopp 916666
! 	else
Karsten Hopp 916666
! 	    arg += 3;
Karsten Hopp 916666
  	pp = &eap->force_enc;
Karsten Hopp 916666
      }
Karsten Hopp 916666
      else if (STRNCMP(arg, "bad", 3) == 0)
Karsten Hopp 916666
*** ../vim-7.3.373/src/version.c	2011-12-14 14:15:12.000000000 +0100
Karsten Hopp 916666
--- src/version.c	2011-12-14 14:44:01.000000000 +0100
Karsten Hopp 916666
***************
Karsten Hopp 916666
*** 716,717 ****
Karsten Hopp 916666
--- 716,719 ----
Karsten Hopp 916666
  {   /* Add new patch number below this line */
Karsten Hopp 916666
+ /**/
Karsten Hopp 916666
+     374,
Karsten Hopp 916666
  /**/
Karsten Hopp 916666
Karsten Hopp 916666
-- 
Karsten Hopp 916666
Linux is just like a wigwam: no Windows, no Gates and an Apache inside.
Karsten Hopp 916666
Karsten Hopp 916666
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 916666
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 916666
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 916666
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///