コード例 #1
0
ファイル: repl.c プロジェクト: mfikes/planck
void highlight_cancel() {
    if (hl_restore.id != 0) {
        struct hl_restore *hl_restore_tmp = malloc(sizeof(struct hl_restore));
        *hl_restore_tmp = hl_restore;
        do_highlight_restore(hl_restore_tmp);
    }
}
コード例 #2
0
ファイル: repl.c プロジェクト: yogthos/planck
void highlight_cancel() {
	if (hl_restore.should_restore) {
		do_highlight_restore(NULL);
	}
}