linenoise BUGFIX refresh columns on each line refresh
diff --git a/tools/lint/linenoise/linenoise.c b/tools/lint/linenoise/linenoise.c
index acbf389..e50bd8e 100644
--- a/tools/lint/linenoise/linenoise.c
+++ b/tools/lint/linenoise/linenoise.c
@@ -697,6 +697,9 @@
/* Calls the two low level functions refreshSingleLine() or
* refreshMultiLine() according to the selected mode. */
void linenoiseRefreshLine(void) {
+ /* Update columns in case the terminal was resized */
+ ls.cols = getColumns(STDIN_FILENO, STDOUT_FILENO);
+
if (mlmode)
refreshMultiLine(&ls);
else