|
Karsten Hopp |
81d0f2 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81d0f2 |
Subject: Patch 7.0.094
|
|
Karsten Hopp |
81d0f2 |
Fcc: outbox
|
|
Karsten Hopp |
81d0f2 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
81d0f2 |
Mime-Version: 1.0
|
|
Karsten Hopp |
81d0f2 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
81d0f2 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
81d0f2 |
------------
|
|
Karsten Hopp |
81d0f2 |
|
|
Karsten Hopp |
81d0f2 |
Patch 7.0.094
|
|
Karsten Hopp |
81d0f2 |
Problem: When a hidden buffer is made the current buffer and another file
|
|
Karsten Hopp |
81d0f2 |
edited later, the file message will still be given. Using
|
|
Karsten Hopp |
81d0f2 |
":silent" also doesn't prevent the file message. (Marvin Renich)
|
|
Karsten Hopp |
81d0f2 |
Solution: Reset the need_fileinfo flag when reading a file. Don't set
|
|
Karsten Hopp |
81d0f2 |
need_fileinfo when msg_silent is set.
|
|
Karsten Hopp |
81d0f2 |
Files: src/buffer.c, src/fileio.c
|
|
Karsten Hopp |
81d0f2 |
|
|
Karsten Hopp |
81d0f2 |
|
|
Karsten Hopp |
81d0f2 |
*** ../vim-7.0.093/src/buffer.c Tue Sep 5 16:29:38 2006
|
|
Karsten Hopp |
81d0f2 |
--- src/buffer.c Thu Sep 7 21:43:41 2006
|
|
Karsten Hopp |
81d0f2 |
***************
|
|
Karsten Hopp |
81d0f2 |
*** 1386,1392 ****
|
|
Karsten Hopp |
81d0f2 |
}
|
|
Karsten Hopp |
81d0f2 |
else
|
|
Karsten Hopp |
81d0f2 |
{
|
|
Karsten Hopp |
81d0f2 |
! need_fileinfo = TRUE; /* display file info after redraw */
|
|
Karsten Hopp |
81d0f2 |
(void)buf_check_timestamp(curbuf, FALSE); /* check if file changed */
|
|
Karsten Hopp |
81d0f2 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
81d0f2 |
curwin->w_topline = 1;
|
|
Karsten Hopp |
81d0f2 |
--- 1386,1393 ----
|
|
Karsten Hopp |
81d0f2 |
}
|
|
Karsten Hopp |
81d0f2 |
else
|
|
Karsten Hopp |
81d0f2 |
{
|
|
Karsten Hopp |
81d0f2 |
! if (!msg_silent)
|
|
Karsten Hopp |
81d0f2 |
! need_fileinfo = TRUE; /* display file info after redraw */
|
|
Karsten Hopp |
81d0f2 |
(void)buf_check_timestamp(curbuf, FALSE); /* check if file changed */
|
|
Karsten Hopp |
81d0f2 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
81d0f2 |
curwin->w_topline = 1;
|
|
Karsten Hopp |
81d0f2 |
*** ../vim-7.0.093/src/fileio.c Tue Aug 29 18:16:37 2006
|
|
Karsten Hopp |
81d0f2 |
--- src/fileio.c Wed Sep 6 22:54:19 2006
|
|
Karsten Hopp |
81d0f2 |
***************
|
|
Karsten Hopp |
81d0f2 |
*** 316,321 ****
|
|
Karsten Hopp |
81d0f2 |
--- 316,324 ----
|
|
Karsten Hopp |
81d0f2 |
* display the line. */
|
|
Karsten Hopp |
81d0f2 |
ex_no_reprint = TRUE;
|
|
Karsten Hopp |
81d0f2 |
|
|
Karsten Hopp |
81d0f2 |
+ /* don't display the file info for another buffer now */
|
|
Karsten Hopp |
81d0f2 |
+ need_fileinfo = FALSE;
|
|
Karsten Hopp |
81d0f2 |
+
|
|
Karsten Hopp |
81d0f2 |
/*
|
|
Karsten Hopp |
81d0f2 |
* For Unix: Use the short file name whenever possible.
|
|
Karsten Hopp |
81d0f2 |
* Avoids problems with networks and when directory names are changed.
|
|
Karsten Hopp |
81d0f2 |
*** ../vim-7.0.093/src/version.c Sat Sep 9 13:36:51 2006
|
|
Karsten Hopp |
81d0f2 |
--- src/version.c Sat Sep 9 14:19:04 2006
|
|
Karsten Hopp |
81d0f2 |
***************
|
|
Karsten Hopp |
81d0f2 |
*** 668,669 ****
|
|
Karsten Hopp |
81d0f2 |
--- 668,671 ----
|
|
Karsten Hopp |
81d0f2 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
81d0f2 |
+ /**/
|
|
Karsten Hopp |
81d0f2 |
+ 94,
|
|
Karsten Hopp |
81d0f2 |
/**/
|
|
Karsten Hopp |
81d0f2 |
|
|
Karsten Hopp |
81d0f2 |
--
|
|
Karsten Hopp |
81d0f2 |
ARTHUR: A scratch? Your arm's off!
|
|
Karsten Hopp |
81d0f2 |
BLACK KNIGHT: No, it isn't.
|
|
Karsten Hopp |
81d0f2 |
ARTHUR: Well, what's that then?
|
|
Karsten Hopp |
81d0f2 |
BLACK KNIGHT: I've had worse.
|
|
Karsten Hopp |
81d0f2 |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
81d0f2 |
|
|
Karsten Hopp |
81d0f2 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
81d0f2 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
81d0f2 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
81d0f2 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|