1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-23 00:13:32 +01:00

a little better block cursor, broke i and a however a little

This commit is contained in:
Martin Stubenschrott
2007-09-08 15:21:11 +00:00
parent 91490f9bd5
commit 3c2abc2785
3 changed files with 37 additions and 11 deletions

View File

@@ -397,9 +397,9 @@ function Events() //{{{
else if (elem && elem instanceof HTMLTextAreaElement)
{
if (elem.selectionEnd - elem.selectionStart > 0)
vimperator.setMode(vimperator.modes.VISUAL, vimperator.modes.TEXTAREA);
vimperator.editor.startVisual();
else
vimperator.setMode(vimperator.modes.TEXTAREA);
vimperator.editor.startNormal();
vimperator.buffer.lastInputField = elem;
}
else
@@ -436,7 +436,7 @@ function Events() //{{{
else if (vimperator.hasMode(vimperator.modes.INSERT))
{
if(vimperator.hasMode(vimperator.modes.TEXTAREA))
vimperator.setMode(vimperator.modes.TEXTAREA);
vimperator.editor.stopInsert();
else
{
vimperator.editor.unselectText();