From 8f1621bb6f1589e2bb287a3deaa13da4cfd0ba9f Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sun, 4 Jan 2009 22:13:48 +0100 Subject: [PATCH] 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). --- src/MacVim/MMAppController.m | 2 +- src/MacVim/MMBackend.m | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/MacVim/MMAppController.m b/src/MacVim/MMAppController.m index 93fe8a48..a8b1e273 100644 --- a/src/MacVim/MMAppController.m +++ b/src/MacVim/MMAppController.m @@ -808,7 +808,7 @@ fsEventCallback(ConstFSEventStreamRef streamRef, NSString *input = [NSString stringWithFormat:@"" ":let oldswb=&swb|let &swb=\"useopen,usetab\"|" "tab sb %@|let &swb=oldswb|unl oldswb|" - "cal foreground()|redr|f", firstFile]; + "cal foreground()", firstFile]; [firstController addVimInput:input]; diff --git a/src/MacVim/MMBackend.m b/src/MacVim/MMBackend.m index e53f2101..97d4ddcf 100644 --- a/src/MacVim/MMBackend.m +++ b/src/MacVim/MMBackend.m @@ -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"]; + [self addInput:@"|let &su=mvim_oldsu|unlet mvim_oldsu"]; } 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"]; + [self addInput:@""]; } // Force screen redraw (does it have to be this complicated?). -- 2.11.4.GIT