Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Pasting code below a completed form indents the pasted code if the last line of the completed form is indented #34

Description

@WalterGR

Repro:

  1. Open or create a .clj file.
  2. Enter a complete form in which the last line is indented, such as the following:
(defn index-of-any [pred coll]
  (first (index-filter pred coll)))
  1. Copy some lines of code.
  2. Position the cursor on the first column of any line after the completed form, such as here:
(defn index-of-any [pred coll]
  (first (index-filter pred coll)))


_
  1. Paste.

Expected:

Pasted lines of code are not indented. For example:

(defn index-of-any [pred coll]
  (first (index-filter pred coll)))


(foo)
(bar)

Actual:

Pasted lines of code are indented to the same level as the final line of the completed form.

(defn index-of-any [pred coll]
  (first (index-filter pred coll)))


  (foo)
  (bar)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions