summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 23:16:09 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 23:16:09 -0500
commit629ce76eb480d63fdd57769a0d9972a1a0c0fbea (patch)
treef66c3a19c9f16ba09607e8818d49ed6c12ad4003 /buffer.c
parent808b9a13cb5c71c28db6c842b78ef7f1743283cd (diff)
more documentation
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/buffer.c b/buffer.c
index 719c24e..176178d 100644
--- a/buffer.c
+++ b/buffer.c
@@ -2362,8 +2362,6 @@ Status buffer_load_file(TextBuffer *buffer, const char *path) {
return success;
}
-// Reloads the file loaded in the buffer.
-// Note that this clears undo history, etc.
void buffer_reload(TextBuffer *buffer) {
if (buffer_is_named_file(buffer)) {
BufferPos cursor_pos = buffer->cursor_pos;
@@ -2382,7 +2380,6 @@ void buffer_reload(TextBuffer *buffer) {
}
}
-// has this buffer been changed by another program since last save?
bool buffer_externally_changed(TextBuffer *buffer) {
if (!buffer_is_named_file(buffer))
return false;