mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-24 20:56:08 +03:00
Merge pull request #409 from mitchellh/cursor-focus-box
renderer: always show cursor if window is not focused
This commit is contained in:
@ -494,6 +494,10 @@ pub fn render(
|
||||
// If the cursor isn't a blinking style, then never blink.
|
||||
if (!selected_cursor_style.blinking()) break :visible true;
|
||||
|
||||
// If we're not focused, our cursor is always visible so that
|
||||
// we can show the hollow box.
|
||||
if (!self.focused) break :visible true;
|
||||
|
||||
// Otherwise, adhere to our current state.
|
||||
break :visible self.cursor_visible;
|
||||
};
|
||||
|
@ -736,6 +736,10 @@ pub fn render(
|
||||
// If the cursor isn't a blinking style, then never blink.
|
||||
if (!selected_cursor_style.blinking()) break :visible true;
|
||||
|
||||
// If we're not focused, our cursor is always visible so that
|
||||
// we can show the hollow box.
|
||||
if (!self.focused) break :visible true;
|
||||
|
||||
// Otherwise, adhere to our current state.
|
||||
break :visible self.cursor_visible;
|
||||
};
|
||||
|
Reference in New Issue
Block a user