|
Karsten Hopp |
11b317 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
11b317 |
Subject: Patch 7.1.161
|
|
Karsten Hopp |
11b317 |
Fcc: outbox
|
|
Karsten Hopp |
11b317 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
11b317 |
Mime-Version: 1.0
|
|
Karsten Hopp |
11b317 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
11b317 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
11b317 |
------------
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
Patch 7.1.161
|
|
Karsten Hopp |
11b317 |
Problem: Compilation errors with tiny features and EXITFREE.
|
|
Karsten Hopp |
11b317 |
Solution: Add #ifdefs. (Dominique Pelle)
|
|
Karsten Hopp |
11b317 |
Files: src/edit.c, src/misc2.c
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
*** ../vim-7.1.160/src/edit.c Thu Nov 8 13:03:33 2007
|
|
Karsten Hopp |
11b317 |
--- src/edit.c Sat Nov 24 14:57:46 2007
|
|
Karsten Hopp |
11b317 |
***************
|
|
Karsten Hopp |
11b317 |
*** 2236,2242 ****
|
|
Karsten Hopp |
11b317 |
while (i < actual_len && (p - IObuff + 6) < IOSIZE)
|
|
Karsten Hopp |
11b317 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
11b317 |
if (has_mbyte)
|
|
Karsten Hopp |
11b317 |
! p += mb_char2bytes(wca[i++], p);
|
|
Karsten Hopp |
11b317 |
else
|
|
Karsten Hopp |
11b317 |
#endif
|
|
Karsten Hopp |
11b317 |
*(p++) = wca[i++];
|
|
Karsten Hopp |
11b317 |
--- 2236,2242 ----
|
|
Karsten Hopp |
11b317 |
while (i < actual_len && (p - IObuff + 6) < IOSIZE)
|
|
Karsten Hopp |
11b317 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
11b317 |
if (has_mbyte)
|
|
Karsten Hopp |
11b317 |
! p += (*mb_char2bytes)(wca[i++], p);
|
|
Karsten Hopp |
11b317 |
else
|
|
Karsten Hopp |
11b317 |
#endif
|
|
Karsten Hopp |
11b317 |
*(p++) = wca[i++];
|
|
Karsten Hopp |
11b317 |
***************
|
|
Karsten Hopp |
11b317 |
*** 6444,6451 ****
|
|
Karsten Hopp |
11b317 |
--- 6444,6453 ----
|
|
Karsten Hopp |
11b317 |
{
|
|
Karsten Hopp |
11b317 |
vim_free(last_insert);
|
|
Karsten Hopp |
11b317 |
last_insert = NULL;
|
|
Karsten Hopp |
11b317 |
+ # ifdef FEAT_INS_EXPAND
|
|
Karsten Hopp |
11b317 |
vim_free(compl_orig_text);
|
|
Karsten Hopp |
11b317 |
compl_orig_text = NULL;
|
|
Karsten Hopp |
11b317 |
+ # endif
|
|
Karsten Hopp |
11b317 |
}
|
|
Karsten Hopp |
11b317 |
#endif
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
*** ../vim-7.1.160/src/misc2.c Thu Nov 8 20:47:34 2007
|
|
Karsten Hopp |
11b317 |
--- src/misc2.c Sat Nov 24 15:01:46 2007
|
|
Karsten Hopp |
11b317 |
***************
|
|
Karsten Hopp |
11b317 |
*** 964,970 ****
|
|
Karsten Hopp |
11b317 |
{
|
|
Karsten Hopp |
11b317 |
buf_T *buf, *nextbuf;
|
|
Karsten Hopp |
11b317 |
static int entered = FALSE;
|
|
Karsten Hopp |
11b317 |
- win_T *win;
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
/* When we cause a crash here it is caught and Vim tries to exit cleanly.
|
|
Karsten Hopp |
11b317 |
* Don't try freeing everything again. */
|
|
Karsten Hopp |
11b317 |
--- 965,970 ----
|
|
Karsten Hopp |
11b317 |
***************
|
|
Karsten Hopp |
11b317 |
*** 972,986 ****
|
|
Karsten Hopp |
11b317 |
return;
|
|
Karsten Hopp |
11b317 |
entered = TRUE;
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
block_autocmds(); /* don't want to trigger autocommands here */
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
! #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
11b317 |
/* close all tabs and windows */
|
|
Karsten Hopp |
11b317 |
if (first_tabpage->tp_next != NULL)
|
|
Karsten Hopp |
11b317 |
do_cmdline_cmd((char_u *)"tabonly!");
|
|
Karsten Hopp |
11b317 |
if (firstwin != lastwin)
|
|
Karsten Hopp |
11b317 |
do_cmdline_cmd((char_u *)"only!");
|
|
Karsten Hopp |
11b317 |
! #endif
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
# if defined(FEAT_SPELL)
|
|
Karsten Hopp |
11b317 |
/* Free all spell info. */
|
|
Karsten Hopp |
11b317 |
--- 972,988 ----
|
|
Karsten Hopp |
11b317 |
return;
|
|
Karsten Hopp |
11b317 |
entered = TRUE;
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
+ # ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
11b317 |
block_autocmds(); /* don't want to trigger autocommands here */
|
|
Karsten Hopp |
11b317 |
+ # endif
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
! # ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
11b317 |
/* close all tabs and windows */
|
|
Karsten Hopp |
11b317 |
if (first_tabpage->tp_next != NULL)
|
|
Karsten Hopp |
11b317 |
do_cmdline_cmd((char_u *)"tabonly!");
|
|
Karsten Hopp |
11b317 |
if (firstwin != lastwin)
|
|
Karsten Hopp |
11b317 |
do_cmdline_cmd((char_u *)"only!");
|
|
Karsten Hopp |
11b317 |
! # endif
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
# if defined(FEAT_SPELL)
|
|
Karsten Hopp |
11b317 |
/* Free all spell info. */
|
|
Karsten Hopp |
11b317 |
***************
|
|
Karsten Hopp |
11b317 |
*** 1031,1038 ****
|
|
Karsten Hopp |
11b317 |
--- 1033,1044 ----
|
|
Karsten Hopp |
11b317 |
free_regexp_stuff();
|
|
Karsten Hopp |
11b317 |
free_tag_stuff();
|
|
Karsten Hopp |
11b317 |
free_cd_dir();
|
|
Karsten Hopp |
11b317 |
+ # ifdef FEAT_EVAL
|
|
Karsten Hopp |
11b317 |
set_expr_line(NULL);
|
|
Karsten Hopp |
11b317 |
+ # endif
|
|
Karsten Hopp |
11b317 |
+ # ifdef FEAT_DIFF
|
|
Karsten Hopp |
11b317 |
diff_clear(curtab);
|
|
Karsten Hopp |
11b317 |
+ # endif
|
|
Karsten Hopp |
11b317 |
clear_sb_text(); /* free any scrollback text */
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
/* Free some global vars. */
|
|
Karsten Hopp |
11b317 |
***************
|
|
Karsten Hopp |
11b317 |
*** 1041,1059 ****
|
|
Karsten Hopp |
11b317 |
vim_free(clip_exclude_prog);
|
|
Karsten Hopp |
11b317 |
# endif
|
|
Karsten Hopp |
11b317 |
vim_free(last_cmdline);
|
|
Karsten Hopp |
11b317 |
vim_free(new_last_cmdline);
|
|
Karsten Hopp |
11b317 |
set_keep_msg(NULL, 0);
|
|
Karsten Hopp |
11b317 |
vim_free(ff_expand_buffer);
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
/* Clear cmdline history. */
|
|
Karsten Hopp |
11b317 |
p_hi = 0;
|
|
Karsten Hopp |
11b317 |
init_history();
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
#ifdef FEAT_QUICKFIX
|
|
Karsten Hopp |
11b317 |
! qf_free_all(NULL);
|
|
Karsten Hopp |
11b317 |
! /* Free all location lists */
|
|
Karsten Hopp |
11b317 |
! FOR_ALL_WINDOWS(win)
|
|
Karsten Hopp |
11b317 |
! qf_free_all(win);
|
|
Karsten Hopp |
11b317 |
#endif
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
/* Close all script inputs. */
|
|
Karsten Hopp |
11b317 |
--- 1047,1073 ----
|
|
Karsten Hopp |
11b317 |
vim_free(clip_exclude_prog);
|
|
Karsten Hopp |
11b317 |
# endif
|
|
Karsten Hopp |
11b317 |
vim_free(last_cmdline);
|
|
Karsten Hopp |
11b317 |
+ # ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
11b317 |
vim_free(new_last_cmdline);
|
|
Karsten Hopp |
11b317 |
+ # endif
|
|
Karsten Hopp |
11b317 |
set_keep_msg(NULL, 0);
|
|
Karsten Hopp |
11b317 |
vim_free(ff_expand_buffer);
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
/* Clear cmdline history. */
|
|
Karsten Hopp |
11b317 |
p_hi = 0;
|
|
Karsten Hopp |
11b317 |
+ # ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
11b317 |
init_history();
|
|
Karsten Hopp |
11b317 |
+ # endif
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
#ifdef FEAT_QUICKFIX
|
|
Karsten Hopp |
11b317 |
! {
|
|
Karsten Hopp |
11b317 |
! win_T *win;
|
|
Karsten Hopp |
11b317 |
!
|
|
Karsten Hopp |
11b317 |
! qf_free_all(NULL);
|
|
Karsten Hopp |
11b317 |
! /* Free all location lists */
|
|
Karsten Hopp |
11b317 |
! FOR_ALL_WINDOWS(win)
|
|
Karsten Hopp |
11b317 |
! qf_free_all(win);
|
|
Karsten Hopp |
11b317 |
! }
|
|
Karsten Hopp |
11b317 |
#endif
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
/* Close all script inputs. */
|
|
Karsten Hopp |
11b317 |
*** ../vim-7.1.160/src/version.c Sat Nov 24 15:44:17 2007
|
|
Karsten Hopp |
11b317 |
--- src/version.c Sat Nov 24 20:55:38 2007
|
|
Karsten Hopp |
11b317 |
***************
|
|
Karsten Hopp |
11b317 |
*** 668,669 ****
|
|
Karsten Hopp |
11b317 |
--- 668,671 ----
|
|
Karsten Hopp |
11b317 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
11b317 |
+ /**/
|
|
Karsten Hopp |
11b317 |
+ 161,
|
|
Karsten Hopp |
11b317 |
/**/
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
--
|
|
Karsten Hopp |
11b317 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
11b317 |
143. You dream in pallettes of 216 websafe colors.
|
|
Karsten Hopp |
11b317 |
|
|
Karsten Hopp |
11b317 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
11b317 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
11b317 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
11b317 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|