From fc9b372d8c8a06fdc02e542bc026f9fd4409462a Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Wed, 7 Nov 2007 19:46:46 +0100 Subject: [PATCH] Always open a dropped file in new tab Always use ":tab drop" when dropping files. (Used to call ":drop" when only one file was dropped but this would not open the file in a new tab.) --- src/MacVim/MMBackend.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/MacVim/MMBackend.m b/src/MacVim/MMBackend.m index adef0292..b440f2b0 100644 --- a/src/MacVim/MMBackend.m +++ b/src/MacVim/MMBackend.m @@ -2010,9 +2010,7 @@ enum { // HACK! I'm not sure how to get Vim to open a list of files in // tabs, so instead I create a ':tab drop' command with all the // files to open and execute it. - NSMutableString *cmd = (n > 1) - ? [NSMutableString stringWithString:@":tab drop"] - : [NSMutableString stringWithString:@":drop"]; + NSMutableString *cmd = [NSMutableString stringWithString:@":tab drop"]; int i; for (i = 0; i < n && bytes < end; ++i) { -- 2.11.4.GIT