mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.1695
Problem: ":syn reset" clears the effect ":syn iskeyword". (James McCoy) Solution: Remove clearing the syntax keywords.
This commit is contained in:
@@ -3815,6 +3815,7 @@ syn_cmd_enable(exarg_T *eap, int syncing UNUSED)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Handle ":syntax reset" command.
|
* Handle ":syntax reset" command.
|
||||||
|
* It actually resets highlighting, not syntax.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
syn_cmd_reset(exarg_T *eap, int syncing UNUSED)
|
syn_cmd_reset(exarg_T *eap, int syncing UNUSED)
|
||||||
@@ -3822,7 +3823,6 @@ syn_cmd_reset(exarg_T *eap, int syncing UNUSED)
|
|||||||
eap->nextcmd = check_nextcmd(eap->arg);
|
eap->nextcmd = check_nextcmd(eap->arg);
|
||||||
if (!eap->skip)
|
if (!eap->skip)
|
||||||
{
|
{
|
||||||
clear_string_option(&curwin->w_s->b_syn_isk);
|
|
||||||
set_internal_string_var((char_u *)"syntax_cmd", (char_u *)"reset");
|
set_internal_string_var((char_u *)"syntax_cmd", (char_u *)"reset");
|
||||||
do_cmdline_cmd((char_u *)"runtime! syntax/syncolor.vim");
|
do_cmdline_cmd((char_u *)"runtime! syntax/syncolor.vim");
|
||||||
do_unlet((char_u *)"g:syntax_cmd", TRUE);
|
do_unlet((char_u *)"g:syntax_cmd", TRUE);
|
||||||
|
@@ -748,6 +748,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1695,
|
||||||
/**/
|
/**/
|
||||||
1694,
|
1694,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user