PATCH: tab line redrawn when 'bomb' is set

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

PATCH: tab line redrawn when 'bomb' is set

Lech Lorens
The attached patch causes the tab line to be redrawn with + indicating a
change to a file whenever 'bomb' is set.

--
Cheers,
Lech

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---


Index: src/option.c
===================================================================
--- src/option.c (revision 1341)
+++ src/option.c (working copy)
@@ -7119,6 +7119,9 @@
 #ifdef FEAT_MBYTE
     /* when 'bomb' is changed, redraw the window title */
     else if ((int *)varp == &curbuf->b_p_bomb)
+#ifdef FEAT_WINDOWS
+ redraw_tabline =
+#endif
  need_maketitle = TRUE;
 #endif
 #endif
@@ -7714,7 +7717,7 @@
  newFoldLevel();
     }
 
-    /* 'foldminlevel' */
+    /* 'foldminlines' */
     else if (pp == &curwin->w_p_fml)
     {
  foldUpdateAll(curwin);
Index: runtime/doc/todo.txt
===================================================================
--- runtime/doc/todo.txt (revision 1341)
+++ runtime/doc/todo.txt (working copy)
@@ -292,9 +292,6 @@
 Win32: using CTRL-S in Insert mode doesn't remove the "+" from the tab pages
 label.  (Tsakiridis, 2007 Feb 18)  Patch from Ian Kelling, 2008 Aug 6.
 
-When 'bomb' is changed the window title is updated to show/hide a "+", but the
-tab page label isn't. (Patrick Texier, 2008 Jun 24)
-
 Win32: using "gvim --remote-tab-silent fname" sometimes gives an empty screen
 with the more prompt.  Caused by setting the guitablabel?  (Thomas Michael
 Engelke, 2007 Dec 20 - 2008 Jan 17)
Reply | Threaded
Open this post in threaded view
|

Re: PATCH: tab line redrawn when 'bomb' is set

Bram Moolenaar


Lech Lorens wrote:

> The attached patch causes the tab line to be redrawn with + indicating a
> change to a file whenever 'bomb' is set.

Thanks!

--
hundred-and-one symptoms of being an internet addict:
35. Your husband tells you he's had the beard for 2 months.

 /// 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.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---