Skip to content

Commit

Permalink
Fixing URL returned by empty doc command or doc of package function.
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Sep 17, 2018
1 parent 01d06de commit 2303aa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion back-master/src/message-translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ class MessageTranslator extends EventEmitter {

// "doc" control command:
case "show-doc": {
var url = content ? `https://octave.sourceforge.io/list_functions.php?q=${encodeURIComponent(content)}` : "https://octave.sourceforge.io/octave/overview.html";
this._forDownstream(sessCode, "ctrl", {
command: `url=http://octave.sourceforge.net/octave/function/${content}.html`
command: `url=${url}`
});
break;
}
Expand Down

0 comments on commit 2303aa8

Please sign in to comment.