diff options
| author | Albert Cervin <albert@acervin.com> | 2024-11-10 23:11:36 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2024-11-10 23:11:36 +0100 |
| commit | 8722f48831c385245f5f78462159d2785a2d4323 (patch) | |
| tree | d235e157289354a0540d619f3072b9fb84921de2 /src/dged/display.h | |
| parent | 4764653ba333f015bc2f87fd2248aab6b6185868 (diff) | |
| download | dged-8722f48831c385245f5f78462159d2785a2d4323.tar.gz dged-8722f48831c385245f5f78462159d2785a2d4323.tar.xz dged-8722f48831c385245f5f78462159d2785a2d4323.zip | |
Render tabs using the correct tab width
Previously, the code assumed 4.
Diffstat (limited to 'src/dged/display.h')
| -rw-r--r-- | src/dged/display.h | 3 |
1 files changed, 2 insertions, 1 deletions
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. |
