From daf8886999641e9d7b89291e626f0da4d05d1442 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Tue, 28 Dec 2021 20:30:42 +0200 Subject: Added more build-time config --- src/Buffer.zig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Buffer.zig') diff --git a/src/Buffer.zig b/src/Buffer.zig index d7f051d..cb89935 100644 --- a/src/Buffer.zig +++ b/src/Buffer.zig @@ -1,4 +1,4 @@ -const es_config = @import("es-config"); +const conf = @import("es-config"); const std = @import("std"); const Allocator = std.mem.Allocator; @@ -193,7 +193,11 @@ pub fn drawRows(self: Buffer, writer: anytype, screenrows: usize, screencols: us } } } else if (self.rows.items.len == 0 and y == screenrows / 3) { - const welcome_data = try std.fmt.allocPrint(self.allocator, "ES -- version {}", .{es_config.es_version}); + const welcome_data = try std.fmt.allocPrint( + self.allocator, + "ES -- version {}", + .{conf.es_version}, + ); defer self.allocator.free(welcome_data); var welcome = welcome_data; if (welcome.len > screencols - 1) { -- cgit v1.2.3