Commit Diff


commit - 185836d0dc69558b57f7c96d13febefa9815df26
commit + 7e6c684544699c618e628036b07e71765bc794d4
blob - cc62987b46b99f3029567b1ff981144f96282f05
blob + b4e4814a224399b2a700d820b0810c584894396d
--- lsblk.c
+++ lsblk.c
@@ -280,12 +280,12 @@ static void print_disk (
     const struct padding *p
 ) {
     if (fields & FIELD_NAME) {
-        const char *prefix = raidstatus ? "│ └─" : "";
+        const char *prefix = raidstatus ? (options & OPT_NOUNICODE ? "    " : "│ └─") : "";
 
         printf (
             "%s%-*s ",
             prefix,
-            p->name - (int)strlen (prefix),
+            p->name - (raidstatus ? 4 : 0),
             disk->name
         );
     }