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 opts.close for window.showDialog #4835

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Conversation

gera2ld
Copy link
Contributor

@gera2ld gera2ld commented Dec 18, 2023

Currently if close: false is passed, it won't be set to opts.

if (close || typeof close === 'undefined') opts.close = 1

As a result, coc#dialog#create_dialog will consider opts.close not set and use 1 as a fallback.

\ 'close': get(a:config, 'close', 1),

This PR makes sure opts.close = 0 is properly set.

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e108777) 98.64% compared to head (ab5650e) 98.64%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4835   +/-   ##
=======================================
  Coverage   98.64%   98.64%           
=======================================
  Files         273      273           
  Lines       25981    25981           
  Branches     5390     5390           
=======================================
+ Hits        25628    25630    +2     
+ Misses        204      202    -2     
  Partials      149      149           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fannheyward fannheyward merged commit f82e420 into neoclide:master Dec 18, 2023
3 of 4 checks passed
fannheyward added a commit that referenced this pull request Feb 28, 2024
00bd79e fix(tests): fix broken tests on nightly (#4901)
bb6df56 feat(completion): add g:coc_disable_mappings_check (#4913)
901226b fix(symbols): close outline preview at closing (#4911)
4807b2d fix(symbol): don't decrease end.line for Python (#4909)
3232964 fix(links): improve regex of link (#4906)
4bb274c fix(highlight): check buffer exist to highlight (#4874)
23e0566 feat(model): use getbufinfo to check command line (#4902)
b14c1e9 chore(ci): npm run lint
bbb3ec7 chore(package): update eslint related (#4900)
c2c7132 chore(package): update jest related (#4898)
820a49f feat(completion): add suggest.chineseSegments (#4833)
e44b117 fix(configuration): merge dotted config (#4895)
dc633ad fix(codeLens): clear whole buffer on resolving (#4812)
ae9ddb7 fix(handler): increase inlayHint render debounce (#4805)
a716465 fix(core): disable cached-dir for resolving root (#4827)
a2a3eea refactor(window): use nvim_get_option_value (#4769)
53ec5ad fix(native): checkComplete for file/buffer/around (#4794)
d35f0d0 fix(dialog): set nonumber for floating doc (#4870)
d49c6ee fix(ui): wrap the url in quotes to open (#4832)
e18f99b fix(client): ignore -1 abnormal exit (#4868)
ebc63cf fix(rpc): check coc_status exists before unlet (#4850)
610f5a4 fix(tests): incorrect comparing (#4839)
45f8a11 fix(configuration): join local coc-settings.json (#4854)
02c4a31 fix issues #4879 and #4872 (#4885)
9c079ad feat(diagnostic): add `DiagnosticWithFileType` (#4881)
392264f feat(list): support moving by word in prompt (#4867)
ddf40ce feat(list): support <C-space> and <C-_> mappings (#4863)
3de02d7 chore(deps): bump follow-redirects from 1.15.2 to 1.15.4 (#4856)
e42d5dc fix: block Vim until completion resolve finishes (#4847)
0006118 chore(docs): Fix typo curosr => cursor (#4848)
da5201d chore(README): Update Node.JS version required. (#4849)
9831f9b fix: keep autocmds on registering new one (#4846)
f82e420 fix: always pass `opts.close` for dialog (#4835)
e108777 fix: floatFactory should not set `zindex: 1` (#4816)
9c3723a fix: CocTagFunc jumps to wrong position if using tabs for indentation (#4810)
e3f91b5 chore(deps-dev): bump @babel/traverse from 7.22.11 to 7.23.2 (#4783)
@fannheyward
Copy link
Member

@all-contributors please add @gera2ld for code.

Copy link
Contributor

@fannheyward

I've put up a pull request to add @gera2ld! 🎉

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