mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 17:21:40 +03:00
Don't request auto-indent if there is no language assigned on the buffer
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
b4680144c5
commit
810315e04c
@ -1534,7 +1534,7 @@ impl Buffer {
|
||||
self.last_edit = edit.timestamp.local();
|
||||
self.version.observe(edit.timestamp.local());
|
||||
|
||||
if autoindent {
|
||||
if autoindent && self.language.is_some() {
|
||||
let ranges = edit.ranges.iter().map(|range| {
|
||||
Anchor {
|
||||
offset: range.start,
|
||||
|
Loading…
Reference in New Issue
Block a user