|
@@ -3269,12 +3269,10 @@ end; { TEditor.NextLine }
|
|
|
|
|
|
function TEditor.NextWord (P : Sw_Word) : Sw_Word;
|
|
function TEditor.NextWord (P : Sw_Word) : Sw_Word;
|
|
begin
|
|
begin
|
|
- // Skip the rest of the current word
|
|
|
|
- while (P < BufLen) and not IsDelimiter(BufChar(P)) do
|
|
|
|
- P := NextChar(P);
|
|
|
|
- // Skip trailing delimiters
|
|
|
|
while (P < BufLen) and IsDelimiter(BufChar(P)) do
|
|
while (P < BufLen) and IsDelimiter(BufChar(P)) do
|
|
P := NextChar(P);
|
|
P := NextChar(P);
|
|
|
|
+ while (P < BufLen) and not IsDelimiter(BufChar(P)) do
|
|
|
|
+ P := NextChar(P);
|
|
NextWord := P;
|
|
NextWord := P;
|
|
end; { TEditor.NextWord }
|
|
end; { TEditor.NextWord }
|
|
|
|
|