Re: [5.7.030] Question about "set titlestring" [patch]
- Peter Fales wrote:
> Where does the default titlestring come from? Is it possible that youWhen 'titlestring' is empty, Vim uses a default way to make the title.
> have a "set titlestring" either in your personal .vimrc or the system-wide
> file? We have a system-wide file that has slowly evolved over time. As
> near as I can tell, there is no 'standard' file that is provided with
> vim. Ours is partly based on the vimrc_example file, but that file doesn't
> include a set titlestring. If it works for you and it's not coming
> from the vimrc file, then it must be getting set in the code. However, it's
> not obvious to me where this happens. Do you know?
> I ran my test using both (real) xterm and rxvt. Both behave the sameI don't know what I did last time, but now I can reproduce the problem.
> way. When vim is started, the window title is not changed. But, as soon
> as I do "set title" the label turns blank (unless I also do a "set
It's a simple bug in maketitle(). This patch should fix it:
*** buffer.c~ Tue Apr 24 10:16:54 2001
--- buffer.c Wed May 2 11:11:37 2001
*** 2041,2046 ****
--- 2041,2047 ----
t_str += STRLEN(t_str);
*t_str = NUL;
+ t_str = buf;
mustset = ti_change(t_str, &lasttitle);
hundred-and-one symptoms of being an internet addict:
35. Your husband tells you he's had the beard for 2 months.
/// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///