Merge pull request #5283 from smoosex/main
fix(tui): keep hardware cursor marker during slash-command autocomplete
This commit is contained in:
@@ -469,8 +469,10 @@ export class Editor implements Component, Focusable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Render each visible layout line
|
// Render each visible layout line
|
||||||
// Emit hardware cursor marker only when focused and not showing autocomplete
|
// Emit hardware cursor marker when focused so TUI can position the
|
||||||
const emitCursorMarker = this.focused && !this.autocompleteState;
|
// hardware cursor for IME candidate-window placement even while
|
||||||
|
// autocomplete (e.g. slash-command menu) is visible.
|
||||||
|
const emitCursorMarker = this.focused;
|
||||||
|
|
||||||
for (const layoutLine of visibleLines) {
|
for (const layoutLine of visibleLines) {
|
||||||
let displayText = layoutLine.text;
|
let displayText = layoutLine.text;
|
||||||
|
|||||||
Reference in New Issue
Block a user