refactor: fix spelling of egc_at function

This commit is contained in:
CJ van den Berg 2025-03-04 18:50:38 +01:00
parent 1acee03ea9
commit e285099253
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 7 additions and 7 deletions

View file

@ -2994,7 +2994,7 @@ pub const Editor = struct {
return error.Stop;
try move_cursor_left(root, cursor, metrics);
while (true) {
const curr_egc, _, _ = root.ecg_at(cursor.row, cursor.col, metrics) catch return error.Stop;
const curr_egc, _, _ = root.egc_at(cursor.row, cursor.col, metrics) catch return error.Stop;
if (std.mem.eql(u8, curr_egc, egc))
return;
if (is_eol_left(root, cursor, metrics))
@ -3009,7 +3009,7 @@ pub const Editor = struct {
return error.Stop;
try move_cursor_right(root, cursor, metrics);
while (true) {
const curr_egc, _, _ = root.ecg_at(cursor.row, cursor.col, metrics) catch return error.Stop;
const curr_egc, _, _ = root.egc_at(cursor.row, cursor.col, metrics) catch return error.Stop;
if (std.mem.eql(u8, curr_egc, egc))
return;
if (is_eol_right(root, cursor, metrics))