mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-27 14:14:19 +03:00
Merge branch 'master' into update-neovim
This commit is contained in:
commit
a08fc2c910
@ -222,8 +222,7 @@ extension NvimView {
|
||||
columnRange: ClosedRange<Int>
|
||||
) -> [AttributesRun] {
|
||||
rowRange.map { row in
|
||||
self.ugrid.cells[row][columnRange]
|
||||
.groupedRanges(with: { cell in cell.attrId })
|
||||
groupedRanges(of: self.ugrid.cells[row][columnRange])
|
||||
.compactMap { range in
|
||||
let cells = self.ugrid.cells[row][range]
|
||||
|
||||
@ -273,3 +272,38 @@ private let infoTextAttrs = [
|
||||
]
|
||||
|
||||
private let colorSpace = NSColorSpace.sRGB
|
||||
|
||||
/// When we use the following private function instead of the public extension function in
|
||||
/// Commons.FoundationCommons.swift.groupedRanges(with:), then, according to Instruments
|
||||
/// the percentage of the function is reduced from ~ 15% to 0%.
|
||||
/// Keep the logic in sync with Commons.FoundationCommons.swift.groupedRanges(with:). Tests are
|
||||
/// present in Commons lib.
|
||||
private func groupedRanges(of cells: ArraySlice<UCell>) -> [ClosedRange<Int>] {
|
||||
if cells.isEmpty { return [] }
|
||||
if cells.count == 1 { return [cells.startIndex...cells.startIndex] }
|
||||
|
||||
var result = [ClosedRange<Int>]()
|
||||
result.reserveCapacity(cells.count / 2)
|
||||
|
||||
let inclusiveEndIndex = cells.endIndex - 1
|
||||
var lastStartIndex = cells.startIndex
|
||||
var lastEndIndex = cells.startIndex
|
||||
var lastMarker = cells.first!.attrId // cells is not empty!
|
||||
for i in cells.startIndex..<cells.endIndex {
|
||||
let currentMarker = cells[i].attrId
|
||||
|
||||
if lastMarker == currentMarker {
|
||||
if i == inclusiveEndIndex { result.append(lastStartIndex...i) }
|
||||
} else {
|
||||
result.append(lastStartIndex...lastEndIndex)
|
||||
lastMarker = currentMarker
|
||||
lastStartIndex = i
|
||||
|
||||
if i == inclusiveEndIndex { result.append(i...i) }
|
||||
}
|
||||
|
||||
lastEndIndex = i
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
@ -1127,7 +1127,7 @@
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "-";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 20220910.153746;
|
||||
CURRENT_PROJECT_VERSION = 20220913.230838;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
@ -1188,7 +1188,7 @@
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "-";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 20220910.153746;
|
||||
CURRENT_PROJECT_VERSION = 20220913.230838;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
@ -1217,7 +1217,7 @@
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 20220910.153746;
|
||||
CURRENT_PROJECT_VERSION = 20220913.230838;
|
||||
DEFINES_MODULE = YES;
|
||||
IBC_MODULE = VimR;
|
||||
INFOPLIST_FILE = VimR/Info.plist;
|
||||
@ -1239,7 +1239,7 @@
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 20220910.153746;
|
||||
CURRENT_PROJECT_VERSION = 20220913.230838;
|
||||
DEFINES_MODULE = YES;
|
||||
IBC_MODULE = VimR;
|
||||
INFOPLIST_FILE = VimR/Info.plist;
|
||||
|
@ -1224,7 +1224,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.42.1</string>
|
||||
<string>0.42.2</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
@ -1241,7 +1241,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>20220910.153746</string>
|
||||
<string>20220913.230838</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.productivity</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
@ -15,10 +15,10 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.42.1</string>
|
||||
<string>0.42.2</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>20220910.153746</string>
|
||||
<string>20220913.230838</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
16
appcast.xml
16
appcast.xml
@ -6,22 +6,22 @@
|
||||
<description>Most recent changes with links to updates for VimR.</description>
|
||||
<language>en</language>
|
||||
<item>
|
||||
<title>v0.42.1-20220910.153746</title>
|
||||
<title>v0.42.2-20220913.230838</title>
|
||||
<link>https://twitter.com/vimrefined</link>
|
||||
<sparkle:version>20220910.153746</sparkle:version>
|
||||
<sparkle:shortVersionString>v0.42.1</sparkle:shortVersionString>
|
||||
<sparkle:version>20220913.230838</sparkle:version>
|
||||
<sparkle:shortVersionString>v0.42.2</sparkle:shortVersionString>
|
||||
<description><![CDATA[
|
||||
<ul>
|
||||
<li>Bugfix: Memory leak (custom tabs).</li>
|
||||
<li>Improve rendering performance.</li>
|
||||
</ul>
|
||||
]]></description>
|
||||
<releaseNotesLink>
|
||||
https://github.com/qvacua/vimr/releases/tag/v0.42.1-20220910.153746
|
||||
https://github.com/qvacua/vimr/releases/tag/v0.42.2-20220913.230838
|
||||
</releaseNotesLink>
|
||||
<pubDate>2022-09-10T15:46:20.838961</pubDate>
|
||||
<pubDate>2022-09-13T23:18:03.725690</pubDate>
|
||||
<minimumSystemVersion>10.13.0</minimumSystemVersion>
|
||||
<enclosure url="https://github.com/qvacua/vimr/releases/download/v0.42.1-20220910.153746/VimR-v0.42.1.tar.bz2"
|
||||
sparkle:edSignature="TVgFx+Ceev99TOq4Xc1iSu4uh7Ko+sS2tiyyM607inTsxbDNL3lr+Cm/WzloyNdrLC85ifMSq6AhPfAwkJaQCQ==" length="21437371"
|
||||
<enclosure url="https://github.com/qvacua/vimr/releases/download/v0.42.2-20220913.230838/VimR-v0.42.2.tar.bz2"
|
||||
sparkle:edSignature="AbabQPPjogx60fPES3jGH0aqiko9Vc6d2+i+h6vycAlX8GQKNIGRjeEe7gx17pSrvfdMmHdztGE5hETOI6reBw==" length="21682056"
|
||||
type="application/octet-stream"/>
|
||||
</item>
|
||||
</channel>
|
||||
|
@ -6,22 +6,22 @@
|
||||
<description>Most recent changes with links to updates for VimR.</description>
|
||||
<language>en</language>
|
||||
<item>
|
||||
<title>v0.42.1-20220910.153746</title>
|
||||
<title>v0.42.2-20220913.230838</title>
|
||||
<link>https://twitter.com/vimrefined</link>
|
||||
<sparkle:version>20220910.153746</sparkle:version>
|
||||
<sparkle:shortVersionString>v0.42.1</sparkle:shortVersionString>
|
||||
<sparkle:version>20220913.230838</sparkle:version>
|
||||
<sparkle:shortVersionString>v0.42.2</sparkle:shortVersionString>
|
||||
<description><![CDATA[
|
||||
<ul>
|
||||
<li>Bugfix: Memory leak (custom tabs).</li>
|
||||
<li>Improve rendering performance.</li>
|
||||
</ul>
|
||||
]]></description>
|
||||
<releaseNotesLink>
|
||||
https://github.com/qvacua/vimr/releases/tag/v0.42.1-20220910.153746
|
||||
https://github.com/qvacua/vimr/releases/tag/v0.42.2-20220913.230838
|
||||
</releaseNotesLink>
|
||||
<pubDate>2022-09-10T15:46:20.838961</pubDate>
|
||||
<pubDate>2022-09-13T23:18:03.725690</pubDate>
|
||||
<minimumSystemVersion>10.13.0</minimumSystemVersion>
|
||||
<enclosure url="https://github.com/qvacua/vimr/releases/download/v0.42.1-20220910.153746/VimR-v0.42.1.tar.bz2"
|
||||
sparkle:edSignature="TVgFx+Ceev99TOq4Xc1iSu4uh7Ko+sS2tiyyM607inTsxbDNL3lr+Cm/WzloyNdrLC85ifMSq6AhPfAwkJaQCQ==" length="21437371"
|
||||
<enclosure url="https://github.com/qvacua/vimr/releases/download/v0.42.2-20220913.230838/VimR-v0.42.2.tar.bz2"
|
||||
sparkle:edSignature="AbabQPPjogx60fPES3jGH0aqiko9Vc6d2+i+h6vycAlX8GQKNIGRjeEe7gx17pSrvfdMmHdztGE5hETOI6reBw==" length="21682056"
|
||||
type="application/octet-stream"/>
|
||||
</item>
|
||||
</channel>
|
||||
|
@ -1,5 +1,13 @@
|
||||
# Next
|
||||
|
||||
* ...
|
||||
|
||||
# 0.42.2-20220913.230838
|
||||
|
||||
* Improve rendering performance.
|
||||
|
||||
# 0.42.1-20220910.153746
|
||||
|
||||
* Bugfix: Memory leak (custom tabs).
|
||||
|
||||
# 0.42.0-20220703.104316
|
||||
|
Loading…
Reference in New Issue
Block a user