[1mdiff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c[m
[1mindex 57074c18..3368adba 100644[m
[1m--- a/src/ui/inputwidget.c[m
[1m+++ b/src/ui/inputwidget.c[m
[36m@@ -839,7 +839,7 @@[m [mstatic void deactivateInputMode_InputWidget_(iInputWidget *d) {[m
if (isEmpty_PtrSet(activeInputWidgets_())) {[m
setTextInputActive_App(iFalse);[m
enableEditorKeysInMenus_(iTrue);[m
[31m- } [m
[32m+[m[32m }[m
}[m
[m
void init_InputWidget(iInputWidget *d, size_t maxLen) {[m
[36m@@ -1283,7 +1283,7 @@[m [mvoid deselect_InputWidget(iInputWidget *d) {[m
void validate_InputWidget(iInputWidget *d) {[m
if (d->validator) {[m
d->validator(d, d->validatorContext); /* this may change the contents */[m
[31m- } [m
[32m+[m[32m }[m
}[m
[m
iLocalDef iBool isEditing_InputWidget_(const iInputWidget *d) {[m
[36m@@ -1450,7 +1450,7 @@[m [mstatic void insertRange_InputWidget_(iInputWidget *d, iRangecc range) {[m
setRange_String(&split.text, (iRangecc){[m
cstr_String(&line->text) + d->cursor.x, constEnd_String(&line->text)[m
});[m
[31m- truncate_String(&line->text, d->cursor.x);[m
[32m+[m[32m truncate_Block(&line->text.chars, d->cursor.x);[m
if (!endsWith_String(&line->text, "\n")) {[m
appendCStr_String(&line->text, "\n");[m
}[m
[36m@@ -1528,10 +1528,10 @@[m [mstatic iBool moveCursorByLine_InputWidget_(iInputWidget *d, int dir, int horiz)[m
iWrapText wt = wrap_InputWidget_(d, d->cursor.y);[m
if (isEqual_I2(relCoord, zero_I2())) {[m
/* (0, 0) disables the hit test, but this is trivial to figure out. */[m
[31m- wt.hitChar_out = wt.text.start; [m
[32m+[m[32m wt.hitChar_out = wt.text.start;[m
}[m
else {[m
[31m- wt.hitPoint = addY_I2(relCoord, 1 * aspect_UI); [m
[32m+[m[32m wt.hitPoint = addY_I2(relCoord, 1 * aspect_UI);[m
measure_WrapText(&wt, d->font);[m
}[m
if (wt.hitChar_out) {[m
[36m@@ -2247,7 +2247,7 @@[m [mstatic void clampWheelAccum_InputWidget_(iInputWidget *d, int wheel) {[m
else if (wheel < 0 && d->visWrapLines.end >= lastLine_InputWidget_(d)->wrapLines.end) {[m
d->wheelAccum = 0;[m
refresh_Widget(d);[m
[31m- } [m
[32m+[m[32m }[m
}[m
#endif[m
[m
[36m@@ -2286,7 +2286,7 @@[m [mstatic iBool isSelectAllEvent_InputWidget_(const SDL_KeyboardEvent *ev) {[m
return key == SDLK_a && mods == KMOD_ALT;[m
#else[m
return key == SDLK_a && mods == KMOD_PRIMARY;[m
[31m-#endif [m
[32m+[m[32m#endif[m
}[m
[m
static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) {[m
[36m@@ -2364,7 +2364,7 @@[m [mstatic iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) {[m
paste_InputWidget_(d);[m
if (argLabel_Command(command_UserEvent(ev), "enter")) {[m
d->inFlags |= enterPressed_InputWidgetFlag;[m
[31m- setFocus_Widget(NULL); [m
[32m+[m[32m setFocus_Widget(NULL);[m
}[m
return iTrue;[m
}[m
[36m@@ -2524,7 +2524,7 @@[m [mstatic iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) {[m
d->cursor = curMax;[m
showCursor_InputWidget_(d);[m
refresh_Widget(w);[m
[31m- return iTrue; [m
[32m+[m[32m return iTrue;[m
}[m
#endif /* !LAGRANGE_USE_SYSTEM_TEXT_INPUT */[m
switch (key) {[m
[36m@@ -2788,7 +2788,7 @@[m [mstatic void draw_InputWidget_(const iInputWidget *d) {[m
const iWidget *w = constAs_Widget(d);[m
iRect bounds = adjusted_Rect(bounds_InputWidget_(d), padding_(), neg_I2(padding_()));[m
iBool isHint = isHintVisible_InputWidget_(d);[m
[31m- const iBool isFocused = isFocused_Widget(w); [m
[32m+[m[32m const iBool isFocused = isFocused_Widget(w);[m
const iBool isHover = deviceType_App() == desktop_AppDeviceType &&[m
isHover_Widget(w) &&[m
contains_InputWidget_(d, mouseCoord_Window(get_Window(), 0));[m
[36m@@ -2843,7 +2843,7 @@[m [mstatic void draw_InputWidget_(const iInputWidget *d) {[m
visLineOffsetY),[m
white_ColorId);[m
}[m
[31m- else { [m
[32m+[m[32m else {[m
draw_TextBuf(d->buffered, addY_I2(drawPos, visLineOffsetY), white_ColorId);[m
}[m
}[m
[36m@@ -2926,7 +2926,7 @@[m [mstatic void draw_InputWidget_(const iInputWidget *d) {[m
const iRect curRect = { curPos, curSize };[m
#if defined (SDL_SEAL_CURSES)[m
/* Tell where to place the terminal cursor. */[m
[31m- SDL_SetTextInputRect((const SDL_Rect *) &curRect); [m
[32m+[m[32m SDL_SetTextInputRect((const SDL_Rect *) &curRect);[m
#endif[m
fillRect_Paint(&p, curRect, uiInputCursor_ColorId);[m
if (d->mode == overwrite_InputMode) {[m
text/plain
This content has been proxied by September (ba2dc).