mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-25 14:52:19 +03:00
Reformat
This commit is contained in:
parent
190e186264
commit
c93f03b937
@ -1 +1 @@
|
||||
Subproject commit 764ba0e2b54461f0bb433b76bcf2357ff9031285
|
||||
Subproject commit c4098c5114d0ad9428458bc79293646bc4a41865
|
@ -130,9 +130,7 @@ final class Typesetter {
|
||||
CGPoint(x: offset.x + i.cgf * cellWidth, y: offset.y)
|
||||
}
|
||||
|
||||
return [
|
||||
FontGlyphRun(font: font, glyphs: Array(glyphs[range]), positions: positions),
|
||||
]
|
||||
return [FontGlyphRun(font: font, glyphs: Array(glyphs[range]), positions: positions)]
|
||||
}
|
||||
}
|
||||
|
||||
@ -257,9 +255,7 @@ final class Typesetter {
|
||||
nvimUtf16Cells.withUnsafeBufferPointer { pointer -> [UInt16] in
|
||||
let count = pointer.reduce(0) { acc, elem in acc + elem.count }
|
||||
|
||||
return [Unicode.UTF16.CodeUnit](
|
||||
unsafeUninitializedCapacity: count
|
||||
) { resultPtr, initCount in
|
||||
return [Unicode.UTF16.CodeUnit](unsafeUninitializedCapacity: count) { resultPtr, initCount in
|
||||
var i = 0
|
||||
for k in 0..<pointer.count {
|
||||
let element = pointer[k]
|
||||
|
Loading…
Reference in New Issue
Block a user