Skip to content

Conversation

bfredl
Copy link
Contributor

@bfredl bfredl commented Nov 14, 2017

Before this change, only a value is copied from another window if the buffer
is not current in that window. With this change, it is also copied
from a window, in which the buffer is currently displayed.

Previous discussion: neovim/neovim#7551

@codecov-io
Copy link

codecov-io commented Nov 16, 2017

Codecov Report

Merging #2336 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2336      +/-   ##
==========================================
- Coverage   74.43%   74.42%   -0.02%     
==========================================
  Files          90       90              
  Lines      132185   132176       -9     
  Branches    30904    30742     -162     
==========================================
- Hits        98394    98371      -23     
- Misses      33766    33776      +10     
- Partials       25       29       +4
Impacted Files Coverage Δ
src/buffer.c 77.01% <100%> (+0.09%) ⬆️
src/libvterm/src/state.c 40.38% <0%> (-1.02%) ⬇️
src/gui_gtk_x11.c 47.6% <0%> (-0.2%) ⬇️
src/if_py_both.h 76.45% <0%> (-0.15%) ⬇️
src/ex_cmds2.c 80.54% <0%> (-0.1%) ⬇️
src/gui.c 47.42% <0%> (-0.06%) ⬇️
src/version.c 80.8% <0%> (ø) ⬆️
src/fileio.c 75.37% <0%> (ø) ⬆️
src/os_unix.c 53.46% <0%> (ø) ⬆️
... and 1 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 7cb769a...c846415. Read the comment docs.

previously, only a value is copied from another window if the buffer
is not current in that window. With this change, it is also copied
from a window, in which the buffer is currently displayed.
@bfredl
Copy link
Contributor Author

bfredl commented Nov 16, 2017

Tests are passing now after adding missing NULL check.

@brammool brammool closed this in 25782a7 May 13, 2018
adizero pushed a commit to adizero/vim that referenced this pull request May 19, 2018
Problem:    Buffer-local window options may not be recent if the buffer is
            still open in another window.
Solution:   Copy the options from the window instead of the outdated window
            options. (Bjorn Linse, closes vim#2336)
bfredl added a commit to bfredl/neovim that referenced this pull request Jun 21, 2018
…other window

patch 8.0.1836: buffer-local window options may not be recent

Problem:    Buffer-local window options may not be recent if the buffer is
            still open in another window.
Solution:   Copy the options from the window instead of the outdated window
            options. (Bjorn Linse, closes vim/vim#2336)
bfredl added a commit to bfredl/neovim that referenced this pull request Jun 21, 2018
…other window

vim-patch:8.0.1836: buffer-local window options may not be recent
Problem:    Buffer-local window options may not be recent if the buffer is
            still open in another window.
Solution:   Copy the options from the window instead of the outdated window
            options. (Bjorn Linse, closes vim/vim#2336)
vim/vim@25782a7
bfredl added a commit to bfredl/neovim that referenced this pull request Jun 21, 2018
…other window

vim-patch:8.0.1836: buffer-local window options may not be recent
Problem:    Buffer-local window options may not be recent if the buffer is
            still open in another window.
Solution:   Copy the options from the window instead of the outdated window
            options. (Bjorn Linse, closes vim/vim#2336)
vim/vim@25782a7
janlazo added a commit to janlazo/neovim that referenced this pull request Jun 22, 2018
Problem:    Buffer-local window options may not be recent if the buffer is
            still open in another window.
Solution:   Copy the options from the window instead of the outdated window
            options. (Bjorn Linse, closes vim/vim#2336)
vim/vim@25782a7
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