Skip to content

Pug: Pasting re-indents the whole template above #118

@someonewithpc

Description

@someonewithpc

When editing Vue template lang="pug", pasting/yanking causes the whole template to be messed up above point. Specifically, it looks like each line gets indented once

p
  | Foo
  a
p
  | Bar
  a

becomes

p
  | Foo
  a
    p
      | Bar
      a
      a

When point is at a and I press M-w RET C-y

This doesn't happen with M-y (helm-show-kill-ring)

Not sure if this is an issue with vue-mode, or pug-mode, but in just pug-mode, this issue doesn't happen.

C-h k C-y

C-y runs the command yank (found in global-map), which is an
interactive compiled Lisp function in ‘simple.el’.

C-h m

Enabled minor modes: Anzu Async-Bytecomp-Package Auto-Composition
Auto-Compression Auto-Encryption Clean-Aindent Column-Number
Delete-Selection Electric-Indent File-Name-Shadow Flycheck Font-Lock
Global-Anzu Global-Eldoc Global-Flycheck Global-Font-Lock
Global-Undo-Tree Helm Helm-Minibuffer-History Line-Number Mmm
Mouse-Wheel Override-Global Projectile Shell-Dirtrack Show-Paren
Smartparens Smartparens-Global Tooltip Transient-Mark Undo-Tree
Volatile-Highlights Windmove Xterm-Mouse

(Information about these minor modes follows the major mode info.)

vue[Pug] mode defined in ‘pug-mode.el’:
Major mode for editing Pug files.

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