Merge pull request #41 from HueByte/dev_move_cursor_to_end_on_autocomplete

fix: set input field insertion point to end after autocomplete
This commit is contained in:
Hue
2026-04-20 17:42:03 +02:00
committed by HueByte
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
# v0.2.10 # v0.2.10
Follow-up patch release for v0.2.9 addressing regressions in the auto-updater flow. Follow-up patch release for v0.2.9 addressing auto-updater regressions and input polish.
## Bug Fixes ## Bug Fixes
- Fix update progress dialog freezing / not repainting — progress callbacks now run on the UI thread so the download and extraction percentage actually updates while an update is in progress - Fix update progress dialog freezing / not repainting — progress callbacks now run on the UI thread so the download and extraction percentage actually updates while an update is in progress
- Fix pre-update backup failing when a Serilog-held log file is locked — `UpdateBackupService` now enumerates files manually, skips the `logs/` directory and `.log` files, and logs-and-continues on `IOException`/`UnauthorizedAccessException` instead of aborting the whole backup - Fix pre-update backup failing when a Serilog-held log file is locked — `UpdateBackupService` now enumerates files manually, skips the `logs/` directory and `.log` files, and logs-and-continues on `IOException`/`UnauthorizedAccessException` instead of aborting the whole backup
- Simplify update progress dispatch — remove redundant `Application.Invoke` wrappers around progress updates that are already called from the UI thread (introduced while fixing the freeze above) - Simplify update progress dispatch — remove redundant `Application.Invoke` wrappers around progress updates that are already called from the UI thread (introduced while fixing the freeze above)
- Fix cursor position being reset to the start of the line when auto-completing commands in the CLI app — insertion point is now moved to the end of the completed text
+3
View File
@@ -572,6 +572,9 @@ public sealed partial class MainWindow : Runnable
if (prefix.Length > text.Length) if (prefix.Length > text.Length)
_inputField.Text = prefix; _inputField.Text = prefix;
} }
// Move cursor to end after autocomplete
_inputField.InsertionPoint = new System.Drawing.Point(_inputField.Text?.Length ?? 0, 0);
} }
private void OnChatViewportChanged() private void OnChatViewportChanged()