@@ -125,27 +125,27 @@ void Render(Screen& screen, Node* node, Selection& selection) {
125125 node->Select (selection);
126126 }
127127
128- // Setting the cursor to the right position allow folks using CJK (China,
129- // Japanese, Korean, ...) characters to see their [input method editor]
130- // displayed at the right location. See [issue].
131- //
132- // [input method editor]:
133- // https://en.wikipedia.org/wiki/Input_method
134- //
135- // [issue]:
136- // https://github.com/ArthurSonzogni/FTXUI/issues/2#issuecomment-505282355
137- //
138- // Unfortunately, Microsoft terminal do not handle properly hiding the
139- // cursor. Instead the character under the cursor is hidden, which is a big
140- // problem. As a result, we can't enable setting cursor to the right
141- // location. It will be displayed at the bottom right corner.
142- // See:
143- // https://github.com/microsoft/terminal/issues/1203
144- // https://github.com/microsoft/terminal/issues/3093
145128 if (node->requirement ().focused .enabled
146129#if defined(FTXUI_MICROSOFT_TERMINAL_FALLBACK)
147- ||
148- node->requirement ().focused .cursor_shape == Screen::Cursor::Shape::Hidden
130+ // Setting the cursor to the right position allow folks using CJK (China,
131+ // Japanese, Korean, ...) characters to see their [input method editor]
132+ // displayed at the right location. See [issue].
133+ //
134+ // [input method editor]:
135+ // https://en.wikipedia.org/wiki/Input_method
136+ //
137+ // [issue]:
138+ // https://github.com/ArthurSonzogni/FTXUI/issues/2#issuecomment-505282355
139+ //
140+ // Unfortunately, Microsoft terminal do not handle properly hiding the
141+ // cursor. Instead the character under the cursor is hidden, which is a
142+ // big problem. As a result, we can't enable setting cursor to the right
143+ // location. It will be displayed at the bottom right corner.
144+ // See:
145+ // https://github.com/microsoft/terminal/issues/1203
146+ // https://github.com/microsoft/terminal/issues/3093
147+ &&
148+ !node->requirement ().focused .cursor_shape == Screen::Cursor::Shape::Hidden
149149#endif
150150 ) {
151151 screen.SetCursor (Screen::Cursor{
0 commit comments