better separation of function pointers and void*
use CmdFunc typedef for generic command function pointers no longer use \e for escape use \033 instead use memcpy trick to prevent gcc warning on dlsym in -pedantic mode
This commit is contained in:
parent
cc1e3bae29
commit
04ebeb7606
6 changed files with 39 additions and 22 deletions
2
buffer.c
2
buffer.c
|
|
@ -825,7 +825,7 @@ void do_undo(EditState *s)
|
|||
if (!b->log_buffer)
|
||||
return;
|
||||
|
||||
if (s->qe_state->last_cmd_func != do_undo)
|
||||
if (s->qe_state->last_cmd_func != (CmdFunc)do_undo)
|
||||
b->log_current = 0;
|
||||
|
||||
if (b->log_current == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue