From c856116718eee54e6aceb8dad5524352db70057e Mon Sep 17 00:00:00 2001 From: Grisha Trubetskoy Date: Thu, 29 Jan 2026 21:54:23 -0500 Subject: [PATCH] Apply default features for empty slice, not just nil. --- ot/shaper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ot/shaper.go b/ot/shaper.go index 570b157..e1e9dbd 100644 --- a/ot/shaper.go +++ b/ot/shaper.go @@ -1259,7 +1259,7 @@ func (s *Shaper) Shape(buf *Buffer, features []Feature) { } // Use default features if none specified - if features == nil { + if len(features) == 0 { features = s.defaultFeatures }