Mercurial > hg > octave-nkf
changeset 17729:76d6a523aae6
fix display of global search in doc browser (bug #40348)
* parser.cc(global_search): fix offset for second and further searches
author | Torsten <ttl@justmail.de> |
---|---|
date | Tue, 22 Oct 2013 22:27:19 +0200 |
parents | 38e9dee9c627 |
children | 580990c2ce04 |
files | libgui/src/qtinfo/parser.cc |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/qtinfo/parser.cc +++ b/libgui/src/qtinfo/parser.cc @@ -596,6 +596,7 @@ line_start = node_text.lastIndexOf ("\n", pos); line_end = node_text.indexOf ("\n", pos); QString line = node_text.mid (line_start, line_end - line_start).trimmed (); + pos += re.matchedLength (); if (founds == 0) { @@ -612,8 +613,6 @@ results.append ("<br>\n"); founds++; - - pos += re.matchedLength (); } } io->close ();