Skip to content

window.set_layout moves the focus  #4417

@kaste

Description

@kaste

Description

Splitting a new window, for example window.set_layout( { "cols": [0.0, 0.5, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] } ), focuses the right pane. After that, a window.new_file() creates a view in the right pane.

In ST3, this wasn't the case.

Notable: If you use the above set_layout right in the console, the focus is stolen from the console.

This is a bug for (e.g.) the popular Compare Side-By-Side plugin.

  • Build: 4106
  • Operating system and version: Windows 10

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions