Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXu committed Mar 1, 2023
1 parent 60567d6 commit f64d87d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content_scripts/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,8 @@ Command.show = function(search, value, complete) {
Status.hide();
}
this.bar.style.display = 'inline-block';
setTimeout(function() {
// NOTE(tk) temp fix cf. https://github.com/1995eaton/chromium-vim/issues/691#L943
var timerId = setInterval(function() {
this.input.focus();
if (complete !== null) {
this.complete(value);
Expand All @@ -954,7 +955,7 @@ Command.show = function(search, value, complete) {
// TODO: figure out why a842dd6 and fix for #527 are necessary
// document.getSelection().collapseToEnd();
document.getSelection().modify('move', 'right', 'lineboundary');

clearInterval(timerId);
}
// End temp fix

Expand Down Expand Up @@ -1299,3 +1300,4 @@ Command.configureSettings = function(_settings) {
this.init(false);
}
};

1 change: 1 addition & 0 deletions content_scripts/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
top: 0;
height: 100%;
z-index: 2147483647 !important;
color-scheme: auto;
}

#cVim-link-container {
Expand Down

0 comments on commit f64d87d

Please sign in to comment.