|
Karsten Hopp |
5111c2 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
5111c2 |
Subject: patch 7.1.124
|
|
Karsten Hopp |
5111c2 |
Fcc: outbox
|
|
Karsten Hopp |
5111c2 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5111c2 |
Mime-Version: 1.0
|
|
Karsten Hopp |
5111c2 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
5111c2 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5111c2 |
------------
|
|
Karsten Hopp |
5111c2 |
|
|
Karsten Hopp |
5111c2 |
Patch 7.1.124 (extra)
|
|
Karsten Hopp |
5111c2 |
Problem: Mac: When dropping a file on Vim.app that is already in the buffer
|
|
Karsten Hopp |
5111c2 |
list (from .viminfo) results in editing an empty, unnamed buffer.
|
|
Karsten Hopp |
5111c2 |
(Axel Kielhorn) Also: warning for unused variable.
|
|
Karsten Hopp |
5111c2 |
Solution: Move to the buffer of the first agument. Delete unused variable.
|
|
Karsten Hopp |
5111c2 |
Files: src/gui_mac.c
|
|
Karsten Hopp |
5111c2 |
|
|
Karsten Hopp |
5111c2 |
|
|
Karsten Hopp |
5111c2 |
*** ../vim-7.1.123/src/gui_mac.c Thu Aug 30 12:50:00 2007
|
|
Karsten Hopp |
5111c2 |
--- src/gui_mac.c Sat Sep 29 13:12:26 2007
|
|
Karsten Hopp |
5111c2 |
***************
|
|
Karsten Hopp |
5111c2 |
*** 1046,1051 ****
|
|
Karsten Hopp |
5111c2 |
--- 1046,1052 ----
|
|
Karsten Hopp |
5111c2 |
{
|
|
Karsten Hopp |
5111c2 |
int i;
|
|
Karsten Hopp |
5111c2 |
char_u *p;
|
|
Karsten Hopp |
5111c2 |
+ int fnum = -1;
|
|
Karsten Hopp |
5111c2 |
|
|
Karsten Hopp |
5111c2 |
/* these are the initial files dropped on the Vim icon */
|
|
Karsten Hopp |
5111c2 |
for (i = 0 ; i < numFiles; i++)
|
|
Karsten Hopp |
5111c2 |
***************
|
|
Karsten Hopp |
5111c2 |
*** 1055,1060 ****
|
|
Karsten Hopp |
5111c2 |
--- 1056,1073 ----
|
|
Karsten Hopp |
5111c2 |
mch_exit(2);
|
|
Karsten Hopp |
5111c2 |
else
|
|
Karsten Hopp |
5111c2 |
alist_add(&global_alist, p, 2);
|
|
Karsten Hopp |
5111c2 |
+ if (fnum == -1)
|
|
Karsten Hopp |
5111c2 |
+ fnum = GARGLIST[GARGCOUNT - 1].ae_fnum;
|
|
Karsten Hopp |
5111c2 |
+ }
|
|
Karsten Hopp |
5111c2 |
+
|
|
Karsten Hopp |
5111c2 |
+ /* If the file name was already in the buffer list we need to switch
|
|
Karsten Hopp |
5111c2 |
+ * to it. */
|
|
Karsten Hopp |
5111c2 |
+ if (curbuf->b_fnum != fnum)
|
|
Karsten Hopp |
5111c2 |
+ {
|
|
Karsten Hopp |
5111c2 |
+ char_u cmd[30];
|
|
Karsten Hopp |
5111c2 |
+
|
|
Karsten Hopp |
5111c2 |
+ vim_snprintf((char *)cmd, 30, "silent %dbuffer", fnum);
|
|
Karsten Hopp |
5111c2 |
+ do_cmdline_cmd(cmd);
|
|
Karsten Hopp |
5111c2 |
}
|
|
Karsten Hopp |
5111c2 |
|
|
Karsten Hopp |
5111c2 |
/* Change directory to the location of the first file. */
|
|
Karsten Hopp |
5111c2 |
***************
|
|
Karsten Hopp |
5111c2 |
*** 2920,2926 ****
|
|
Karsten Hopp |
5111c2 |
/* TODO: Move most of this stuff toward gui_mch_init */
|
|
Karsten Hopp |
5111c2 |
Rect windRect;
|
|
Karsten Hopp |
5111c2 |
MenuHandle pomme;
|
|
Karsten Hopp |
5111c2 |
- long gestalt_rc;
|
|
Karsten Hopp |
5111c2 |
EventTypeSpec eventTypeSpec;
|
|
Karsten Hopp |
5111c2 |
EventHandlerRef mouseWheelHandlerRef;
|
|
Karsten Hopp |
5111c2 |
#ifdef USE_CARBONKEYHANDLER
|
|
Karsten Hopp |
5111c2 |
--- 2933,2938 ----
|
|
Karsten Hopp |
5111c2 |
*** ../vim-7.1.123/src/version.c Wed Sep 26 22:35:06 2007
|
|
Karsten Hopp |
5111c2 |
--- src/version.c Sat Sep 29 13:13:16 2007
|
|
Karsten Hopp |
5111c2 |
***************
|
|
Karsten Hopp |
5111c2 |
*** 668,669 ****
|
|
Karsten Hopp |
5111c2 |
--- 668,671 ----
|
|
Karsten Hopp |
5111c2 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5111c2 |
+ /**/
|
|
Karsten Hopp |
5111c2 |
+ 124,
|
|
Karsten Hopp |
5111c2 |
/**/
|
|
Karsten Hopp |
5111c2 |
|
|
Karsten Hopp |
5111c2 |
--
|
|
Karsten Hopp |
5111c2 |
ERIC IDLE PLAYED: THE DEAD COLLECTOR, MR BINT (A VILLAGE NE'ER-DO -WELL VERY
|
|
Karsten Hopp |
5111c2 |
KEEN ON BURNING WITCHES), SIR ROBIN, THE GUARD WHO DOESN'T
|
|
Karsten Hopp |
5111c2 |
HICOUGH BUT TRIES TO GET THINGS STRAIGHT, CONCORDE (SIR
|
|
Karsten Hopp |
5111c2 |
LAUNCELOT'S TRUSTY STEED), ROGER THE SHRUBBER (A SHRUBBER),
|
|
Karsten Hopp |
5111c2 |
BROTHER MAYNARD
|
|
Karsten Hopp |
5111c2 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
5111c2 |
|
|
Karsten Hopp |
5111c2 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5111c2 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5111c2 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
5111c2 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|