Fix a few bugs.

- Moving lines after themselves didnt work.
- moving empty lines deleted them.
- "w" didnt set state to unmodified in generic buffers.
- in "hl" aligned the numbers (by digits)
This commit is contained in:
2026-09-11 22:35:06 +01:00
parent a8d51dc0b6
commit 3346bc9f83
11 changed files with 31 additions and 15 deletions
-2
View File
@@ -182,8 +182,6 @@ Shard *insert(AppendStorage *ap, Shard *root, Shard *text, uint64_t line) {
Shard::retain(text);
return text;
}
if (!text)
return root;
if (line > root->lines + 1)
throw ed_error("line out of range");
Shard::retain(text);