vim-patch:7.4.605 #3903

Merged
merged 2 commits into from Jan 1, 2016

Projects

None yet

1 participant

@justinmk
Member
Problem:    The # register is not writable, it cannot be restored after
            jumping around.
Solution:   Make the # register writable. (Marcin Szamotulski)

vim/vim@3b3a949

@justinmk justinmk changed the title from Vim 7.4.605 to vim-patch:7.4.605 Dec 27, 2015
@justinmk justinmk commented on an outdated diff Dec 27, 2015
src/nvim/buffer.c
@@ -1718,8 +1718,8 @@ static buf_T *buflist_findname_file_id(char_u *ffname, FileID *file_id,
*/
int
buflist_findpat (
- char_u *pattern,
- char_u *pattern_end, /* pointer to first char after pattern */
+ const char_u *pattern,
+ const char_u *pattern_end, /* pointer to first char after pattern */
@justinmk
justinmk Dec 27, 2015 Member

The const changes here cascaded from write_reg_contents_ex. This is fine because buflist_findpat and file_pat_to_reg_pat do not modify the contents of their pointer params.

justinmk added some commits Dec 27, 2015
@justinmk justinmk vim-patch:7.4.605
Problem:    The # register is not writable, it cannot be restored after
            jumping around.
Solution:   Make the # register writable. (Marcin Szamotulski)

vim/vim@3b3a949
76bf21d
@justinmk justinmk file_pat_to_reg_pat, buflist_findpat: const params
file_pat_to_reg_pat() and buflist_findpat() do not modify the data of
these parameters.
3fd62f9
@justinmk justinmk merged commit f1344bc into neovim:master Jan 1, 2016

0 of 3 checks passed

coverage/coveralls Coverage decreased (-3.04%) to 66.022%
Details
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
@justinmk justinmk deleted the justinmk:vim-7.4.605 branch Jan 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment