|
|
dcaee6 |
To: vim_dev@googlegroups.com
|
|
|
dcaee6 |
Subject: Patch 7.4.108
|
|
|
dcaee6 |
Fcc: outbox
|
|
|
dcaee6 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
dcaee6 |
Mime-Version: 1.0
|
|
|
dcaee6 |
Content-Type: text/plain; charset=UTF-8
|
|
|
dcaee6 |
Content-Transfer-Encoding: 8bit
|
|
|
dcaee6 |
------------
|
|
|
dcaee6 |
|
|
|
dcaee6 |
Patch 7.4.108
|
|
|
dcaee6 |
Problem: "zG" and "zW" leave temp files around on MS-Windows.
|
|
|
dcaee6 |
Solution: Delete the temp files when exiting. (Ken Takata)
|
|
|
dcaee6 |
Files: src/memline.c, src/proto/spell.pro, src/spell.c
|
|
|
dcaee6 |
|
|
|
dcaee6 |
|
|
|
dcaee6 |
*** ../vim-7.4.107/src/memline.c 2013-11-04 02:53:46.000000000 +0100
|
|
|
dcaee6 |
--- src/memline.c 2013-11-28 17:27:06.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 841,848 ****
|
|
|
dcaee6 |
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
|
|
|
dcaee6 |
ml_close(buf, del_file && ((buf->b_flags & BF_PRESERVED) == 0
|
|
|
dcaee6 |
|| vim_strchr(p_cpo, CPO_PRESERVE) == NULL));
|
|
|
dcaee6 |
#ifdef TEMPDIRNAMES
|
|
|
dcaee6 |
! vim_deltempdir(); /* delete created temp directory */
|
|
|
dcaee6 |
#endif
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
|
|
|
dcaee6 |
--- 841,851 ----
|
|
|
dcaee6 |
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
|
|
|
dcaee6 |
ml_close(buf, del_file && ((buf->b_flags & BF_PRESERVED) == 0
|
|
|
dcaee6 |
|| vim_strchr(p_cpo, CPO_PRESERVE) == NULL));
|
|
|
dcaee6 |
+ #ifdef FEAT_SPELL
|
|
|
dcaee6 |
+ spell_delete_wordlist(); /* delete the internal wordlist */
|
|
|
dcaee6 |
+ #endif
|
|
|
dcaee6 |
#ifdef TEMPDIRNAMES
|
|
|
dcaee6 |
! vim_deltempdir(); /* delete created temp directory */
|
|
|
dcaee6 |
#endif
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
|
|
|
dcaee6 |
*** ../vim-7.4.107/src/proto/spell.pro 2013-08-10 13:37:26.000000000 +0200
|
|
|
dcaee6 |
--- src/proto/spell.pro 2013-11-28 17:25:59.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 3,8 ****
|
|
|
dcaee6 |
--- 3,9 ----
|
|
|
dcaee6 |
int spell_move_to __ARGS((win_T *wp, int dir, int allwords, int curline, hlf_T *attrp));
|
|
|
dcaee6 |
void spell_cat_line __ARGS((char_u *buf, char_u *line, int maxlen));
|
|
|
dcaee6 |
char_u *did_set_spelllang __ARGS((win_T *wp));
|
|
|
dcaee6 |
+ void spell_delete_wordlist __ARGS((void));
|
|
|
dcaee6 |
void spell_free_all __ARGS((void));
|
|
|
dcaee6 |
void spell_reload __ARGS((void));
|
|
|
dcaee6 |
int spell_check_msm __ARGS((void));
|
|
|
dcaee6 |
*** ../vim-7.4.107/src/spell.c 2013-11-21 17:42:26.000000000 +0100
|
|
|
dcaee6 |
--- src/spell.c 2013-11-28 17:25:59.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 2180,2188 ****
|
|
|
dcaee6 |
char_u *endp;
|
|
|
dcaee6 |
hlf_T attr;
|
|
|
dcaee6 |
int len;
|
|
|
dcaee6 |
! # ifdef FEAT_SYN_HL
|
|
|
dcaee6 |
int has_syntax = syntax_present(wp);
|
|
|
dcaee6 |
! # endif
|
|
|
dcaee6 |
int col;
|
|
|
dcaee6 |
int can_spell;
|
|
|
dcaee6 |
char_u *buf = NULL;
|
|
|
dcaee6 |
--- 2180,2188 ----
|
|
|
dcaee6 |
char_u *endp;
|
|
|
dcaee6 |
hlf_T attr;
|
|
|
dcaee6 |
int len;
|
|
|
dcaee6 |
! #ifdef FEAT_SYN_HL
|
|
|
dcaee6 |
int has_syntax = syntax_present(wp);
|
|
|
dcaee6 |
! #endif
|
|
|
dcaee6 |
int col;
|
|
|
dcaee6 |
int can_spell;
|
|
|
dcaee6 |
char_u *buf = NULL;
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 2280,2286 ****
|
|
|
dcaee6 |
: p - buf)
|
|
|
dcaee6 |
> wp->w_cursor.col)))
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
! # ifdef FEAT_SYN_HL
|
|
|
dcaee6 |
if (has_syntax)
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
col = (int)(p - buf);
|
|
|
dcaee6 |
--- 2280,2286 ----
|
|
|
dcaee6 |
: p - buf)
|
|
|
dcaee6 |
> wp->w_cursor.col)))
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
! #ifdef FEAT_SYN_HL
|
|
|
dcaee6 |
if (has_syntax)
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
col = (int)(p - buf);
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 4701,4707 ****
|
|
|
dcaee6 |
return flags;
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! # if defined(FEAT_MBYTE) || defined(EXITFREE) || defined(PROTO)
|
|
|
dcaee6 |
/*
|
|
|
dcaee6 |
* Free all languages.
|
|
|
dcaee6 |
*/
|
|
|
dcaee6 |
--- 4701,4725 ----
|
|
|
dcaee6 |
return flags;
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! /*
|
|
|
dcaee6 |
! * Delete the internal wordlist and its .spl file.
|
|
|
dcaee6 |
! */
|
|
|
dcaee6 |
! void
|
|
|
dcaee6 |
! spell_delete_wordlist()
|
|
|
dcaee6 |
! {
|
|
|
dcaee6 |
! char_u fname[MAXPATHL];
|
|
|
dcaee6 |
!
|
|
|
dcaee6 |
! if (int_wordlist != NULL)
|
|
|
dcaee6 |
! {
|
|
|
dcaee6 |
! mch_remove(int_wordlist);
|
|
|
dcaee6 |
! int_wordlist_spl(fname);
|
|
|
dcaee6 |
! mch_remove(fname);
|
|
|
dcaee6 |
! vim_free(int_wordlist);
|
|
|
dcaee6 |
! int_wordlist = NULL;
|
|
|
dcaee6 |
! }
|
|
|
dcaee6 |
! }
|
|
|
dcaee6 |
!
|
|
|
dcaee6 |
! #if defined(FEAT_MBYTE) || defined(EXITFREE) || defined(PROTO)
|
|
|
dcaee6 |
/*
|
|
|
dcaee6 |
* Free all languages.
|
|
|
dcaee6 |
*/
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 4710,4716 ****
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
slang_T *slang;
|
|
|
dcaee6 |
buf_T *buf;
|
|
|
dcaee6 |
- char_u fname[MAXPATHL];
|
|
|
dcaee6 |
|
|
|
dcaee6 |
/* Go through all buffers and handle 'spelllang'. <VN> */
|
|
|
dcaee6 |
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
|
|
|
dcaee6 |
--- 4728,4733 ----
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 4723,4746 ****
|
|
|
dcaee6 |
slang_free(slang);
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (int_wordlist != NULL)
|
|
|
dcaee6 |
! {
|
|
|
dcaee6 |
! /* Delete the internal wordlist and its .spl file */
|
|
|
dcaee6 |
! mch_remove(int_wordlist);
|
|
|
dcaee6 |
! int_wordlist_spl(fname);
|
|
|
dcaee6 |
! mch_remove(fname);
|
|
|
dcaee6 |
! vim_free(int_wordlist);
|
|
|
dcaee6 |
! int_wordlist = NULL;
|
|
|
dcaee6 |
! }
|
|
|
dcaee6 |
|
|
|
dcaee6 |
vim_free(repl_to);
|
|
|
dcaee6 |
repl_to = NULL;
|
|
|
dcaee6 |
vim_free(repl_from);
|
|
|
dcaee6 |
repl_from = NULL;
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
! # endif
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! # if defined(FEAT_MBYTE) || defined(PROTO)
|
|
|
dcaee6 |
/*
|
|
|
dcaee6 |
* Clear all spelling tables and reload them.
|
|
|
dcaee6 |
* Used after 'encoding' is set and when ":mkspell" was used.
|
|
|
dcaee6 |
--- 4740,4755 ----
|
|
|
dcaee6 |
slang_free(slang);
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! spell_delete_wordlist();
|
|
|
dcaee6 |
|
|
|
dcaee6 |
vim_free(repl_to);
|
|
|
dcaee6 |
repl_to = NULL;
|
|
|
dcaee6 |
vim_free(repl_from);
|
|
|
dcaee6 |
repl_from = NULL;
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
! #endif
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! #if defined(FEAT_MBYTE) || defined(PROTO)
|
|
|
dcaee6 |
/*
|
|
|
dcaee6 |
* Clear all spelling tables and reload them.
|
|
|
dcaee6 |
* Used after 'encoding' is set and when ":mkspell" was used.
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 4773,4779 ****
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
! # endif
|
|
|
dcaee6 |
|
|
|
dcaee6 |
/*
|
|
|
dcaee6 |
* Reload the spell file "fname" if it's loaded.
|
|
|
dcaee6 |
--- 4782,4788 ----
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
}
|
|
|
dcaee6 |
! #endif
|
|
|
dcaee6 |
|
|
|
dcaee6 |
/*
|
|
|
dcaee6 |
* Reload the spell file "fname" if it's loaded.
|
|
|
dcaee6 |
*** ../vim-7.4.107/src/version.c 2013-11-28 17:04:38.000000000 +0100
|
|
|
dcaee6 |
--- src/version.c 2013-11-28 17:26:31.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 740,741 ****
|
|
|
dcaee6 |
--- 740,743 ----
|
|
|
dcaee6 |
{ /* Add new patch number below this line */
|
|
|
dcaee6 |
+ /**/
|
|
|
dcaee6 |
+ 108,
|
|
|
dcaee6 |
/**/
|
|
|
dcaee6 |
|
|
|
dcaee6 |
--
|
|
|
dcaee6 |
hundred-and-one symptoms of being an internet addict:
|
|
|
dcaee6 |
9. All your daydreaming is preoccupied with getting a faster connection to the
|
|
|
dcaee6 |
net: 28.8...ISDN...cable modem...T1...T3.
|
|
|
dcaee6 |
|
|
|
dcaee6 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
dcaee6 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
dcaee6 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
dcaee6 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|