Fix cstyle quote deletion behavior

This commit is contained in:
DanyaPostfactum 2013-01-25 02:32:20 +10:00 committed by nightwing
commit 961053b7d0

View file

@ -350,7 +350,7 @@ var CstyleBehaviour = function () {
if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
var line = session.doc.getLine(range.start.row);
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
if (rightChar == '"' || rightChar == "'") {
if (rightChar == selected) {
range.end.column++;
return range;
}