eric pouech (@epo) commented about programs/cmd/lineedit.c:
csbi.dwCursorPosition.X = 0; /* First column in the row. */
cCount -= chars;
- }
+}
+static void SetCursorVisible(const HANDLE hOutput, const BOOL visible) +{
- CONSOLE_CURSOR_INFO cursorInfo;
- if (GetConsoleCursorInfo(hOutput, &cursorInfo)) {
cursorInfo.bVisible = visible;
SetConsoleCursorInfo(hOutput, &cursorInfo);
- }
+}
+static void FindSearchPos(const WCHAR *inputBuffer, int len, PSEARCH_CONTEXT sc)
same remark as above: please use WCMD_parameter to loop across words and determine which word contains current cursor positiion