Files
lazygit/pkg
Stefan Haller 8fbc70bf84 Fix staging only some lines of a block of consecutive changes
This fixes the problem; a consequence of this change is that given the following
scenario:

@@ -1,3 +1,3 @@
 1
-2
+2b
 3

staging only the line `+2b` will put it *before* the unchanged `2` line, rather
than after it as you might expect (the changed unit tests demonstrate this).
Since this should be a pretty uncommon scenario, I guess it is an ok compromise.

As you can see in the changed tests, while the behavior of what gets staged is
fixed now, it doesn't always correctly select the next line to stage. We'll
address this in the next commit.
2026-03-19 16:57:53 +01:00
..
2026-01-28 10:15:51 +01:00
2025-05-06 09:43:26 +02:00
2025-11-15 10:46:23 +01:00
2026-03-09 19:49:46 +01:00
2025-11-15 10:46:23 +01:00
2025-08-14 20:40:44 +02:00
2025-11-15 10:46:23 +01:00
2026-01-28 10:15:51 +01:00