Skip to content

Commit

Permalink
keep word boundaries in short command summary
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Mar 17, 2012
1 parent e7df95c commit 64e2f02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion chrome/content/ace++/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ exports.launch = function(env, options) {
Renderer.prototype.moveTextAreaToCursor =
require("ace/layer/text").Text.prototype.$pollSizeChanges = function(){}
// selection on first/last lines

Editor.prototype.__defineGetter__("value", function(){return this.session.getValue()})

var container = document.getElementById("editor");
editor = env.editor = new Editor(new Renderer(container, options.theme));
editor.setTheme(options.theme);
Expand Down
4 changes: 3 additions & 1 deletion chrome/content/aceEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,9 @@ Firebug.largeCommandLineEditor = {
if(!context.errorLocation)
this.setErrorLocation(context);

var shortExpr = FBL.cropString(code.replace(/\s*/g, ''), 100);//\xAD \u2009
var shortExpr = FBL.cropString(code.replace(/([\d\w$_]\s+[\d\w$_])|(\s+)/g, function(a){
return a.trim().replace(/\s+/,' ')
}), 100);//\xAD \u2009
Firebug.Console.log("in:" + (inputNumber++) + ">>> " + cell.sourceLang + shortExpr, context, "command", FirebugReps.Text);

code = this.setThisValue(code, this.cell);
Expand Down

0 comments on commit 64e2f02

Please sign in to comment.