Ctrl-k-t select first word in line correctly if line length 49 or greater

This commit is contained in:
Margers 2024-09-24 10:23:07 +00:00 committed by Michael Van Canneyt
parent 368a77d75e
commit 4b4f910289

View File

@ -5537,7 +5537,7 @@ begin
exit
else
begin
While (StartPos>0) and (S[StartPos-1] in WordChars) do
While (StartPos>1) and (S[StartPos-1] in WordChars) do
Dec(StartPos);
While (EndPos<Length(S)) and (S[EndPos+1] in WordChars) do
Inc(EndPos);