1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-12-24 16:28:53 -05:00
This commit is contained in:
Niels 2010-06-03 16:03:27 +02:00
parent 8d791a0e96
commit 60c7ebce58

View File

@ -408,7 +408,7 @@ begin
synedit.Lines.SaveToStream(ms); synedit.Lines.SaveToStream(ms);
try try
Synedit.GetWordBoundsAtRowCol(Synedit.CaretXY, sp, ep); Synedit.GetWordBoundsAtRowCol(Synedit.CaretXY, sp, ep);
if (SynEDit.CaretY <= 0) or (SynEdit.CaretY > SynEdit.Lines.Count) then if (SynEdit.CaretY <= 0) or (SynEdit.CaretY > SynEdit.Lines.Count) then
s := '' s := ''
else else
s := SynEdit.Lines[SynEdit.CaretY - 1]; s := SynEdit.Lines[SynEdit.CaretY - 1];