Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » search for " A " in "B A A B", does not find the second " A ".
search for " A " in "B A A B", does not find the second " A ". [message #44043] Wed, 17 December 2014 18:59 Go to next message
omari is currently offline  omari
Messages: 264
Registered: March 2010
Experienced Member
Hello,

replacing the line (FindReplace.cpp/197
	pos = cursor;

by
	pos++;


resolve the issue.

bool CodeEditor::Find(bool back, bool block)
{
	foundsel = true;
	if(notfoundfw) MoveTextBegin();
	if(notfoundbk) MoveTextEnd();
	foundsel = false;
	int cursor, pos;
	if(found)
		GetSelection(pos, cursor);
	else
		GetSelection(cursor, pos);
	pos++;// = cursor;                     <===
	bool b = FindFrom(pos, back, block);
	findreplace.amend.Enable(b);
	return b;
}

Thanks.


regards
omari.
Re: search for " A " in "B A A B", does not find the second " A ". [message #44048 is a reply to message #44043] Thu, 18 December 2014 10:16 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I consider this behaviour correct... Next search IMO should start after the string that you have just found...

Mirek
Re: search for " A " in "B A A B", does not find the second " A ". [message #44058 is a reply to message #44048] Sat, 20 December 2014 08:23 Go to previous message
omari is currently offline  omari
Messages: 264
Registered: March 2010
Experienced Member
OK,

Thanks


regards
omari.
Previous Topic: [FIXED] CodeEditor does not refresh when the client code does not call to Highlight()
Next Topic: [BUG?] Ctrl+LBC
Goto Forum:
  


Current Time: Fri Mar 29 15:39:19 CET 2024

Total time taken to generate the page: 0.01754 seconds