Run through and fix broken text items
This commit is contained in:
parent
7601a904cb
commit
e56ab9d4ab
33 changed files with 1171 additions and 1276 deletions
|
|
@ -143,9 +143,8 @@ var SearchHighlight = require("./search_highlight").SearchHighlight;
|
|||
/**
|
||||
*
|
||||
* Sets up a new `EditSession` and associates it with the given `Document` and `TextMode`.
|
||||
* @param {Document | String} text If `text` is a `Document`, it associates the `EditSession` with it. Otherwise, a new `Document` is created, with the initial text
|
||||
*
|
||||
* @param {TextMode} mode The inital language mode to use for the document
|
||||
* @param {Document | String} text [If `text` is a `Document`, it associates the `EditSession` with it. Otherwise, a new `Document` is created, with the initial text]{: #textParam}
|
||||
* @param {TextMode} mode [The inital language mode to use for the document]{: #modeParam}
|
||||
*
|
||||
* @constructor
|
||||
**/
|
||||
|
|
@ -306,6 +305,7 @@ var EditSession = function(text, mode) {
|
|||
/**
|
||||
* Returns the current [[Document `Document`]] as a string.
|
||||
* @method toString
|
||||
* @returns {String}
|
||||
* @alias EditSession.getValue
|
||||
*
|
||||
**/
|
||||
|
|
@ -313,6 +313,7 @@ var EditSession = function(text, mode) {
|
|||
/**
|
||||
* Returns the current [[Document `Document`]] as a string.
|
||||
* @method getValue
|
||||
* @returns {String}
|
||||
* @alias EditSession.toString
|
||||
**/
|
||||
this.getValue =
|
||||
|
|
@ -565,7 +566,7 @@ var EditSession = function(text, mode) {
|
|||
|
||||
/**
|
||||
* Returns an array of numbers, indicating which rows have breakpoints.
|
||||
* @returns [Number]
|
||||
* @returns {[Number]}
|
||||
**/
|
||||
this.getBreakpoints = function() {
|
||||
return this.$breakpoints;
|
||||
|
|
@ -573,7 +574,7 @@ var EditSession = function(text, mode) {
|
|||
|
||||
/**
|
||||
* Sets a breakpoint on every row number given by `rows`. This function also emites the `'changeBreakpoint'` event.
|
||||
* @param {Number} rows An array of row indicies
|
||||
* @param {Array} rows An array of row indices
|
||||
*
|
||||
*
|
||||
*
|
||||
|
|
@ -630,7 +631,7 @@ var EditSession = function(text, mode) {
|
|||
* @param {Boolean} inFront Set to `true` to establish a front marker
|
||||
*
|
||||
*
|
||||
* @return {Number}
|
||||
* @return {Number} The new marker id
|
||||
**/
|
||||
this.addMarker = function(range, clazz, type, inFront) {
|
||||
var id = this.$markerId++;
|
||||
|
|
@ -1120,7 +1121,7 @@ var EditSession = function(text, mode) {
|
|||
* @param {Number} firstRow The first row index to retrieve
|
||||
* @param {Number} lastRow The final row index to retrieve
|
||||
*
|
||||
* @returns [String]
|
||||
* @returns {[String]}
|
||||
*
|
||||
**/
|
||||
this.getLines = function(firstRow, lastRow) {
|
||||
|
|
@ -1619,6 +1620,7 @@ var EditSession = function(text, mode) {
|
|||
|
||||
/**
|
||||
* Returns the value of wrap limit.
|
||||
* @returns {Number} The wrap limit.
|
||||
**/
|
||||
this.getWrapLimit = function() {
|
||||
return this.$wrapLimit;
|
||||
|
|
@ -2350,10 +2352,15 @@ var EditSession = function(text, mode) {
|
|||
}
|
||||
|
||||
return screenRows;
|
||||
}
|
||||
};
|
||||
|
||||
// For every keystroke this gets called once per char in the whole doc!!
|
||||
// Wouldn't hurt to make it a bit faster for c >= 0x1100
|
||||
|
||||
/**
|
||||
* @private
|
||||
*
|
||||
*/
|
||||
function isFullWidth(c) {
|
||||
if (c < 0x1100)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue