Skip to content

Commit

Permalink
fix: use AND comparison instead of bitwise (lapce#2192)
Browse files Browse the repository at this point in the history
  • Loading branch information
panekj authored Mar 1, 2023
1 parent cc154ac commit 9845c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lapce-data/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ impl Document {
) -> Vec<(RopeDelta, InvalLines, SyntaxEdit)> {
let old_cursor = cursor.mode.clone();
let auto_closing = config.editor.auto_closing_matching_pairs
& match self.content {
&& match self.content {
BufferContent::File(_) => true,
BufferContent::Local(_) => false,
BufferContent::SettingsValue(_) => false,
Expand Down

0 comments on commit 9845c1a

Please sign in to comment.