fix home key on folded line

This commit is contained in:
nightwing 2014-05-21 20:26:13 +04:00
commit 88aed65212
2 changed files with 6 additions and 6 deletions

View file

@ -485,15 +485,15 @@ function Folding() {
}; };
this.getFoldDisplayLine = function(foldLine, endRow, endColumn, startRow, startColumn) { this.getFoldDisplayLine = function(foldLine, endRow, endColumn, startRow, startColumn) {
if (startRow == null) { if (startRow == null)
startRow = foldLine.start.row; startRow = foldLine.start.row;
if (startColumn == null)
startColumn = 0; startColumn = 0;
} if (endRow == null)
if (endRow == null) {
endRow = foldLine.end.row; endRow = foldLine.end.row;
if (endColumn == null)
endColumn = this.getLine(endRow).length; endColumn = this.getLine(endRow).length;
}
// Build the textline using the FoldLine walker. // Build the textline using the FoldLine walker.
var doc = this.doc; var doc = this.doc;

View file

@ -53,7 +53,7 @@ var supportedModes = {
C9Search: ["c9search_results"], C9Search: ["c9search_results"],
C_Cpp: ["cpp|c|cc|cxx|h|hh|hpp"], C_Cpp: ["cpp|c|cc|cxx|h|hh|hpp"],
Cirru: ["cirru|cr"], Cirru: ["cirru|cr"],
Clojure: ["clj"], Clojure: ["clj|cljs"],
Cobol: ["CBL|COB"], Cobol: ["CBL|COB"],
coffee: ["coffee|cf|cson|^Cakefile"], coffee: ["coffee|cf|cson|^Cakefile"],
ColdFusion: ["cfm"], ColdFusion: ["cfm"],