mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
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.)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user