04-08-2023, 01:24 PM
Result of using ChatGPT conversion: It's all wrong
#1
#2
#1
int pos = SendEditor(SCI_GETCURRENTPOS);
int nPrevLinePos = SendEditor(SCI_POSITIONFROMLINE, line-1);
int c = ' ';
for (int p = pos - 2; p >= nPrevLinePos && isspace(c); p--) {
c = SendEditor(SCI_GETCHARAT, p);
}
#2