fix #280
This commit is contained in:
parent
f032c68a79
commit
eb02e51e97
1 changed files with 9 additions and 10 deletions
|
|
@ -334,15 +334,14 @@ var Text = function(parentEl) {
|
||||||
if (c.charCodeAt(0) == 32) {
|
if (c.charCodeAt(0) == 32) {
|
||||||
return new Array(c.length+1).join(" ");
|
return new Array(c.length+1).join(" ");
|
||||||
} else if (c == "\t") {
|
} else if (c == "\t") {
|
||||||
var tabSize = self.session.
|
var tabSize = self.session.getScreenTabSize(screenColumn + tabIdx);
|
||||||
getScreenTabSize(screenColumn + tabIdx);
|
|
||||||
screenColumn += tabSize - 1;
|
screenColumn += tabSize - 1;
|
||||||
return self.$tabStrings[tabSize];
|
return self.$tabStrings[tabSize];
|
||||||
} else if (c == "&") {
|
} else if (c == "&") {
|
||||||
if (useragent.isOldGecko)
|
if (useragent.isOldGecko)
|
||||||
return "&";
|
return "&";
|
||||||
else
|
else
|
||||||
return "&";
|
return "&";
|
||||||
} else if (c == "<") {
|
} else if (c == "<") {
|
||||||
return "<";
|
return "<";
|
||||||
} else if (c.match(/[\v\f \u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000]/)) {
|
} else if (c.match(/[\v\f \u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000]/)) {
|
||||||
|
|
@ -354,9 +353,9 @@ var Text = function(parentEl) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
screenColumn += 1;
|
screenColumn += 1;
|
||||||
return "<span class='ace_cjk' style='width:" + (
|
return "<span class='ace_cjk' style='width:"
|
||||||
self.config.characterWidth * 2) +
|
+ (self.config.characterWidth * 2)
|
||||||
"px'>" + c + "</span>";
|
+ "px'>" + c + "</span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue