changeset 21685:fc8cc7730514

help: evaluate call to 'which' in the correct context * help.m: Wrap call to 'which' in evalin to ensure it finds the right definition of the requested name.
author Mike Miller <mtmiller@octave.org>
date Wed, 11 May 2016 10:50:32 -0700
parents 1449e3b98941
children f07d6f579214
files scripts/help/help.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/help/help.m	Mon May 09 14:14:22 2016 -0400
+++ b/scripts/help/help.m	Wed May 11 10:50:32 2016 -0700
@@ -117,7 +117,7 @@
     endif
 
     if (nargout == 0)
-      which (name);
+      evalin ("caller", ["which (\"" name "\")"]);
       printf ("\n%s\n%s", text, __additional_help_message__ ());
     else
       retval = text;