summaryrefslogtreecommitdiff
path: root/usr.bin/vim/screen.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-10-14 03:56:09 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-10-14 03:56:09 +0000
commit0a64da4f22aa6e7dc9ce23604386381860186ad4 (patch)
tree532d8d1430151973edf5c77219a3c0c08afbd3d4 /usr.bin/vim/screen.c
parent6ddf388c16e872b21b49b92394473229e943f96e (diff)
Backout a previous change that didn't work, and update to version 4.5.
Diffstat (limited to 'usr.bin/vim/screen.c')
-rw-r--r--usr.bin/vim/screen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vim/screen.c b/usr.bin/vim/screen.c
index dbf54324566..331f0305a7a 100644
--- a/usr.bin/vim/screen.c
+++ b/usr.bin/vim/screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen.c,v 1.2 1996/09/21 06:23:18 downsj Exp $ */
+/* $OpenBSD: screen.c,v 1.3 1996/10/14 03:55:27 downsj Exp $ */
/* vi:set ts=4 sw=4:
*
* VIM - Vi IMproved by Bram Moolenaar
@@ -2985,14 +2985,14 @@ showmode()
if (edit_submode_extra != NULL)
{
msg_outchar(' '); /* add a space in between */
- if (edit_submode_highl)
+ if (edit_submode_highl != NUL)
{
stop_highlight();
- set_highlight('r'); /* Highlight mode */
+ set_highlight(edit_submode_highl); /* Highlight mode */
start_highlight();
}
msg_outstr(edit_submode_extra);
- if (edit_submode_highl)
+ if (edit_submode_highl != NUL)
{
stop_highlight();
set_highlight('M'); /* Highlight mode */