aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text.c2
-rw-r--r--text.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/text.c b/text.c
index d156c8a..486e085 100644
--- a/text.c
+++ b/text.c
@@ -1375,7 +1375,7 @@ void text_free(Text *txt) {
free(txt);
}
-bool text_modified(Text *txt) {
+bool text_modified(const Text *txt) {
return txt->saved_revision != txt->history;
}
diff --git a/text.h b/text.h
index f66df86..17445fc 100644
--- a/text.h
+++ b/text.h
@@ -132,7 +132,7 @@ size_t text_size(Text*);
*/
struct stat text_stat(const Text*);
/** Query whether the text contains any unsaved modifications. */
-bool text_modified(Text*);
+bool text_modified(const Text*);
/**
* @}
* @defgroup modify