Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust copen height when enable useQuickfixForLocations #2414

Merged
merged 1 commit into from
Oct 9, 2020

Conversation

kevinhwang91
Copy link
Contributor

default height of copen is 10, if the items are less than 10,
we should set height manually to make the behavior like default coclist's.

default height of `copen` is 10, if the items are less than 10,
we should set height manually to make the behavior like default coclist's.
@@ -719,7 +719,9 @@ export class Workspace implements IWorkspace {
const preferences = this.getConfiguration('coc.preferences')
if (preferences.get<boolean>('useQuickfixForLocations', false)) {
let openCommand = await nvim.getVar('coc_quickfix_open_command') as string
nvim.command(typeof openCommand === 'string' ? openCommand : 'copen', true)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea why execute two times of openCommand. Could I delete it?

@chemzqm chemzqm merged commit fe735f3 into neoclide:master Oct 9, 2020
@kevinhwang91 kevinhwang91 deleted the fix-showlocation branch March 25, 2021 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants