From 232c47f326ba8402e9a01b810dd4e8c517f07706 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Sat, 17 Nov 2018 01:21:18 +0530 Subject: [PATCH] incorporate autoCloseTags option from master branch --- src/components/UserCodeMirror.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/UserCodeMirror.jsx b/src/components/UserCodeMirror.jsx index f67d710..4ae07d0 100644 --- a/src/components/UserCodeMirror.jsx +++ b/src/components/UserCodeMirror.jsx @@ -56,6 +56,7 @@ export default class UserCodeMirror extends Component { this.cm.setOption('keyMap', prefs.keymap); this.cm.setOption('lineWrapping', prefs.lineWrap); + this.cm.setOption('lineWrapping', prefs.autoCloseTags); this.cm.refresh(); } @@ -71,7 +72,7 @@ export default class UserCodeMirror extends Component { lineWrapping: !!prefs.lineWrap, autofocus: options.autofocus || false, autoCloseBrackets: true, - autoCloseTags: true, + autoCloseTags: !!prefs.autoCloseTags, matchBrackets: true, matchTags: options.matchTags || false, tabMode: 'indent',