From 064f2d7ac6b9c9efb56ffba0fa4971619f95f022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 25 Apr 2016 08:48:59 +0200 Subject: vis-lua: add file.modified property --- vis-lua.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vis-lua.c') diff --git a/vis-lua.c b/vis-lua.c index 50d0596..3a68fd9 100644 --- a/vis-lua.c +++ b/vis-lua.c @@ -822,6 +822,11 @@ static int file_index(lua_State *L) { lua_pushunsigned(L, text_size(file->text)); return 1; } + + if (strcmp(key, "modified") == 0) { + lua_pushboolean(L, text_modified(file->text)); + return 1; + } } return index_common(L); -- cgit v1.2.3