Skip to content

Commit

Permalink
#297 don't move cursor to end of query on refresh kicked by inline qu…
Browse files Browse the repository at this point in the history
…ery modification
  • Loading branch information
t9md committed Jun 11, 2018
1 parent 99920e5 commit 79e5c41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,9 @@ class Ui {

if (selectFirstItem || !oldSelectedItem) {
this.items.selectFirstNormalItem()
this.moveToPrompt()
if (!wasAtPrompt) {
this.moveToPrompt()
}
} else {
this.items.selectEqualLocationItem(oldSelectedItem)
if (!this.items.hasSelectedItem()) {
Expand Down

0 comments on commit 79e5c41

Please sign in to comment.