Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

add option to suppress bracket matching for a given insertText #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/bracket-matcher.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class BracketMatcher
insertText: (text, options) =>
return true unless text
return true if options?.select or options?.undo is 'skip'
return true if options?.matchBrackets? and not options.matchBrackets
return false if @wrapSelectionInBrackets(text)
return true if @editor.hasMultipleCursors()

Expand Down