Make OpenCode into coroutine

This commit is contained in:
krzosa
2025-12-23 08:14:22 +01:00
parent edb2379bce
commit edc941bf53
5 changed files with 50 additions and 22 deletions

View File

@@ -24,10 +24,9 @@ void CommandWindowLayout(Rect2I *rect, Int wx, Int wy) {
rect = &copy_rect;
}
Int barsize = Clamp((Int)n->font->line_spacing*10, (Int)0, (Int)wx - 100);
n->document_rect = n->total_rect = CutTop(rect, barsize);
n->document_rect = n->total_rect = CutBottom(rect, barsize);
}
const Int FuzzyCloserWordBegin = 5;
const Int FuzzyConsecutiveMultiplier = 3;
Int FuzzyRate(String16 string, String16 with) {