only set lanaguge when executed
@@ -227,6 +227,7 @@ fn select(
));
}
PaletteItemContent::Language(name) => {
+ if !preview {
let name = name.to_string();
ctx.submit_command(Command::new(
LAPCE_UI_COMMAND,
@@ -234,6 +235,7 @@ fn select(
Target::Auto,
))
}
+ }
PaletteItemContent::Command(command) => {
if !preview {
ctx.submit_command(Command::new(
