degesch: fix a pointer operation in the libedit layer
This commit is contained in:
parent
d29317b29c
commit
a48023553e
|
@ -1016,7 +1016,8 @@ input_el__restore_buffer (struct input_el *self, struct input_el_buffer *buffer)
|
||||||
el_winsertstr (self->editline, buffer->saved_line);
|
el_winsertstr (self->editline, buffer->saved_line);
|
||||||
el_cursor (self->editline,
|
el_cursor (self->editline,
|
||||||
-(buffer->saved_len - buffer->saved_point));
|
-(buffer->saved_len - buffer->saved_point));
|
||||||
cstr_set (&buffer->saved_line, NULL);
|
free (buffer->saved_line);
|
||||||
|
buffer->saved_line = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue