mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-17 05:53:39 -05:00
Compare commits
2 Commits
master
...
7361e41811
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7361e41811 | ||
|
|
c7c99edfb7 |
@@ -406,7 +406,6 @@ let s:delimiterMap = {
|
||||
\ 'texmf': { 'left': '%' },
|
||||
\ 'tf': { 'left': '#' },
|
||||
\ 'tidy': { 'left': '#' },
|
||||
\ 'tjp': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
|
||||
\ 'tla': { 'left': '\\*', 'leftAlt': '(*', 'rightAlt': '*)' },
|
||||
\ 'tli': { 'left': '#' },
|
||||
\ 'tmux': { 'left': '#' },
|
||||
@@ -667,7 +666,7 @@ function! s:CommentBlock(top, bottom, lSide, rSide, forceNested) abort
|
||||
"alternative delimiters (if THEY are) as the comment will be better and more
|
||||
"accurate with multipart delimiters
|
||||
let switchedDelims = 0
|
||||
if !s:Multipart() && g:NERDAllowAnyVisualDelims && s:AltMultipart()
|
||||
if !s:Multipart() && !g:NERDAllowAnyVisualDelims && s:AltMultipart()
|
||||
let switchedDelims = 1
|
||||
call nerdcommenter#SwitchToAlternativeDelimiters(0)
|
||||
endif
|
||||
@@ -1084,7 +1083,7 @@ function! s:CommentRegion(topLine, topCol, bottomLine, bottomCol, forceNested) a
|
||||
|
||||
"switch delimiters (if we can) if the current set isn't multipart
|
||||
let switchedDelims = 0
|
||||
if !s:Multipart() && s:AltMultipart() && g:NERDAllowAnyVisualDelims
|
||||
if !s:Multipart() && s:AltMultipart() && !g:NERDAllowAnyVisualDelims
|
||||
let switchedDelims = 1
|
||||
call nerdcommenter#SwitchToAlternativeDelimiters(0)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user