From f4770ecd17cc100b03000e12e969d77d4f3da1b3 Mon Sep 17 00:00:00 2001 From: zyc <18611145971@163.com> Date: Sun, 4 Jan 2026 14:36:56 +0800 Subject: [PATCH 1/2] Fix assertion --- src/paint/border_path_iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paint/border_path_iter.rs b/src/paint/border_path_iter.rs index 26d039ab1..2676a37d1 100644 --- a/src/paint/border_path_iter.rs +++ b/src/paint/border_path_iter.rs @@ -94,7 +94,7 @@ impl<'a> Iterator for BorderPathIter<'a> { fn next(&mut self) -> Option { assert!( - self.total_len >= 0.0, + self.total_len > 0.0, "Total length must be positive. Total_len: {}", self.total_len ); From 701fa09eeaead5a108182d2dc977e7ad6f679e6e Mon Sep 17 00:00:00 2001 From: zyc <18611145971@163.com> Date: Sun, 4 Jan 2026 16:58:30 +0800 Subject: [PATCH 2/2] Fix assertion --- src/views/editor/visual_line.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/editor/visual_line.rs b/src/views/editor/visual_line.rs index 76fc27d86..5064ec11f 100644 --- a/src/views/editor/visual_line.rs +++ b/src/views/editor/visual_line.rs @@ -875,7 +875,7 @@ impl Lines { debug_assert_eq!( line_index, 0, - "Line index was zero. This likely indicates keeping an rvline past when it was valid." + "Line index was not zero. This likely indicates keeping an rvline past when it was valid." ); rope_text.offset_of_line(line)