From 8b46e842637a2dfdb3fcaf1f2b775ff4b6b5bb1c Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 12 Jul 2016 21:42:10 -0700 Subject: [PATCH] Use correct .terminal-cursor for composition view --- src/xterm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.js b/src/xterm.js index f9b9786f..e9e6ec9b 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -259,7 +259,7 @@ * Updates the composition view's position. */ CompositionHelper.prototype.updateCompositionViewPosition = function() { - var cursor = document.querySelector('.terminal-cursor'); + var cursor = this.terminal.element.querySelector('.terminal-cursor'); term.compositionView.style.left = cursor.offsetLeft + 'px'; term.compositionView.style.top = cursor.offsetTop + 'px'; };