Permalink
Browse files

keep word boundaries in short command summary

  • Loading branch information...
1 parent e7df95c commit 64e2f027549416eb5c60b7e96031db78e7ec179f @nightwing nightwing committed Mar 17, 2012
Showing with 5 additions and 2 deletions.
  1. +2 −1 chrome/content/ace++/startup.js
  2. +3 −1 chrome/content/aceEditor.js
@@ -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);
@@ -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);

0 comments on commit 64e2f02

Please sign in to comment.