Commit de66cd6
committed
fix: tab completion cursor positioning and code formatting
Fix tab completion cursor bug where the cursor would jump to incorrect
position after autocompleting filenames or paths. The cursor now correctly
moves to the end of the completed text.
Changes:
- Fix cursor position after tab completion in index.html
When tab completion updates the command line ($current), also update
$cursorPos to match the new length. This prevents cursor quirks and
incorrect positioning when typing after completion.
- Fix code formatting in main.go
Correct indentation inconsistency in autocomplete handler (lines 2815-2816)
from spaces to tabs to match project style.
Fixes reported issue where:
- Tab completion caused cursor to appear in wrong position
- Subsequent typing would insert characters at incorrect location1 parent 8c0e82c commit de66cd6
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| 888 | + | |
888 | 889 | | |
889 | 890 | | |
890 | 891 | | |
| 892 | + | |
891 | 893 | | |
892 | 894 | | |
893 | 895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2812 | 2812 | | |
2813 | 2813 | | |
2814 | 2814 | | |
2815 | | - | |
2816 | | - | |
| 2815 | + | |
| 2816 | + | |
2817 | 2817 | | |
2818 | 2818 | | |
2819 | 2819 | | |
| |||
0 commit comments