vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a35d8138c1b460c6cad6ee9a2fe36bed20c5ed4f parent 2e84f42f0171c3f989b0b5a88d75485b42946ffb Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 30 Sep 2020 10:23:19 +0200 text: mark text_modified argument as const Diffstat:
| M | text.c | | | 2 | +- |
| M | text.h | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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 @@ -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