mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Deprecate "redr|f" in addInput: calls
The previous commit ensures these are no longer neeeded (they used to be there to avoid the "Press ENTER..." prompt).
This commit is contained in:
@@ -808,7 +808,7 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
|
||||
NSString *input = [NSString stringWithFormat:@"<C-\\><C-N>"
|
||||
":let oldswb=&swb|let &swb=\"useopen,usetab\"|"
|
||||
"tab sb %@|let &swb=oldswb|unl oldswb|"
|
||||
"cal foreground()|redr|f<CR>", firstFile];
|
||||
"cal foreground()<CR>", firstFile];
|
||||
|
||||
[firstController addVimInput:input];
|
||||
|
||||
|
||||
@@ -2420,10 +2420,7 @@ static NSString *MMSymlinkWarningString =
|
||||
[self addInput:@"|vert sall"];
|
||||
|
||||
// Restore the old value of 'suffixes'.
|
||||
[self addInput:@"|let &su=mvim_oldsu|unlet mvim_oldsu"];
|
||||
|
||||
// Adding "|redr|f" ensures a "Hit ENTER" prompt is not shown.
|
||||
[self addInput:@"|redr|f<CR>"];
|
||||
[self addInput:@"|let &su=mvim_oldsu|unlet mvim_oldsu<CR>"];
|
||||
} else {
|
||||
// When opening one file we try to reuse the current window,
|
||||
// but not if its buffer is modified or has a filename.
|
||||
@@ -2454,9 +2451,7 @@ static NSString *MMSymlinkWarningString =
|
||||
}
|
||||
|
||||
[self addInput:cmd];
|
||||
|
||||
// Adding "|redr|f" ensures a "Hit ENTER" prompt is not shown.
|
||||
[self addInput:@"|redr|f<CR>"];
|
||||
[self addInput:@"<CR>"];
|
||||
}
|
||||
|
||||
// Force screen redraw (does it have to be this complicated?).
|
||||
|
||||
Reference in New Issue
Block a user