Explorar o código

Fixed ANSI_CLS, no raw ansi in logs.

bugz %!s(int64=5) %!d(string=hai) anos
pai
achega
881d89d462
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mystic.cpp

+ 1 - 1
mystic.cpp

@@ -1436,7 +1436,7 @@ int mangle(int fd, char *buffer) {
         sprintf(display, "%s^F%s.^P3%s", needs_cls ? "\x1b[2J" : "\n\r\n\r",
                 possibles[r].filename, restore_color);
 
-        ZF_LOGI("mangle(ANSI_CLS): %d file inserted %s", r, display);
+        ZF_LOGI("mangle(ANSI_CLS): %d file inserted %s", r, repr(display));
 
         // Move the buffer so there's room for the display string.
         if (string_insert(buffer, BSIZE * 4, cp - buffer, display)) {