Commit 6620acbf authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: use a faster comparison

parent 1cb6619d
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1220,7 +1220,7 @@ void add_undo(undo_type action)
openfile->current->data[0] != '\0')
u->xflags = WAS_FINAL_BACKSPACE;
case DEL:
if (u->begin != strlen(openfile->current->data)) {
if (openfile->current->data[openfile->current_x] != '\0') {
char *char_buf = charalloc(mb_cur_max() + 1);
int char_len = parse_mbchar(&openfile->current->data[u->begin],
char_buf, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment