Skip to content

(Vim bug?) b:changedtick incremented after undo #63

Closed
@justinmk

Description

@justinmk

This issue is for reference, I don't have a solution.

At some point Vim changed its b:changedtick behavior after u, to increment more than vim-repeat expects. This can be reproduced with vim-surround, though it also affects vim-sneak.

Steps to reproduce:

$ vim -u NORC -N +":set runtimepath+=~/.vim/bundle/vim-repeat/" +":runtime plugin/repeat.vim" +":set runtimepath+=~/.vim/bundle/vim-surround/" +":runtime plugin/surround.vim"

ifooboo<Esc>0
ystb)
..
u
.

The . after u does not redo the surround operation.

Even though repeat#wrap() preserves g:repeat_tick, b:changedtick is incremented sometime after, so the next . does not work correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions