1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 16:45:45 +01:00

Add gu, gU. Fix some editor issues and annoyances. Better undo support. Don't push TEXT_EDIT mode multiple times with noinsertmode set. Update NEWS.

This commit is contained in:
Kris Maglione
2011-10-04 22:45:59 -04:00
parent 3296675dcc
commit 603b05ce18
4 changed files with 218 additions and 120 deletions

View File

@@ -867,7 +867,7 @@ var Events = Module("events", {
if (!haveInput)
if (options["insertmode"])
modes.push(modes.INSERT);
else {
else if (!isinstance(modes.main, [modes.TEXT_EDIT, modes.VISUAL])) {
modes.push(modes.TEXT_EDIT);
if (elem.selectionEnd - elem.selectionStart > 0)
modes.push(modes.VISUAL);