Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
42d6cc7c
Commit
42d6cc7c
authored
Dec 08, 2007
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Dec 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Invalidate all the text on bogus last selection.
parent
8a4db52f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
paint.c
dlls/riched20/paint.c
+19
-18
No files found.
dlls/riched20/paint.c
View file @
42d6cc7c
...
...
@@ -558,25 +558,26 @@ ME_InvalidateSelection(ME_TextEditor *editor)
assert
(
para2
->
type
==
diParagraph
);
/* last selection markers aren't always updated, which means
they can point past the end of the document */
if
(
editor
->
nLastSelStart
>
len
)
editor
->
nLastSelEnd
=
len
;
if
(
editor
->
nLastSelEnd
>
len
)
editor
->
nLastSelEnd
=
len
;
/* if the start part of selection is being expanded or contracted... */
if
(
nStart
<
editor
->
nLastSelStart
)
{
ME_MarkForPainting
(
editor
,
para1
,
ME_FindItemFwd
(
editor
->
pLastSelStartPara
,
diParagraphOrEnd
));
}
else
if
(
nStart
>
editor
->
nLastSelStart
)
{
ME_MarkForPainting
(
editor
,
editor
->
pLastSelStartPara
,
ME_FindItemFwd
(
para1
,
diParagraphOrEnd
));
}
if
(
editor
->
nLastSelStart
>
len
||
editor
->
nLastSelEnd
>
len
)
{
ME_MarkForPainting
(
editor
,
ME_FindItemFwd
(
editor
->
pBuffer
->
pFirst
,
diParagraph
),
ME_FindItemFwd
(
editor
->
pBuffer
->
pFirst
,
diTextEnd
));
}
else
{
/* if the start part of selection is being expanded or contracted... */
if
(
nStart
<
editor
->
nLastSelStart
)
{
ME_MarkForPainting
(
editor
,
para1
,
ME_FindItemFwd
(
editor
->
pLastSelStartPara
,
diParagraphOrEnd
));
}
else
if
(
nStart
>
editor
->
nLastSelStart
)
{
ME_MarkForPainting
(
editor
,
editor
->
pLastSelStartPara
,
ME_FindItemFwd
(
para1
,
diParagraphOrEnd
));
}
/* if the end part of selection is being contracted or expanded... */
if
(
nEnd
<
editor
->
nLastSelEnd
)
{
ME_MarkForPainting
(
editor
,
para2
,
ME_FindItemFwd
(
editor
->
pLastSelEndPara
,
diParagraphOrEnd
));
}
else
if
(
nEnd
>
editor
->
nLastSelEnd
)
{
ME_MarkForPainting
(
editor
,
editor
->
pLastSelEndPara
,
ME_FindItemFwd
(
para2
,
diParagraphOrEnd
));
/* if the end part of selection is being contracted or expanded... */
if
(
nEnd
<
editor
->
nLastSelEnd
)
{
ME_MarkForPainting
(
editor
,
para2
,
ME_FindItemFwd
(
editor
->
pLastSelEndPara
,
diParagraphOrEnd
));
}
else
if
(
nEnd
>
editor
->
nLastSelEnd
)
{
ME_MarkForPainting
(
editor
,
editor
->
pLastSelEndPara
,
ME_FindItemFwd
(
para2
,
diParagraphOrEnd
));
}
}
ME_InvalidateMarkedParagraphs
(
editor
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment