From a432399742db6a1dd6479cf997269f6ea49afe32 Mon Sep 17 00:00:00 2001 From: DanyaPostfactum Date: Thu, 24 Jan 2013 05:39:31 +1000 Subject: [PATCH] Fix deletion behavior for single quotes --- lib/ace/mode/behaviour/cstyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mode/behaviour/cstyle.js b/lib/ace/mode/behaviour/cstyle.js index ccacd7ad..1f1d8210 100644 --- a/lib/ace/mode/behaviour/cstyle.js +++ b/lib/ace/mode/behaviour/cstyle.js @@ -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 == '"') { + if (rightChar == '"' || rightChar == "'") { range.end.column++; return range; }