changeset 24508:85ace8208635

help.m: Don't return directory for help on '...' (bug #52774). * help.m: Check for name '...' before calling which to determine the file.
author Rik <rik@octave.org>
date Wed, 03 Jan 2018 22:21:03 -0800
parents dc25a0dc7800
children d8ed90ecd4fd
files scripts/help/help.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/help/help.m	Tue Jan 02 04:14:36 2018 -0600
+++ b/scripts/help/help.m	Wed Jan 03 22:21:03 2018 -0800
@@ -117,7 +117,7 @@
     endif
 
     if (nargout == 0)
-      if (! any (strcmp (name, {'./', '.\'})))
+      if (! any (strcmp (name, {'./', '.\', '...'})))
         evalin ("caller", ['which ("' undo_string_escapes(name) '")']);
       endif
       printf ("\n%s\n%s", text, __additional_help_message__ ());