|
Karsten Hopp |
d09cc4 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
d09cc4 |
Subject: Patch 7.3.745
|
|
Karsten Hopp |
d09cc4 |
Fcc: outbox
|
|
Karsten Hopp |
d09cc4 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
d09cc4 |
Mime-Version: 1.0
|
|
Karsten Hopp |
d09cc4 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
d09cc4 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
d09cc4 |
------------
|
|
Karsten Hopp |
d09cc4 |
|
|
Karsten Hopp |
d09cc4 |
Patch 7.3.745
|
|
Karsten Hopp |
d09cc4 |
Problem: Automatically setting 'ttymouse' doesn't work.
|
|
Karsten Hopp |
d09cc4 |
Solution: Reset the "option was set" flag when using the default.
|
|
Karsten Hopp |
d09cc4 |
Files: src/option.c, src/proto/option.pro, src/term.c
|
|
Karsten Hopp |
d09cc4 |
|
|
Karsten Hopp |
d09cc4 |
|
|
Karsten Hopp |
d09cc4 |
*** ../vim-7.3.744/src/option.c 2012-10-21 03:45:57.000000000 +0200
|
|
Karsten Hopp |
d09cc4 |
--- src/option.c 2012-12-03 20:07:32.000000000 +0100
|
|
Karsten Hopp |
d09cc4 |
***************
|
|
Karsten Hopp |
d09cc4 |
*** 11179,11184 ****
|
|
Karsten Hopp |
d09cc4 |
--- 11179,11197 ----
|
|
Karsten Hopp |
d09cc4 |
}
|
|
Karsten Hopp |
d09cc4 |
|
|
Karsten Hopp |
d09cc4 |
/*
|
|
Karsten Hopp |
d09cc4 |
+ * Reset the flag indicating option "name" was set.
|
|
Karsten Hopp |
d09cc4 |
+ */
|
|
Karsten Hopp |
d09cc4 |
+ void
|
|
Karsten Hopp |
d09cc4 |
+ reset_option_was_set(name)
|
|
Karsten Hopp |
d09cc4 |
+ char_u *name;
|
|
Karsten Hopp |
d09cc4 |
+ {
|
|
Karsten Hopp |
d09cc4 |
+ int idx = findoption(name);
|
|
Karsten Hopp |
d09cc4 |
+
|
|
Karsten Hopp |
d09cc4 |
+ if (idx >= 0)
|
|
Karsten Hopp |
d09cc4 |
+ options[idx].flags &= ~P_WAS_SET;
|
|
Karsten Hopp |
d09cc4 |
+ }
|
|
Karsten Hopp |
d09cc4 |
+
|
|
Karsten Hopp |
d09cc4 |
+ /*
|
|
Karsten Hopp |
d09cc4 |
* compatible_set() - Called when 'compatible' has been set or unset.
|
|
Karsten Hopp |
d09cc4 |
*
|
|
Karsten Hopp |
d09cc4 |
* When 'compatible' set: Set all relevant options (those that have the P_VIM)
|
|
Karsten Hopp |
d09cc4 |
*** ../vim-7.3.744/src/proto/option.pro 2012-10-21 00:10:29.000000000 +0200
|
|
Karsten Hopp |
d09cc4 |
--- src/proto/option.pro 2012-12-03 20:08:36.000000000 +0100
|
|
Karsten Hopp |
d09cc4 |
***************
|
|
Karsten Hopp |
d09cc4 |
*** 52,57 ****
|
|
Karsten Hopp |
d09cc4 |
--- 52,58 ----
|
|
Karsten Hopp |
d09cc4 |
void vimrc_found __ARGS((char_u *fname, char_u *envname));
|
|
Karsten Hopp |
d09cc4 |
void change_compatible __ARGS((int on));
|
|
Karsten Hopp |
d09cc4 |
int option_was_set __ARGS((char_u *name));
|
|
Karsten Hopp |
d09cc4 |
+ void reset_option_was_set __ARGS((char_u *name));
|
|
Karsten Hopp |
d09cc4 |
int can_bs __ARGS((int what));
|
|
Karsten Hopp |
d09cc4 |
void save_file_ff __ARGS((buf_T *buf));
|
|
Karsten Hopp |
d09cc4 |
int file_ff_differs __ARGS((buf_T *buf, int ignore_empty));
|
|
Karsten Hopp |
d09cc4 |
*** ../vim-7.3.744/src/term.c 2012-10-21 02:10:20.000000000 +0200
|
|
Karsten Hopp |
d09cc4 |
--- src/term.c 2012-12-03 20:09:28.000000000 +0100
|
|
Karsten Hopp |
d09cc4 |
***************
|
|
Karsten Hopp |
d09cc4 |
*** 1864,1870 ****
|
|
Karsten Hopp |
d09cc4 |
--- 1864,1875 ----
|
|
Karsten Hopp |
d09cc4 |
}
|
|
Karsten Hopp |
d09cc4 |
# endif
|
|
Karsten Hopp |
d09cc4 |
if (p != NULL)
|
|
Karsten Hopp |
d09cc4 |
+ {
|
|
Karsten Hopp |
d09cc4 |
set_option_value((char_u *)"ttym", 0L, p, 0);
|
|
Karsten Hopp |
d09cc4 |
+ /* Reset the WAS_SET flag, 'ttymouse' can be set to "sgr" or
|
|
Karsten Hopp |
d09cc4 |
+ * "xterm2" in check_termcode(). */
|
|
Karsten Hopp |
d09cc4 |
+ reset_option_was_set((char_u *)"ttym");
|
|
Karsten Hopp |
d09cc4 |
+ }
|
|
Karsten Hopp |
d09cc4 |
if (p == NULL
|
|
Karsten Hopp |
d09cc4 |
# ifdef FEAT_GUI
|
|
Karsten Hopp |
d09cc4 |
|| gui.in_use
|
|
Karsten Hopp |
d09cc4 |
*** ../vim-7.3.744/src/version.c 2012-11-29 20:09:55.000000000 +0100
|
|
Karsten Hopp |
d09cc4 |
--- src/version.c 2012-12-05 14:39:33.000000000 +0100
|
|
Karsten Hopp |
d09cc4 |
***************
|
|
Karsten Hopp |
d09cc4 |
*** 727,728 ****
|
|
Karsten Hopp |
d09cc4 |
--- 727,730 ----
|
|
Karsten Hopp |
d09cc4 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
d09cc4 |
+ /**/
|
|
Karsten Hopp |
d09cc4 |
+ 745,
|
|
Karsten Hopp |
d09cc4 |
/**/
|
|
Karsten Hopp |
d09cc4 |
|
|
Karsten Hopp |
d09cc4 |
--
|
|
Karsten Hopp |
d09cc4 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
d09cc4 |
97. Your mother tells you to remember something, and you look for
|
|
Karsten Hopp |
d09cc4 |
a File/Save command.
|
|
Karsten Hopp |
d09cc4 |
|
|
Karsten Hopp |
d09cc4 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
d09cc4 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
d09cc4 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
d09cc4 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|