aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-10 22:23:36 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-10 22:28:36 +0100
commit835cef65fdc886bcda74a1b66649a78aa8f00d3c (patch)
tree0c193d9b3f5c1908c01e80128db72143eaa63b73 /vis-lua.c
parentd0bf693ea5c1343495d627844c9e52f63cf0cca9 (diff)
downloadvis-835cef65fdc886bcda74a1b66649a78aa8f00d3c.tar.gz
vis-835cef65fdc886bcda74a1b66649a78aa8f00d3c.tar.xz
vis-lua: change misnamed attribute values of `file.newlines`
Also rename underlying C code.
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 8431111..7e40585 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -53,7 +53,7 @@ static void window_status_update(Vis *vis, Win *win) {
vis_macro_recording(vis) ? " @": "");
left_count++;
- if (text_newline_type(txt) != TEXT_NEWLINE_NL)
+ if (text_newline_type(txt) != TEXT_NEWLINE_LF)
strcpy(right_parts[right_count++], "␊");
int cursor_count = view_cursors_count(view);
@@ -1085,11 +1085,11 @@ static int file_index(lua_State *L) {
if (strcmp(key, "newlines") == 0) {
switch (text_newline_type(file->text)) {
- case TEXT_NEWLINE_NL:
- lua_pushstring(L, "nl");
+ case TEXT_NEWLINE_LF:
+ lua_pushstring(L, "lf");
break;
- case TEXT_NEWLINE_CRNL:
- lua_pushstring(L, "crnl");
+ case TEXT_NEWLINE_CRLF:
+ lua_pushstring(L, "crlf");
break;
default:
lua_pushnil(L);