From 639d912c886214f8b6562a52283e638e1067757b Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Tue, 27 Jan 2015 20:22:47 +0800 Subject: [PATCH] Display correct mode on first empty buffer. --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 8c77304..f2bb3e0 100644 --- a/main.c +++ b/main.c @@ -315,8 +315,10 @@ int main(int argc, char **argv) if (firstfile == FALSE && readfirst_f()) { swbuffer(firstbp); zotbuf(bp); - } else + } else { bp->b_mode |= gmode; + upmode() ; + } /* Deal with startup gotos and searches */ if( gotoflag && searchflag)