Code::Blocks Forums

User forums => Help => Topic started by: sebihp2007 on May 18, 2014, 05:45:42 pm

Title: My "Find" window is messed up
Post by: sebihp2007 on May 18, 2014, 05:45:42 pm
Let me start by saying that this is a question strictly to do with the Code::Blocks software.. nothing to do with programming..

OK, so I have a problem with my "Find" window (the one you open with Ctrl+F).. I'm not really sure what I did (I think I pasted a really long string with Ctrl+V but I'm not sure) and.. well.. THIS happened:

(http://puu.sh/8ReZM.png)

I thought an image would be the best way to describe it.. the window is now this massive thing, about 2000 screens in width.. (not 2000, that was just a random number).. also I should point out that the window doesn't end at the very end, but about halfway through.. that last sentence was probably a bit confusing, so here's an image to show you what I mean:

(http://puu.sh/8Rf2O.png)

I have no idea what happened and I've never seen this before  ???.. my PC moves in frames now every time I hit Ctrl+F in Code::Blocks.. I've never seen this happening before and restarting CB doesn't do anything.. how do I fix this?

Help would be greatly appreciated
Title: Re: My "Find" window is messed up
Post by: Alpha on May 18, 2014, 06:58:22 pm
The easiest way would be to delete/move your %AppData%\CodeBlocks\default.conf, and let Code::Blocks generate a new one.  This will mean that you lose all your settings though.

Alternatively, open default.conf in a plain text editor and search for "<LAST>".  You should find a section that looks like
Code
		<replace_options>
<LAST>
<astr>
<s>
<![CDATA[goto]]>
</s>
<s>
<![CDATA[operator]]>
</s>
[...]
One of the <s><![CDATA[MySearchTerm]]></s> will have your extremely long string.  Delete that entry.  (Note: backup your default.conf before any modifications.)