Merge pull request #1698 from LivelyKernel/ace-ajax-master
cstyle behaviour fix for entering braces
This commit is contained in:
commit
8cfd45feab
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ var CstyleBehaviour = function () {
|
|||
}
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar == '}' || closing !== "") {
|
||||
var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column}, '}');
|
||||
var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column+1}, '}');
|
||||
if (!openBracePos)
|
||||
return null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue