Skip to content

Commit 8bc189e

Browse files
committed
patch 7.4.1695
Problem: ":syn reset" clears the effect ":syn iskeyword". (James McCoy) Solution: Remove clearing the syntax keywords.
1 parent f28d871 commit 8bc189e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/syntax.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3815,14 +3815,14 @@ syn_cmd_enable(exarg_T *eap, int syncing UNUSED)
38153815

38163816
/*
38173817
* Handle ":syntax reset" command.
3818+
* It actually resets highlighting, not syntax.
38183819
*/
38193820
static void
38203821
syn_cmd_reset(exarg_T *eap, int syncing UNUSED)
38213822
{
38223823
eap->nextcmd = check_nextcmd(eap->arg);
38233824
if (!eap->skip)
38243825
{
3825-
clear_string_option(&curwin->w_s->b_syn_isk);
38263826
set_internal_string_var((char_u *)"syntax_cmd", (char_u *)"reset");
38273827
do_cmdline_cmd((char_u *)"runtime! syntax/syncolor.vim");
38283828
do_unlet((char_u *)"g:syntax_cmd", TRUE);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1695,
751753
/**/
752754
1694,
753755
/**/

0 commit comments

Comments
 (0)