aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2025-11-23 20:05:59 -0700
committerRandy Palamar <randy@rnpnr.xyz>2025-11-24 05:25:54 -0700
commit5df02c199959b9da42baff0c876bf87125178ca0 (patch)
treea9f3be8b405006d3a92292bc1db3722c7279ec3e /vis-lua.c
parent1953c287ace801a6606abd6c3ead0ff345645bec (diff)
downloadvis-5df02c199959b9da42baff0c876bf87125178ca0.tar.gz
vis-5df02c199959b9da42baff0c876bf87125178ca0.tar.xz
text: remove a bunch of unused save functions
These functions were only used for testing the text system. One of them was moved to text-test.c to continue to facilitate this. Otherwise these functions are just cluttering up the code and making it hard to modify.
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-lua.c b/vis-lua.c
index f7e9001..695ebdb 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -2579,7 +2579,7 @@ static int file_newindex(lua_State *L) {
text_insert(file->text, 0, " ", 1);
text_delete(file->text, 0, 1);
} else {
- text_save(file->text, NULL);
+ text_mark_current_revision(file->text);
}
return 0;
}