]> Sergey Matveev's repositories - lynx-patches.git/blob - tmux-title0.patch
Initial commit
[lynx-patches.git] / tmux-title0.patch
1 --- src/GridText.c.orig 2017-07-04 20:27:07.000000000 +0300
2 +++ src/GridText.c      2019-11-19 18:51:34.136176000 +0300
3 @@ -1658,6 +1658,17 @@
4      if (!text)
5         return;
6  
7 +    /*
8 +     * Load the title field.  -FM
9 +     */
10 +    StrAllocCopy(title,
11 +                (HTAnchor_title(text->node_anchor) ?
12 +                 HTAnchor_title(text->node_anchor) : " "));    /* "" -> " " */
13 +    LYReduceBlanks(title);
14 +    printf("\033]2;%s\a\n", title);
15 +    lynx_force_repaint();
16 +    LYrefresh();
17 +
18      lynx_start_title_color();
19  #ifdef USE_COLOR_STYLE
20  /* turn the TITLE style on */
21 @@ -1667,14 +1678,6 @@
22         LynxChangeStyle(s_title, ABS_ON);
23      }
24  #endif /* USE_COLOR_STYLE */
25 -
26 -    /*
27 -     * Load the title field.  -FM
28 -     */
29 -    StrAllocCopy(title,
30 -                (HTAnchor_title(text->node_anchor) ?
31 -                 HTAnchor_title(text->node_anchor) : " "));    /* "" -> " " */
32 -    LYReduceBlanks(title);
33  
34      /*
35       * Generate the page indicator (percent) string.