summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-18 04:06:22 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-18 04:06:22 +0300
commitb7a504b35e54e68ca7aceb01d21f066124f7a536 (patch)
treec92476a08a64d36a5a1a1d4f83125725ed238e6b
parent36b4001f4526b60f1c9b67a4a34596e5ad2bcca1 (diff)
chore: add windows target lint to local check
-rw-r--r--justfile9
-rw-r--r--src/raw_input.rs1
2 files changed, 8 insertions, 2 deletions
diff --git a/justfile b/justfile
index 26f6b8ed..d0a3ee43 100644
--- a/justfile
+++ b/justfile
@@ -18,8 +18,13 @@ lint:
ci filter='all()': lint
cargo nextest run --locked -E "{{filter}}" --status-level fail --final-status-level slow --failure-output final --success-output never
-# Check formatting + run unit tests + maintenance script tests
-check: ci
+# Run Windows target lint from Unix/macOS to catch cfg(windows) compile and clippy failures before CI
+windows-lint:
+ rustup target add x86_64-pc-windows-msvc
+ LIBGHOSTTY_VT_SIMD=false cargo clippy --bin herdr --locked --target x86_64-pc-windows-msvc -- -D warnings
+
+# Check formatting + run unit tests + Windows target lint + maintenance script tests
+check: ci windows-lint
python3 -m unittest scripts.test_agent_detection_manifest_check scripts.test_changelog scripts.test_preview scripts.test_vendor_libghostty_vt
@echo "docs reminder: if this changes user-facing behavior, make sure the relevant release docs are updated or called out before release."
diff --git a/src/raw_input.rs b/src/raw_input.rs
index 9978cc0c..5638cd7a 100644
--- a/src/raw_input.rs
+++ b/src/raw_input.rs
@@ -380,6 +380,7 @@ pub(crate) fn events_require_host_surface_redraw(
.any(|event| matches!(event, RawInputEvent::OuterFocusGained))
}
+#[cfg(any(not(windows), test))]
pub(crate) fn events_require_host_terminal_theme_query(events: &[RawInputEvent]) -> bool {
events
.iter()