Improve suffix handling for commands.

This commit is contained in:
2026-08-23 13:16:33 +01:00
parent 6f1c87400a
commit c8a270378a
4 changed files with 11 additions and 11 deletions
+4
View File
@@ -16,9 +16,13 @@ struct Buffer {
uint64_t line = 0;
bool modified;
std::filesystem::path save_path = "";
struct {
uint64_t start{0};
uint64_t end{0};
std::span<const uint64_t> values() const {
return {&start, 2};
}
} prev_range;
Buffer();
+1 -1
View File
@@ -6,7 +6,7 @@
namespace bed::internal::commands {
struct Suffix {
std::string desc;
void (*handle)(BEd &);
void (*handle)(BEd &, std::span<const uint64_t>);
static void register_suffixes(BEd &ctx);
};