mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
renderer: do not blink explicit steady cursor styles
This commit is contained in:
@ -530,7 +530,13 @@ pub fn render(
|
||||
|
||||
// Setup our cursor state
|
||||
if (self.focused) {
|
||||
self.cursor_visible = self.cursor_visible and state.cursor.visible;
|
||||
self.cursor_visible = visible: {
|
||||
// If the cursor isn't a blinking style, then never blink.
|
||||
if (!state.cursor.style.blinking()) break :visible true;
|
||||
|
||||
// Otherwise, adhere to our current state.
|
||||
break :visible self.cursor_visible and state.cursor.visible;
|
||||
};
|
||||
self.cursor_style = renderer.CursorStyle.fromTerminal(state.cursor.style) orelse .box;
|
||||
} else {
|
||||
self.cursor_visible = true;
|
||||
|
@ -724,7 +724,13 @@ pub fn render(
|
||||
|
||||
// Setup our cursor state
|
||||
if (self.focused) {
|
||||
self.cursor_visible = self.cursor_visible and state.cursor.visible;
|
||||
self.cursor_visible = visible: {
|
||||
// If the cursor isn't a blinking style, then never blink.
|
||||
if (!state.cursor.style.blinking()) break :visible true;
|
||||
|
||||
// Otherwise, adhere to our current state.
|
||||
break :visible self.cursor_visible and state.cursor.visible;
|
||||
};
|
||||
self.cursor_style = renderer.CursorStyle.fromTerminal(state.cursor.style) orelse .box;
|
||||
} else {
|
||||
self.cursor_visible = true;
|
||||
|
Reference in New Issue
Block a user