Hans and Thorsten Ball
ec6efe262f
Fix crash when joining two consecutive lines ( #10000 )
...
Release notes:
- Fixed a crash when joining two consecutive lines
([#9692 ](https://github.com/zed-industries/zed/pull/9692 )).
This crash is not caused by `vim` or `editor`'s code logic, `join_line`
logic is okay, I found that the crash is caused by a refresh of git
`diff` after every update, hhen git diff generates hunks, it will look
for the cursor to the beginning of a line, and judge that if the cursor
result column is greater than 0, that is, it is not the beginning of a
line, it will correct the row to the next line, I think before we forgot
here that I need to adjust the column to 0 at the same time, otherwise
it is easy to go out of bounds, I am not sure if I need to add more
tests for this method, I can add if I need to, but I feel that this case
is a bit extreme
---------
Co-authored-by: Thorsten Ball <mrnugget@gmail.com >
2024-04-05 15:45:29 +02:00
..
2024-03-28 15:41:22 -04:00
2024-04-01 12:16:16 +03:00
2024-03-05 12:01:17 -05:00
2024-04-03 12:21:17 +02:00
2024-03-26 13:28:06 +01:00
2024-03-12 12:54:12 +02:00
2024-03-14 16:39:55 -04:00
2024-04-04 13:43:14 +02:00
2024-04-04 15:12:35 +02:00
2024-03-28 11:55:35 -04:00
2024-03-29 21:12:47 -04:00
2024-03-05 12:01:17 -05:00
2024-04-04 13:43:14 +02:00
2024-04-04 13:43:14 +02:00
2024-03-29 17:09:49 -07:00
2024-03-15 16:58:46 -04:00
2024-03-15 12:37:25 -04:00
2024-03-26 13:28:06 +01:00
2024-03-29 12:18:38 +02:00
2024-03-28 10:51:55 +01:00
2024-03-22 17:29:06 -07:00
2024-04-03 12:21:17 +02:00
2024-04-05 15:45:29 +02:00
2024-04-04 15:38:38 -04:00
2024-04-04 15:38:38 -04:00
2024-03-28 18:32:11 +01:00
2024-04-03 12:42:36 -04:00
2024-03-05 12:01:17 -05:00
2024-04-02 11:19:19 -04:00
2024-04-01 17:22:59 -07:00
2024-04-03 12:07:53 -04:00
2024-04-03 13:49:12 +02:00
2024-03-08 22:18:44 -08:00
2024-03-05 12:01:17 -05:00
2024-04-05 15:45:29 +02:00
2024-03-14 12:39:45 -04:00
2024-03-20 15:52:02 +01:00
2024-04-03 12:21:17 +02:00
2024-03-11 10:45:57 +01:00
2024-03-29 17:09:49 -07:00
2024-03-11 10:45:57 +01:00
2024-03-22 11:17:16 +01:00
2024-04-05 01:07:19 +02:00
2024-03-05 12:01:17 -05:00
2024-04-03 12:21:17 +02:00
2024-04-04 17:56:33 +02:00
2024-03-20 17:33:26 -04:00
2024-03-18 20:33:20 -06:00
2024-03-29 12:18:38 +02:00
2024-04-04 21:06:30 +02:00
2024-04-02 13:12:38 -06:00
2024-03-26 16:10:09 -07:00
2024-04-03 09:22:56 -07:00
2024-03-20 12:47:04 -07:00
2024-04-02 20:40:00 -06:00
2024-03-21 20:30:33 -06:00
2024-03-14 12:39:45 -04:00
2024-04-03 17:28:51 +02:00
2024-03-21 08:23:15 +01:00
2024-04-04 15:38:38 -04:00
2024-04-01 17:22:59 -07:00
2024-03-05 12:01:17 -05:00
2024-03-05 12:01:17 -05:00
2024-03-29 23:17:25 +02:00
2024-03-05 12:01:17 -05:00
2024-03-05 12:01:17 -05:00
2024-03-05 12:01:17 -05:00
2024-03-21 14:10:18 -06:00
2024-04-03 13:34:56 +03:00
2024-04-03 12:21:17 +02:00
2024-03-29 12:11:57 -04:00
2024-03-26 13:28:06 +01:00
2024-03-05 12:01:17 -05:00
2024-03-05 12:01:17 -05:00
2024-03-05 12:01:17 -05:00
2024-03-14 17:05:07 -04:00
2024-03-28 10:40:07 -07:00
2024-04-03 12:21:17 +02:00
2024-04-03 17:28:51 +02:00
2024-04-04 16:02:24 +03:00
2024-04-04 15:37:53 +02:00
2024-03-29 12:11:57 -04:00
2024-04-03 12:21:17 +02:00
2024-04-03 12:21:17 +02:00
2024-03-28 18:32:11 +01:00
2024-04-01 12:07:26 -04:00
2024-04-01 12:07:26 -04:00
2024-03-20 11:13:58 -04:00
2024-03-12 21:02:04 -06:00
2024-04-03 17:28:51 +02:00
2024-04-02 14:31:58 -07:00
2024-03-05 12:01:17 -05:00
2024-04-04 08:35:26 +02:00
2024-03-20 18:52:17 -06:00
2024-04-04 14:24:49 -06:00
2024-04-01 18:22:25 +03:00
2024-04-03 12:11:28 -04:00
2024-03-05 12:01:17 -05:00