Skip to content

Commit 161fc82

Browse files
author
DevXu
committed
1 parent 60567d6 commit 161fc82

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

content_scripts/command.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,8 @@ Command.show = function(search, value, complete) {
940940
Status.hide();
941941
}
942942
this.bar.style.display = 'inline-block';
943-
setTimeout(function() {
943+
// NOTE(tk) temp fix cf. https://github.com/1995eaton/chromium-vim/issues/691#L943
944+
var timerId = setInterval(function() {
944945
this.input.focus();
945946
if (complete !== null) {
946947
this.complete(value);
@@ -954,7 +955,7 @@ Command.show = function(search, value, complete) {
954955
// TODO: figure out why a842dd6 and fix for #527 are necessary
955956
// document.getSelection().collapseToEnd();
956957
document.getSelection().modify('move', 'right', 'lineboundary');
957-
958+
clearInterval(timerId);
958959
}
959960
// End temp fix
960961

@@ -1299,3 +1300,4 @@ Command.configureSettings = function(_settings) {
12991300
this.init(false);
13001301
}
13011302
};
1303+

content_scripts/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
top: 0;
1010
height: 100%;
1111
z-index: 2147483647 !important;
12+
color-scheme: auto;
1213
}
1314

1415
#cVim-link-container {

0 commit comments

Comments
 (0)