« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui/form/FocusBox.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/form/FocusBox.js')
-rw-r--r--ui/form/FocusBox.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/form/FocusBox.js b/ui/form/FocusBox.js
index c259f23..51e961b 100644
--- a/ui/form/FocusBox.js
+++ b/ui/form/FocusBox.js
@@ -1,4 +1,4 @@
-const ansi = require('../../ansi')
+const ansi = require('../../util/ansi')
 
 const FocusElement = require('./FocusElement')
 
@@ -19,13 +19,13 @@ module.exports = class FocusBox extends FocusElement {
   }
 
   drawTo(writable) {
-    if (this.isSelected) {
+    if (this.isFocused) {
       writable.write(ansi.invert())
     }
   }
 
   didRenderTo(writable) {
-    if (this.isSelected) {
+    if (this.isFocused) {
       writable.write(ansi.resetAttributes())
     }
   }