<=
The symbol change shape:
image.png (view on web)The cursor keeps consistently its correct shape:
image.png (view on web)Note that Vim run in Windows Terminal don't have this problem.
9.2 with patch 1-45
Windows 11
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I have to reopen because the issue is still there despite I upgraded to patch 0.894.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@chrisbra The problem is still there in-spite I upgraded to patch 0.894. Shall we re-open #12901 or shall I keep open this one?
That is for GTK.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Does this patch fix your issue?
diff --git a/src/gui.c b/src/gui.c index 5d6eae105..e2b3b4021 100644 --- a/src/gui.c +++ b/src/gui.c @@ -1412,9 +1412,6 @@ gui_update_cursor( } break; } - // gui_redraw_block() may invalidate the cursor, make sure to validate - // it again. - gui.cursor_is_valid = true; # ifndef USE_GTK4 if ((lig_left || lig_right) && shape->shape != SHAPE_BLOCK) @@ -1430,6 +1427,9 @@ gui_update_cursor( gui.col = old; } # endif + // gui_redraw_block()/gui_screenchar() may invalidate the cursor, make sure + // to validate it again. + gui.cursor_is_valid = true; #endif old_hl_mask = gui.highlight_mask;
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Does this patch fix your issue?
Note that, this is happened on Windows.
Before:
https://github.com/user-attachments/assets/08f4fd6b-1e6f-4972-b2d7-0dc4ad564c35
After:
https://github.com/user-attachments/assets/e805db43-c0f1-4a05-a56d-9795814b8122
My Expect Behaviour (this is Windows Terminal):
https://github.com/user-attachments/assets/a6f7de15-786c-492b-a33e-6ff8a924ed84
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Does this patch fix your issue?
diff --git a/src/gui.c b/src/gui.c
index 5d6eae105..e2b3b4021 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1412,9 +1412,6 @@ gui_update_cursor(
}
break;
}
- // gui_redraw_block() may invalidate the cursor, make sure to validate
- // it again.
- gui.cursor_is_valid = true;
ifndef USE_GTK4
if ((lig_left || lig_right) && shape->shape != SHAPE_BLOCK)@@ -1430,6 +1427,9 @@ gui_update_cursor(
gui.col = old;
}
endif
// gui_redraw_block()/gui_screenchar() may invalidate the cursor, make sure
// to validate it again.
gui.cursor_is_valid = true;
#endifold_hl_mask = gui.highlight_mask;
Unfortunately, I cannot build on Windows, but it seems that @mao-yining give it a shot.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I believe you need to add the characters that make ligatures in guiligatures (e.g. set guiligatures=>=). It seems that GVim on Windows if using DirectX to render always renders ligatures, even if the ligature character is not specified in guiligatures
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@mao-yining In your expected behaviour video, I don't think that would be possible (e.g. the ligature staying intact as cursor moves over it). This is because the cursor is rendered as a "cell" just like other text with a background. Currently text with different backgrounds are rendered separately, meaning ligatures cannot connect over background boundaries. It could be possible, but I'm not sure how complicated that would be.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I believe you need to add the characters that make ligatures in
guiligatures(e.g.set guiligatures=>=). It seems that GVim on Windows if using DirectX to render always renders ligatures, even if the ligature character is not specified inguiligatures
Ah. Thanks. After set that option. It works well while moving. What's more your patch fix another problem which I just find.
set guiligatures=!\"#$%&()*+-./:<=>?@[]^_{\|~
set guifontwide=:h12
Before (ghost cursor of insert mode):
https://github.com/user-attachments/assets/456f354e-ad3c-4bfd-9f35-a0615e0ac072
After:
https://github.com/user-attachments/assets/d7c0734c-fdb3-42a1-b124-64d26f3e1028
@64-bitman Could you make a PR for that?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Maybe it would be fine if gVim can automatically set that while reading fonts? Or also don't show ligatures on Windows which like the behaviour you said on GTK.
What do you mean?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Maybe it would be fine if gVim can automatically set that while reading fonts? Or also don't show ligatures on Windows which like the behaviour you said on GTK.
What do you mean?
The current behavior is strange: ligatures are displayed by default, but cursor movement does not support ligatures by default. What I mean is, if it's convenient to implement, we can unify the GUI behavior across all platforms.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()