1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Underflow fix

This commit is contained in:
Brian Fiete 2025-01-17 11:02:26 -08:00
parent f812cf6eea
commit 81dd512cdb

View file

@ -2836,7 +2836,7 @@ namespace Beefy.widgets
hi = i - 1; hi = i - 1;
} }
if (hi < GetLineCount()) if ((hi >= 0) && (hi < GetLineCount()))
{ {
line = (int32)hi; line = (int32)hi;
theChar = idx - mData.mLineStarts[hi]; theChar = idx - mData.mLineStarts[hi];