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

vim-patch:8.2.{partial:4603,4647,4974} #28486

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zeertzjq
Copy link
Member

@zeertzjq zeertzjq commented Apr 24, 2024

Fix #28481

vim-patch:partial:8.2.4603: sourcing buffer lines is too complicated

Problem: Sourcing buffer lines is too complicated.
Solution: Simplify the code. Make it possible to source Vim9 script lines.
(Yegappan Lakshmanan, closes vim/vim#9974)

vim/vim@85b43c6

Co-authored-by: Yegappan Lakshmanan [email protected]

vim-patch:8.2.4647: "source" can read past end of copied line

Problem: "source" can read past end of copied line.
Solution: Add a terminating NUL.

vim/vim@2bdad61

Co-authored-by: Bram Moolenaar [email protected]

vim-patch:8.2.4974: ":so" command may read after end of buffer

Problem: ":so" command may read after end of buffer.
Solution: Compute length of text properly.

vim/vim@4748c4b

Co-authored-by: Bram Moolenaar [email protected]

@zeertzjq zeertzjq changed the title vim-patch:partial:8.2.4603,8.2.4647,8.2.4974 vim-patch:8.2.{partial:4603,4647,4974} Apr 24, 2024
@github-actions github-actions bot added the vim-patch See https://neovim.io/doc/user/dev_vimpatch.html label Apr 24, 2024
zeertzjq and others added 4 commits April 26, 2024 06:04
Problem:    Sourcing buffer lines is too complicated.
Solution:   Simplify the code. Make it possible to source Vim9 script lines.
            (Yegappan Lakshmanan, closes vim/vim#9974)

vim/vim@85b43c6

vim-patch:9.1.0372: Calling CLEAR_FIELD() on the same struct twice

Problem:  Calling CLEAR_FIELD() on the same struct twice.
Solution: Remove the second CLEAR_FIELD().  Move the assignment of
          cookie.sourceing_lnum (zeertzjq).

closes: vim/vim#14627

vim/vim@f68517c

Co-authored-by: Yegappan Lakshmanan <[email protected]>
Problem:    "source" can read past end of copied line.
Solution:   Add a terminating NUL.

vim/vim@2bdad61

Co-authored-by: Bram Moolenaar <[email protected]>
Problem:    ":so" command may read after end of buffer.
Solution:   Compute length of text properly.

vim/vim@4748c4b

Co-authored-by: Bram Moolenaar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vim-patch See https://neovim.io/doc/user/dev_vimpatch.html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

:finish can no longer be used in exrc files since v0.9.0
1 participant