mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:7.4.1695
Problem: ":syn reset" clears the effect ":syn iskeyword". (James McCoy)
Solution: Remove clearing the syntax keywords.
8bc189e81a
This commit is contained in:
@@ -3341,12 +3341,12 @@ static void syn_cmd_enable(exarg_T *eap, int syncing)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Handle ":syntax reset" command.
|
* Handle ":syntax reset" command.
|
||||||
|
* It actually resets highlighting, not syntax.
|
||||||
*/
|
*/
|
||||||
static void syn_cmd_reset(exarg_T *eap, int syncing)
|
static void syn_cmd_reset(exarg_T *eap, int syncing)
|
||||||
{
|
{
|
||||||
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("runtime! syntax/syncolor.vim");
|
do_cmdline_cmd("runtime! syntax/syncolor.vim");
|
||||||
do_unlet((char_u *)"g:syntax_cmd", TRUE);
|
do_unlet((char_u *)"g:syntax_cmd", TRUE);
|
||||||
|
@@ -85,6 +85,7 @@ static int included_patches[] = {
|
|||||||
1755,
|
1755,
|
||||||
1753,
|
1753,
|
||||||
1728,
|
1728,
|
||||||
|
1695,
|
||||||
1654,
|
1654,
|
||||||
1652,
|
1652,
|
||||||
1643,
|
1643,
|
||||||
|
Reference in New Issue
Block a user