From 8722f48831c385245f5f78462159d2785a2d4323 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Sun, 10 Nov 2024 23:11:36 +0100 Subject: Render tabs using the correct tab width Previously, the code assumed 4. --- src/dged/display.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dged/display.h') diff --git a/src/dged/display.h b/src/dged/display.h index 950ab3c..cfa2eca 100644 --- a/src/dged/display.h +++ b/src/dged/display.h @@ -103,12 +103,13 @@ void display_end_render(struct display *display); * @param xoffset Column offset to apply to all operations in the list. * @param yoffset Row offset to apply to all operations in the list. * @param name Name for the command list. Useful for debugging. + * @param tab_width Number of characters to use for displaying tabs. * @returns A pointer to the created command list. */ struct command_list *command_list_create(uint32_t capacity, void *(*allocator)(size_t), uint32_t xoffset, uint32_t yoffset, - const char *name); + uint32_t tab_width, const char *name); /** * Enable/disable rendering of whitespace characters. -- cgit v1.2.3