]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
ply-terminal-emulator: Rename PLY_TERMINAL_SPACES_PER_TAB to PLY_TERMINAL_EMULATOR_SP...
authornerdopolis <bluescreen_avenger@verizon.net>
Sat, 9 Dec 2023 22:34:02 +0000 (17:34 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 11 Dec 2023 03:13:58 +0000 (22:13 -0500)
src/libply-splash-core/ply-terminal-emulator.c

index bc31d2d4757e6adc2f2eb335daf1ab4047fdb65c..6f83e314483de6d8ba97ee314a3aaee049fdf132 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <stdio.h>
 
-#define PLY_TERMINAL_SPACES_PER_TAB 8
+#define PLY_TERMINAL_EMULATOR_SPACES_PER_TAB 8
 
 /* Characters between 64 to 157 end the escape sequence strings (in testing)
  *  for i in $(seq 1 255)
@@ -907,9 +907,9 @@ on_escape_character_tab (ply_terminal_emulator_t *terminal_emulator,
         terminal_emulator->break_action = PLY_TERMINAL_EMULATOR_BREAK_STRING_ACTION_PRESERVE_CURSOR_COLUMN;
 
         if (terminal_emulator->cursor_column <= 0) {
-                pad_character_count = PLY_TERMINAL_SPACES_PER_TAB;
+                pad_character_count = PLY_TERMINAL_EMULATOR_SPACES_PER_TAB;
         } else {
-                pad_character_count = PLY_TERMINAL_SPACES_PER_TAB - (terminal_emulator->cursor_column % PLY_TERMINAL_SPACES_PER_TAB);
+                pad_character_count = PLY_TERMINAL_EMULATOR_SPACES_PER_TAB - (terminal_emulator->cursor_column % PLY_TERMINAL_EMULATOR_SPACES_PER_TAB);
         }
 
         ply_rich_text_get_mutable_span (terminal_emulator->current_line, &span);