From f024337e5e0713fcdc37e0d662c862bb2574c97c Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 21 Feb 2015 23:02:08 +0100 Subject: Merged code from mode.c into main.c --- src/dom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dom.c') diff --git a/src/dom.c b/src/dom.c index e5e1fc1..5850cc1 100644 --- a/src/dom.c +++ b/src/dom.c @@ -20,7 +20,6 @@ #include "config.h" #include "main.h" #include "dom.h" -#include "mode.h" extern VbCore vb; @@ -208,7 +207,7 @@ static gboolean auto_insert(Element *element) * want to remove the content and force a switch to input mode. And to * switch to input mode when this is already active makes no sense. */ if (vb.mode->id == 'n' && dom_is_editable(element)) { - mode_enter('i'); + vb_enter('i'); return true; } -- cgit v1.2.3