Mercurial > hg > octave-nkf
diff src/help.cc @ 5484:2ff5363a16bd
[project @ 2005-10-06 17:12:12 by jwe]
author | jwe |
---|---|
date | Thu, 06 Oct 2005 17:12:13 +0000 |
parents | d2df058c4319 |
children | 7e008607a86e |
line wrap: on
line diff
--- a/src/help.cc +++ b/src/help.cc @@ -849,21 +849,13 @@ { bool retval = false; - std::string file = fcn_file_in_path (nm); - - if (file.length () > 0) - { - symbol_found = true; - - std::string h = get_help_from_file (file); + std::string h = get_help_from_file (nm, symbol_found, true); - if (h.length () > 0) - { - os << nm << " is the file: " << file << "\n\n"; - display_help_text (os, h); - os << "\n"; - retval = true; - } + if (h.length () > 0) + { + display_help_text (os, h); + os << "\n"; + retval = true; } return retval; @@ -1715,7 +1707,10 @@ if (file_name == dirs[i] + tmp(0) || file_name == dirs[i] + tmp(1)) { - std::string h = get_help_from_file (file_name); + bool symbol_found; + + std::string h + = get_help_from_file (file_name, symbol_found); std::string s; if (first_sentence_only)