[SCM] Vim packaging branch, master, updated. debian/7.2.000-1-2-g6ef7dc4
James Vega
jamessan at debian.org
Thu Aug 14 00:27:34 UTC 2008
The following commit has been merged in the master branch:
commit 6ef7dc4a1409d5bb74f7aa799ba02a48911caa39
Author: James Vega <jamessan at debian.org>
Date: Wed Aug 13 20:20:10 2008 -0400
Revert "Merge branch 'deb/set-cp-after-init'"
After further discussion with Bram, he decided that the behavior
set-cp-after-init was changing was behaving exactly as intended.
Ref. #438560
This reverts commit 1ce7365a7ad08f3cb9ba5ba4e42f8b5d1ae331f8.
Conflicts:
src/main.c
Signed-off-by: James Vega <jamessan at debian.org>
diff --git a/src/main.c b/src/main.c
index c2d4e39..e4acabf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -35,9 +35,6 @@
#define WIN_VER 2 /* "-O" vertically split windows */
#define WIN_TABS 3 /* "-p" windows on tab pages */
-#define SET_CP 1 /* "-C" set compatible */
-#define SET_NOCP 2 /* "-N" set nocompatible */
-
/* Struct for various parameters passed between main() and other functions. */
typedef struct
{
@@ -90,7 +87,6 @@ typedef struct
#ifdef FEAT_DIFF
int diff_mode; /* start with 'diff' set */
#endif
- int option_cp; /* 0, SET_CP, SET_NOCP */
#ifdef SYS_TINYRC_FILE
int vi_mode; /* started as "vi" */
#endif
@@ -646,13 +642,6 @@ main
}
#endif
- /* -N/-C given on the command-line. Now that the startup files are done
- * being sourced, we set the option. */
- if (params.option_cp == SET_CP)
- change_compatible(TRUE);
- else if (params.option_cp == SET_NOCP)
- change_compatible(FALSE);
-
#ifdef SPAWNO /* special MSDOS swapping library */
init_SPAWNO("", SWAP_ANY);
#endif
@@ -1773,7 +1762,7 @@ command_line_scan(parmp)
break;
case 'C': /* "-C" Compatible */
- parmp->option_cp = SET_CP;
+ change_compatible(TRUE);
break;
case 'e': /* "-e" Ex mode */
@@ -1846,7 +1835,7 @@ command_line_scan(parmp)
break;
case 'N': /* "-N" Nocompatible */
- parmp->option_cp = SET_NOCP;
+ change_compatible(FALSE);
break;
case 'n': /* "-n" no swap file */
--
Vim packaging
More information about the pkg-vim-maintainers
mailing list