diff options
| author | Stephen Blott | 2016-02-20 08:53:47 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-02-20 08:53:47 +0000 |
| commit | e6200864be1bad085ae80e0a0c51d077ca1289a5 (patch) | |
| tree | f31251bbbac6bad2cd24f8ae22962450855c0cf4 /content_scripts | |
| parent | aaad228ca659f0d3d29b732df26b9770a3dea89c (diff) | |
| parent | 8cf72842ad516cba7eb161ae650d48a298e55442 (diff) | |
| download | vimium-e6200864be1bad085ae80e0a0c51d077ca1289a5.tar.bz2 | |
Merge pull request #2000 from smblott-github/hide-HUD-in-insert-mode-only
hideHUD option applies to insert mode only.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/hud.coffee | 3 | ||||
| -rw-r--r-- | content_scripts/mode_insert.coffee | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee index 5a3d9b79..453d6522 100644 --- a/content_scripts/hud.coffee +++ b/content_scripts/hud.coffee @@ -87,8 +87,7 @@ HUD = DomUtils.documentReady -> ready = true -> ready and document.body != null - # A preference which can be toggled in the Options page. */ - enabled: -> !Settings.get("hideHud") + enabled: -> true class Tween opacity: 0 diff --git a/content_scripts/mode_insert.coffee b/content_scripts/mode_insert.coffee index a35633ac..93615b8f 100644 --- a/content_scripts/mode_insert.coffee +++ b/content_scripts/mode_insert.coffee @@ -30,7 +30,7 @@ class InsertMode extends Mode defaults = name: "insert" - indicator: if @permanent then null else "Insert mode" + indicator: if not @permanent and not Settings.get "hideHud" then "Insert mode" keypress: handleKeyEvent keyup: handleKeyEvent keydown: handleKeyEvent |
