Update window title on drag and dropping files into Gvim

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Update window title on drag and dropping files into Gvim

Hari G-2
Hi,

When files are drag and dropped the window title is not updated
immediately but only after the window is clicked or such. The
following diff fixes this:

diff -r a8afba7027ae -r 8f21db06a673 src/gui.c
--- a/src/gui.c
+++ b/src/gui.c
@@ -5281,6 +5281,9 @@
 # ifdef FEAT_MENU
        gui_update_menus(0);
 # endif
+#ifdef FEAT_TITLE
+       maketitle();
+#endif
        setcursor();
        out_flush();
        gui_update_cursor(FALSE, FALSE);

/harig

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Update window title on drag and dropping files into Gvim

Bram Moolenaar

Hari G wrote:

> When files are drag and dropped the window title is not updated
> immediately but only after the window is clicked or such. The
> following diff fixes this:

Thanks, I'll include it in the 7.3 branch.

--
How many light bulbs does it take to change a person?

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php