]> Sergey Matveev's repositories - lynx-patches.git/blob - tmux-title1.patch
Initial commit
[lynx-patches.git] / tmux-title1.patch
1 --- src/LYMainLoop.c.orig       2019-12-17 14:28:07.862894000 +0300
2 +++ src/LYMainLoop.c    2019-12-17 14:28:14.917631000 +0300
3 @@ -7179,12 +7179,14 @@
4         case LYK_QUIT:          /* quit */
5             if (handle_LYK_QUIT()) {
6                 CleanupMainLoop();
7 +        printf("\033]2;\033\\");
8                 return (EXIT_SUCCESS);
9             }
10             break;
11  
12         case LYK_ABORT: /* don't ask the user about quitting */
13             CleanupMainLoop();
14 +        printf("\033]2;\033\\");
15             return (EXIT_SUCCESS);
16  
17         case LYK_NEXT_PAGE:     /* next page */
18 @@ -7427,6 +7429,7 @@
19             switch (handle_PREV_DOC(&cmd, &old_c, real_c)) {
20             case 1:
21                 CleanupMainLoop();
22 +        printf("\033]2;\033\\");
23                 return (EXIT_SUCCESS);
24             case 2:
25                 goto new_cmd;