diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 15:44:43 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 15:44:43 +0200 |
commit | 664aa988f6d9cdb7b75218666fbe348c85ef8b29 (patch) | |
tree | 306173199576430e6133a1ed137bd80bbc2fb01b /after/ftplugin/javascript.vim | |
parent | 3ddca5da461ebfaa82104f82e3cbf19d1c326ade (diff) | |
download | vim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.tar.gz vim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.zip |
Update
Diffstat (limited to 'after/ftplugin/javascript.vim')
-rw-r--r-- | after/ftplugin/javascript.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim index 093f0b7b..4a6346d9 100644 --- a/after/ftplugin/javascript.vim +++ b/after/ftplugin/javascript.vim @@ -83,6 +83,10 @@ fu! IsStyledDefinition(lnum) endfu if exists('&ofu') - let b:prevofu=&ofu + if &ofu + " Do not keep track of previous omnifunc if it was not set in the first + " place + let b:prevofu=&ofu + endif setl omnifunc=styledcomplete#CompleteSC endif |