Skip to content

Strange merging behavior with insert into newline #93

@ffd8

Description

@ffd8

Just ran into a strange issue where merging makes some mistakes on {} brackets.
Using your demo1, tested the following:

Left editor:

let flipSpeed = 55

function setup() {
	createCanvas(windowWidth, windowHeight)
	background(255)
}

function draw() {
	background(0)
}

Right editor:

function setup() {
	createCanvas(windowWidth, windowHeight)

}

function draw() {

}

What it looks like initially:

image

After the first two merges (shows mistake):

image

Then corrects itself if I add an extra line (only if removing the indented tab):

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions