Bad drawing of selection after end of line |
Post Reply |
Author | |
peerschindel
Groupie Joined: 12 July 2008 Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 20 April 2009 at 10:54am |
Hello Syntax Edit team,
I just want to make a proposal for the following effect (what - I think - is a bug). Suppose I have a text file with 2 lines: 1234567890
ABC
So 10 character in the 1st line and 3 characters in the 2nd line.
Then I press <End> to go to end of 1st line. Then I press <Down> to go to end of 2nd line. I brings me behind the 3rd (so the last) character of 2nd line. So far, so good. But when I now press <Shift>+<End>, it draws, as if 7 (non-existing) space characters were selected. But they are not (because I cannot copy them to clipboard, etc.).
Note: Virtual space is NOT enabled for my syntax edit control.
So I would suggest the following fix in file "XTPSyntaxEditPaintManager.cpp" in
function "CXTPSyntaxEditPaintManager::DrawLineTextEx" ca. in line 1023:
Replace:
...
if (!pDC->IsPrinting())
{ // draw selection for virtual space, after line text end) ...
with
...
if (!pDC->IsPrinting() && pEditCtrl->IsEnabledVirtualSpace ())
{
// draw selection for virtual space, after line text end) ... Because as the comment already states:
The following drawing code should only be for virtual space and if I have NOT it disabled, it draws - in my opinion - wrong and confusing things.
So I simply so not execute this special drawing code when I don't have virtual space.
Best regards
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |