summaryrefslogtreecommitdiff
path: root/src/Buffer.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Buffer.zig')
-rw-r--r--src/Buffer.zig8
1 files changed, 6 insertions, 2 deletions
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 @@
1const es_config = @import("es-config"); 1const conf = @import("es-config");
2const std = @import("std"); 2const std = @import("std");
3 3
4const Allocator = std.mem.Allocator; 4const Allocator = std.mem.Allocator;
@@ -193,7 +193,11 @@ pub fn drawRows(self: Buffer, writer: anytype, screenrows: usize, screencols: us
193 } 193 }
194 } 194 }
195 } else if (self.rows.items.len == 0 and y == screenrows / 3) { 195 } else if (self.rows.items.len == 0 and y == screenrows / 3) {
196 const welcome_data = try std.fmt.allocPrint(self.allocator, "ES -- version {}", .{es_config.es_version}); 196 const welcome_data = try std.fmt.allocPrint(
197 self.allocator,
198 "ES -- version {}",
199 .{conf.es_version},
200 );
197 defer self.allocator.free(welcome_data); 201 defer self.allocator.free(welcome_data);
198 var welcome = welcome_data; 202 var welcome = welcome_data;
199 if (welcome.len > screencols - 1) { 203 if (welcome.len > screencols - 1) {