help %onprompt // led to the symbols page 40/19640/4
Samuel GOUGEON [Wed, 3 Jan 2018 21:11:13 +0000 (22:11 +0100)]
Change-Id: If64016fc3158f2724aa17bdca2a1c64e2d4e13c2

scilab/modules/helptools/macros/help.sci

index bfae44a..6ebcbcd 100644 (file)
@@ -39,7 +39,9 @@ function help(varargin)
             key=stripblanks(key)
 
             global %helps
-            if or(part(key,1)==["(",")","[","]","{","}","%","''","""",":","*","/","\",".","<",">","&","^","|","~","+","-"]) & exists(key)==0 then
+            symbols = strsplit("()[]{}%''"":*/\.<>&^|~+-")';
+            exceptions = ["%t" "%T" "%f" "%F" "%onprompt"]; // http://bugzilla.scilab.org/15356
+            if or(part(key,1)==symbols) & exists(key)==0 & and(key~=exceptions) then
                 key="symbols";
             end