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

Make termguicolor use gui= instead of cterm= #1773

Closed
wants to merge 1 commit into from

Conversation

whydoubt
Copy link

The behaviour for a color terminal has been:
termguicolor: use guifg, guibg, cterm
notermguicolor: use ctermfg, ctermbg, cterm

This is changed to the more consistent:
termguicolor: use guifg, guibg, gui
notermguicolor: use ctermfg, ctermbg, cterm

Fixes issue GH-1740

The behaviour for a color terminal has been:
    termguicolor: use guifg,   guibg,   cterm
  notermguicolor: use ctermfg, ctermbg, cterm

This is changed to the more consistent:
    termguicolor: use guifg,   guibg,   gui
  notermguicolor: use ctermfg, ctermbg, cterm

Fixes issue vimGH-1740
@codecov-io
Copy link

codecov-io commented Jun 16, 2017

Codecov Report

Merging #1773 into master will decrease coverage by 0.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1773      +/-   ##
==========================================
- Coverage   75.11%   75.09%   -0.02%     
==========================================
  Files          76       76              
  Lines      124994   125006      +12     
==========================================
- Hits        93886    93878       -8     
- Misses      31108    31128      +20
Impacted Files Coverage Δ
src/screen.c 74.31% <50%> (-0.03%) ⬇️
src/syntax.c 77% <87.5%> (-0.11%) ⬇️
src/if_xcmdsrv.c 84.25% <0%> (-1.12%) ⬇️
src/message.c 68.07% <0%> (-0.41%) ⬇️
src/os_unix.c 58.63% <0%> (-0.2%) ⬇️
src/gui.c 45.58% <0%> (-0.06%) ⬇️
src/channel.c 83.8% <0%> (ø) ⬆️
src/window.c 81.38% <0%> (+0.03%) ⬆️
src/term.c 53.37% <0%> (+0.05%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8cf9128...f29184d. Read the comment docs.

@brammool
Copy link
Contributor

brammool commented Jun 16, 2017 via email

@brammool
Copy link
Contributor

I'm closing this, since there hasn't been enough request for the change to justify the backwards-incompatibility. It would be possible to add a new argument for attributes used both by the gui and cterm+termguicolors, but that's a bit complicated.

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.

None yet

3 participants