aboutsummaryrefslogtreecommitdiff
path: root/src/console/components/console.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/components/console.jsx')
-rw-r--r--src/console/components/console.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/console/components/console.jsx b/src/console/components/console.jsx
index 23c93e3..7994f78 100644
--- a/src/console/components/console.jsx
+++ b/src/console/components/console.jsx
@@ -6,6 +6,8 @@ import Completion from './console/completion';
import Message from './console/message';
import * as consoleActions from '../../console/actions/console';
+const COMPLETION_MAX_ITEMS = 33;
+
class ConsoleComponent extends Component {
onBlur() {
if (this.props.mode === 'command' || this.props.mode === 'find') {
@@ -105,7 +107,11 @@ class ConsoleComponent extends Component {
case 'command':
case 'find':
return <div className='vimvixen-console-command-wrapper'>
- <Completion />
+ <Completion
+ size={COMPLETION_MAX_ITEMS}
+ completions={this.props.completions}
+ select={this.props.select}
+ />
<Input
ref={(c) => { this.input = c; }}
mode={this.props.mode}