User forums > Using Code::Blocks

Slow scrolling? [Ubuntu]

<< < (15/22) > >>

Alpha:

--- Quote from: jens on September 02, 2012, 08:54:00 am ---I can not reproduce it here.

--- End quote ---

--- Code: ---word word word word word word word word

word word word word word


word word word word word word word word


word word


word word word

--- End code ---
Select the last "word" - all of the words should be highlighted (this is normal).  Press the up arrow key once.  On Windows Vista; svn 8330, all the words except the last three remain highlighted.

If no one can duplicate it, maybe something is wrong with my computer.  (However, I do not believe this is the case.  These problems are not present in my tests of svn 8133.)

dmoore:

--- Quote from: Alpha on September 03, 2012, 01:55:28 am ---
--- Quote from: jens on September 02, 2012, 08:54:00 am ---I can not reproduce it here.

--- End quote ---

--- Code: ---... word ...

--- End code ---
Select the last "word" - all of the words should be highlighted (this is normal).  Press the up arrow key once.  On Windows Vista; svn 8330, all the words except the last three remain highlighted.

If no one can duplicate it, maybe something is wrong with my computer.  (However, I do not believe this is the case.  These problems are not present in my tests of svn 8133.)

--- End quote ---
I confirm (ubuntu 12.04, latest trunk). Why do these features rely on the update call and other feature not?

Jenna:
If I move the caret away from the selected word, the word gets unselected and all the other highlighted words are shown normal.

dmoore:

--- Quote from: jens on September 04, 2012, 09:17:02 pm ---If I move the caret away from the selected word, the word gets unselected and all the other highlighted words are shown normal.

--- End quote ---

Well, I still have the problem, but it has nothing to do with the small patch you applied here. I tried reverting the patch and it made no difference. Also tried from a fresh config and still have the problem. Note that the problem only occurs when you move the cursor with either keyboard or mouse, but don't scroll. As soon as you scroll the full screen refreshes.

dmoore:
This patch might do the trick, but not sure if that kills performance on Linux again


--- Code: ---Index: src/sdk/cbeditor.cpp
===================================================================
--- src/sdk/cbeditor.cpp (revision 8351)
+++ src/sdk/cbeditor.cpp (working copy)
@@ -502,6 +504,8 @@
         // Set Styling:
         // clear all style indications set in a previous run (is also done once after text gets unselected)
         m_pOwner->GetControl()->IndicatorClearRange(0, eof);
+        m_pOwner->GetControl()->Refresh();
 
         // check that feature is enabled,
         // selected text has a minimal length of 3 and contains no spaces

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version