aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc.h')
-rw-r--r--src/doc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/doc.h b/src/doc.h
index 4ecfd21..3218a70 100644
--- a/src/doc.h
+++ b/src/doc.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012-2025 Robin Haberkorn
+ * Copyright (C) 2012-2026 Robin Haberkorn
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -33,6 +33,8 @@
*/
typedef struct teco_doc_scintilla_t teco_doc_scintilla_t;
+TECO_DECLARE_UNDO_OBJECT(doc_scintilla, teco_doc_scintilla_t *);
+
/**
* A Scintilla document.
*
@@ -108,7 +110,7 @@ void teco_doc_exchange(teco_doc_t *ctx, teco_doc_t *other);
static inline void
teco_doc_undo_exchange(teco_doc_t *ctx)
{
- teco_undo_ptr(ctx->doc);
+ teco_undo_object_doc_scintilla_push(&ctx->doc);
teco_doc_undo_reset(ctx);
}