From f7333809b6e8bd28ddddba8c877c5ac4a8576af6 Mon Sep 17 00:00:00 2001 From: Jaehwang Jerry Jung Date: Sun, 1 Aug 2021 00:57:34 +0900 Subject: [PATCH] Prefer single quoted strings --- autoload/nerdcommenter.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/nerdcommenter.vim b/autoload/nerdcommenter.vim index b022a9e..c005fa8 100644 --- a/autoload/nerdcommenter.vim +++ b/autoload/nerdcommenter.vim @@ -1906,7 +1906,7 @@ function! s:CanCommentLine(forceNested, lineNum) abort " make sure we don't comment lines that are just spaces or tabs or empty, " unless configured otherwise - if g:NERDCommentEmptyLines ==# 0 && theLine =~# "^\s*$" + if g:NERDCommentEmptyLines ==# 0 && theLine =~# '^\s*$' return 0 endif @@ -1973,7 +1973,7 @@ function! s:CanToggleCommentLine(forceNested, lineNum) abort " make sure we don't comment lines that are just spaces or tabs or empty, " unless configured otherwise - if g:NERDCommentEmptyLines ==# 0 && theLine =~# "^\s*$" + if g:NERDCommentEmptyLines ==# 0 && theLine =~# '^\s*$' return 0 endif