rust-lang/rust-enhanced

'Accept replacement' doesn't work when "rust_region_style" set to "none"

AndrejMitrovic opened this issue · 1 comments

Sublime Text Version

E.g Sublime Text 4 (Build 4113)

Rust Enhanced Version

v2.25.0

Operating system

OS Name Microsoft Windows 10 Pro

Expected behavior

Clicking Accept Replacement should have worked.

Actual behavior

Clicking it does nothing.

Steps to reproduce

  1. Set rust_region_style to none in preferences.
{
    "rust_region_style": "none",
}
  1. Write a simple Rust file:
mod print;

fn main() {
    println("foobar");
}
  1. Save the file.
  2. Error suggests to use ! when calling println. But clicking Accept replacement: does nothing.
  3. If rust_region_style is set to any other value, then the Accept replacement: button does work.