Skip to content

Copy paste issue in ft=htmldjango #436

Description

@minusf

If my diagnosis is correct, I see an issue while copy pasting certain html code into a buffer with ft=htmldjango and vim-matchup plugin enabled.

Steps to reproduce, first correct behaviour with html:

  1. nvim t.html
  2. set ft=html
  3. copy paste html into buffer: <img data-imagebox="g" data-imagebox-src="original_images/01-pf-usm.jpg" height="228" loading="lazy" src="/media/images/01-pf-usm.2e16d0ba.fill-228x228-c50.jpg" width="228" data-imagebox-image-index="0" data-imagebox-gallery-index="0">

Garbled copy paste with htmldjango:

  1. nvim t.html
  2. set ft=htmldjango
  3. copy paste html into buffer: <usm.jpg" height="228" loading="lazy" src="/media/images/01-pf-usm.2e16d0ba.fill-228x228-c50.jpg" width="228" data-imagebox-image-index="0" data-imagebox-gallery-index="0"> img data-imagebox="g" data-imagebox-src="original_images/01-pf-

The result is not always the same, sometimes the garbled text is different.

When I disable andymass/vim-matchup plugin, both scenarios result in same snippet being pasted.

nvim 0.12.1
macos 15.7.6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions