#include "ex.h"
#include "input.h"
#include "map.h"
-#include "pass.h"
#include "bookmark.h"
#include "js.h"
#include "autocmd.h"
return res;
}
+/**
+ * Function called when vimb enters the passthrough mode.
+ */
+void pass_enter(void)
+{
+ vb_update_mode_label("-- PASS THROUGH --");
+}
+
+/**
+ * Called when passthrough mode is left.
+ */
+void pass_leave(void)
+{
+ vb_update_mode_label("");
+}
+
+VbResult pass_keypress(int key)
+{
+ if (key == CTRL('[')) { /* esc */
+ mode_enter('n');
+ }
+ vb.state.processed_key = false;
+ return RESULT_COMPLETE;
+}
+
static VbResult normal_clear_input(const NormalCmdInfo *info)
{
gtk_widget_grab_focus(GTK_WIDGET(vb.gui.webview));
void normal_enter(void);
void normal_leave(void);
VbResult normal_keypress(int key);
+void pass_enter(void);
+void pass_leave(void);
+VbResult pass_keypress(int key);
#endif /* end of include guard: _NORMAL_H */
+++ /dev/null
-/**
- * vimb - a webkit based vim like browser.
- *
- * Copyright (C) 2012-2014 Daniel Carl
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/.
- */
-
-#include "config.h"
-#include "main.h"
-#include "pass.h"
-#include "mode.h"
-#include "dom.h"
-#include "ascii.h"
-
-extern VbCore vb;
-
-
-/**
- * Function called when vimb enters the passthrough mode.
- */
-void pass_enter(void)
-{
- vb_update_mode_label("-- PASS THROUGH --");
-}
-
-/**
- * Called when passthrough mode is left.
- */
-void pass_leave(void)
-{
- vb_update_mode_label("");
-}
-
-VbResult pass_keypress(int key)
-{
- if (key == CTRL('[')) { /* esc */
- mode_enter('n');
- }
- vb.state.processed_key = false;
- return RESULT_COMPLETE;
-}
+++ /dev/null
-/**
- * vimb - a webkit based vim like browser.
- *
- * Copyright (C) 2012-2014 Daniel Carl
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/.
- */
-
-#ifndef _PASS_H
-#define _PASS_H
-
-#include "config.h"
-#include "main.h"
-
-void pass_enter(void);
-void pass_leave(void);
-VbResult pass_keypress(int key);
-
-#endif /* end of include guard: _PASS_H */