Don't autoclose brackets when is false
This commit is contained in:
parent
576581c20d
commit
3ae96f2c6e
2 changed files with 6 additions and 1 deletions
|
@ -1874,7 +1874,7 @@ impl Editor {
|
|||
let mut bracket_pair = None;
|
||||
let mut is_bracket_pair_start = false;
|
||||
for pair in language.brackets() {
|
||||
if pair.start.ends_with(text.as_ref()) {
|
||||
if pair.close && pair.start.ends_with(text.as_ref()) {
|
||||
bracket_pair = Some(pair.clone());
|
||||
is_bracket_pair_start = true;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue