| Index: Source/devtools/front_end/cm/comment.js
|
| diff --git a/Source/devtools/front_end/cm/comment.js b/Source/devtools/front_end/cm/comment.js
|
| index d7f569cc005343441cebd845fb5342da0a313c29..2dd114d332dc9b1e0b19cfff3fc60061c7cb9fbe 100644
|
| --- a/Source/devtools/front_end/cm/comment.js
|
| +++ b/Source/devtools/front_end/cm/comment.js
|
| @@ -109,7 +109,7 @@
|
| CodeMirror.defineExtension("uncomment", function(from, to, options) {
|
| if (!options) options = noOptions;
|
| var self = this, mode = self.getModeAt(from);
|
| - var end = Math.min(to.line, self.lastLine()), start = Math.min(from.line, end);
|
| + var end = Math.min(to.ch != 0 || to.line == from.line ? to.line : to.line - 1, self.lastLine()), start = Math.min(from.line, end);
|
|
|
| // Try finding line comments
|
| var lineString = options.lineComment || mode.lineComment, lines = [];
|
|
|