--- src/LYMainLoop.c.orig 2019-12-17 14:28:07.862894000 +0300 +++ src/LYMainLoop.c 2019-12-17 14:28:14.917631000 +0300 @@ -7179,12 +7179,14 @@ case LYK_QUIT: /* quit */ if (handle_LYK_QUIT()) { CleanupMainLoop(); + printf("\033]2;\033\\"); return (EXIT_SUCCESS); } break; case LYK_ABORT: /* don't ask the user about quitting */ CleanupMainLoop(); + printf("\033]2;\033\\"); return (EXIT_SUCCESS); case LYK_NEXT_PAGE: /* next page */ @@ -7427,6 +7429,7 @@ switch (handle_PREV_DOC(&cmd, &old_c, real_c)) { case 1: CleanupMainLoop(); + printf("\033]2;\033\\"); return (EXIT_SUCCESS); case 2: goto new_cmd;