7756 files changed+5599857−2249
4756 more files changed are not listed.
.gitignore+1
@@ -44,6 +44,7 @@ Thumbs.db
4444
4545# Nix/direnv
4646.direnv/
47+/result
4748
4849**/.crush/**
4950
.golangci.yml+12−4
@@ -2,6 +2,7 @@ version: "2"
22linters:
33 enable:
44 - bodyclose
5+ - errcheck
56 # - exhaustive
67 # - goconst
78 # - godot
@@ -9,6 +10,7 @@ linters:
910 # - gomoddirectives
1011 - goprintffuncname
1112 # - gosec
13+ - ineffassign
1214 - misspell
1315 # - nakedret
1416 # - nestif
@@ -23,17 +25,23 @@ linters:
2325 - tparallel
2426 # - unconvert
2527 # - unparam
28+ - unused
2629 - whitespace
2730 # - wrapcheck
28− disable:
29− - errcheck
30− - ineffassign
31− - unused
3231 exclusions:
3332 generated: lax
3433 presets:
3534 - common-false-positives
35+ # Ignores the idiomatic-to-drop error family (*Close, *Flush,
36+ # Fprint*, os.Remove/RemoveAll, os.Setenv, stdout/stderr writes) so
37+ # errcheck only flags genuinely meaningful dropped errors.
38+ - std-error-handling
3639 rules:
40+ # Dropped errors in tests (setup writes, httptest encoders) are
41+ # low-signal — test failures surface them anyway.
42+ - path: _test\.go
43+ linters:
44+ - errcheck
3745 - text: '(slog|log)\.\w+'
3846 linters:
3947 - noctx
README.md+3
@@ -1,5 +1,8 @@
11# Crush
22
3+> [!NOTE]
4+> This is a personal fork of [charmbracelet/crush](https://github.com/charmbracelet/crush) with UI/UX tweaks and performance improvements.
5+
36<p align="center">
47 <a href="https://stuff.charm.sh/crush/charm-crush.png"><img width="450" alt="Charm Crush Logo" src="https://github.com/user-attachments/assets/cf8ca3ce-8b02-43f0-9d0f-5a331488da4b" /></a><br />
58 <a href="https://github.com/charmbracelet/crush/releases"><img src="https://img.shields.io/github/release/charmbracelet/crush" alt="Latest Release"></a>
flake.lock+3−4
@@ -20,16 +20,15 @@
2020 },
2121 "nixpkgs": {
2222 "locked": {
23− "lastModified": 1775423009,
24− "narHash": "sha256-vPKLpjhIVWdDrfiUM8atW6YkIggCEKdSAlJPzzhkQlw=",
23+ "lastModified": 1782964654,
24+ "narHash": "sha256-oqyac50OyRdni5ZK9H7ZuAJoR3LzgsOdUcbBlUsk9lg=",
2525 "owner": "NixOS",
2626 "repo": "nixpkgs",
27− "rev": "68d8aa3d661f0e6bd5862291b5bb263b2a6595c9",
27+ "rev": "3130a1cf8f7c794ea5a4760c3fa4c745d64ec269",
2828 "type": "github"
2929 },
3030 "original": {
3131 "owner": "NixOS",
32− "ref": "nixos-unstable",
3332 "repo": "nixpkgs",
3433 "type": "github"
3534 }
flake.nix+32−1
@@ -2,7 +2,7 @@
22 description = "Crush development environment";
33
44 inputs = {
5− nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5+ nixpkgs.url = "github:NixOS/nixpkgs";
66 flake-utils.url = "github:numtide/flake-utils";
77 };
88
@@ -14,7 +14,38 @@
1414 flake-utils.lib.eachDefaultSystem (
1515 system: let
1616 pkgs = nixpkgs.legacyPackages.${system};
17+ version = "devel";
1718 in {
19+ packages.default = pkgs.buildGoModule {
20+ pname = "crush";
21+ inherit version;
22+
23+ src = ./.;
24+
25+ vendorHash = null;
26+
27+ # Match the Go toolchain used in the dev shell.
28+ go = pkgs.go_1_26;
29+
30+ env.CGO_ENABLED = 0;
31+
32+ ldflags = [
33+ "-s"
34+ "-w"
35+ "-X github.com/charmbracelet/crush/internal/version.Version=${version}"
36+ ];
37+
38+ # The test suite requires network access and external tools.
39+ doCheck = false;
40+
41+ meta = {
42+ description = "Terminal-based AI coding assistant";
43+ homepage = "https://github.com/charmbracelet/crush";
44+ license = pkgs.lib.licenses.mit;
45+ mainProgram = "crush";
46+ };
47+ };
48+
1849 devShells.default = pkgs.mkShell {
1950 buildInputs = with pkgs; [
2051 # Go toolchain
internal/agent/agent.go+31−22
@@ -349,7 +349,7 @@ func (a *sessionAgent) sessionMu(sessionID string) *sync.Mutex {
349349func (a *sessionAgent) enqueueCall(call SessionAgentCall) {
350350 existing, ok := a.messageQueue.Get(call.SessionID)
351351 if !ok {
352− existing = []SessionAgentCall{}
352+ existing = make([]SessionAgentCall, 0, 4)
353353 }
354354 queued := call
355355 if call.Accepted != nil {
@@ -866,9 +866,12 @@ func (a *sessionAgent) Run(ctx context.Context, call SessionAgentCall) (result *
866866 prepared.Messages = append([]fantasy.Message{fantasy.NewSystemMessage(promptPrefix)}, prepared.Messages...)
867867 }
868868
869− sessionLock.Lock()
870− stepMessages = cloneFantasyMessages(prepared.Messages)
871− sessionLock.Unlock()
869+ // Save a reference to the prepared messages for token
870+ // estimation in OnStepFinish. No clone needed here — the
871+ // messages are not modified between PrepareStep and
872+ // OnStepFinish (which run sequentially), and the clone is
873+ // only needed when the provider returns zero usage.
874+ stepMessages = prepared.Messages
872875
873876 var assistantMsg message.Message
874877 assistantMsg, err = a.messages.Create(callContext, call.SessionID, message.CreateMessageParams{
@@ -1077,7 +1080,9 @@ func (a *sessionAgent) Run(ctx context.Context, call SessionAgentCall) (result *
10771080 currentAssistant.FinishThinking()
10781081 toolCalls := currentAssistant.ToolCalls()
10791082 // INFO: we use the cleanup context here because the genCtx has been cancelled.
1080− msgs, createErr := a.messages.List(cleanupCtx, currentAssistant.SessionID)
1083+ // Only load messages from the current assistant message onward — tool
1084+ // results for this turn's tool calls can only exist after it.
1085+ msgs, createErr := a.messages.ListAfter(cleanupCtx, currentAssistant.SessionID, currentAssistant.ID)
10811086 if createErr != nil {
10821087 return nil, createErr
10831088 }
@@ -1449,7 +1454,10 @@ func (a *sessionAgent) Summarize(ctx context.Context, sessionID string, opts fan
14491454 return qErr
14501455}
14511456
1452−func (a *sessionAgent) getCacheControlOptions() fantasy.ProviderOptions {
1457+// cacheControlOptions is computed once for the process lifetime: the env check
1458+// is constant and callers only read (never mutate) the returned map, so the
1459+// same shared value can be reused across the ~3 calls per step.
1460+var cacheControlOptions = sync.OnceValue(func() fantasy.ProviderOptions {
14531461 if t, _ := strconv.ParseBool(os.Getenv("CRUSH_DISABLE_ANTHROPIC_CACHE")); t {
14541462 return fantasy.ProviderOptions{}
14551463 }
@@ -1464,6 +1472,10 @@ func (a *sessionAgent) getCacheControlOptions() fantasy.ProviderOptions {
14641472 CacheControl: anthropic.CacheControl{Type: "ephemeral"},
14651473 },
14661474 }
1475+})
1476+
1477+func (a *sessionAgent) getCacheControlOptions() fantasy.ProviderOptions {
1478+ return cacheControlOptions()
14671479}
14681480
14691481func (a *sessionAgent) createUserMessage(ctx context.Context, call SessionAgentCall) (message.Message, error) {
@@ -1484,7 +1496,7 @@ func (a *sessionAgent) createUserMessage(ctx context.Context, call SessionAgentC
14841496}
14851497
14861498func (a *sessionAgent) preparePrompt(msgs []message.Message, supportsImages bool, attachments ...message.Attachment) ([]fantasy.Message, []fantasy.FilePart) {
1487− var history []fantasy.Message
1499+ history := make([]fantasy.Message, 0, len(msgs)+1)
14881500 if !a.isSubAgent {
14891501 history = append(history, fantasy.NewUserMessage(
14901502 fmt.Sprintf(
@@ -1584,7 +1596,7 @@ func filterOrphanedToolResults(m message.Message, knownToolCallIDs map[string]st
15841596 if len(aiMsgs) == 0 {
15851597 return fantasy.Message{}, false
15861598 }
1587− var validParts []fantasy.MessagePart
1599+ validParts := make([]fantasy.MessagePart, 0, len(aiMsgs[0].Content))
15881600 for _, part := range aiMsgs[0].Content {
15891601 tr, ok := fantasy.AsMessagePart[fantasy.ToolResultPart](part)
15901602 if !ok {
@@ -1616,7 +1628,7 @@ func filterOrphanedToolResults(m message.Message, knownToolCallIDs map[string]st
16161628// conversation. Returns the message and true if any synthetic results were
16171629// produced.
16181630func syntheticToolResultsForOrphanedCalls(m message.Message, knownToolResultIDs map[string]struct{}) (fantasy.Message, bool) {
1619− var syntheticParts []fantasy.MessagePart
1631+ syntheticParts := make([]fantasy.MessagePart, 0, len(m.ToolCalls()))
16201632 for _, tc := range m.ToolCalls() {
16211633 if _, hasResult := knownToolResultIDs[tc.ID]; hasResult {
16221634 continue
@@ -1643,23 +1655,20 @@ func syntheticToolResultsForOrphanedCalls(m message.Message, knownToolResultIDs
16431655}
16441656
16451657func (a *sessionAgent) getSessionMessages(ctx context.Context, session session.Session) ([]message.Message, error) {
1646− msgs, err := a.messages.List(ctx, session.ID)
1647− if err != nil {
1648− return nil, fmt.Errorf("failed to list messages: %w", err)
1649− }
1650−
16511658 if session.SummaryMessageID != "" {
1652− summaryMsgIndex := -1
1653− for i, msg := range msgs {
1654− if msg.ID == session.SummaryMessageID {
1655− summaryMsgIndex = i
1656− break
1657− }
1659+ msgs, err := a.messages.ListAfter(ctx, session.ID, session.SummaryMessageID)
1660+ if err != nil {
1661+ return nil, fmt.Errorf("failed to list messages after summary: %w", err)
16581662 }
1659− if summaryMsgIndex != -1 {
1660− msgs = msgs[summaryMsgIndex:]
1663+ if len(msgs) > 0 {
16611664 msgs[0].Role = message.User
16621665 }
1666+ return msgs, nil
1667+ }
1668+
1669+ msgs, err := a.messages.List(ctx, session.ID)
1670+ if err != nil {
1671+ return nil, fmt.Errorf("failed to list messages: %w", err)
16631672 }
16641673 return msgs, nil
16651674}
internal/agent/coordinator.go+86−2
@@ -15,6 +15,8 @@ import (
1515 "path/filepath"
1616 "slices"
1717 "strings"
18+ "sync"
19+ "sync/atomic"
1820
1921 "charm.land/catwalk/pkg/catwalk"
2022 "charm.land/fantasy"
@@ -22,6 +24,7 @@ import (
2224 "github.com/charmbracelet/crush/internal/agent/notify"
2325 "github.com/charmbracelet/crush/internal/agent/prompt"
2426 "github.com/charmbracelet/crush/internal/agent/tools"
27+ "github.com/charmbracelet/crush/internal/agent/tools/mcp"
2528 "github.com/charmbracelet/crush/internal/config"
2629 "github.com/charmbracelet/crush/internal/csync"
2730 "github.com/charmbracelet/crush/internal/discover"
@@ -132,6 +135,24 @@ type coordinator struct {
132135 // credential change misses the cache and rebuilds.
133136 providerClients *csync.Map[string, fantasy.Provider]
134137
138+ // toolsCache avoids rebuilding the tool set on every UpdateModels call.
139+ // The cache is invalidated when the config pointer changes (reload or
140+ // mutation) or when mcpToolsGen is bumped (MCP server connect/disconnect
141+ // or tools/list_changed notification).
142+ toolsCacheMu sync.Mutex
143+ toolsCache []fantasy.AgentTool
144+ toolsCacheCfg *config.Config
145+ toolsCacheMCP uint64
146+ mcpToolsGen atomic.Uint64
147+
148+ // providerOptsCache avoids repeating the 3× JSON marshal + merge +
149+ // unmarshal in getProviderOptions on every turn when the model and
150+ // config have not changed. Keyed by config pointer + model CatwalkCfg
151+ // ID + provider name.
152+ providerOptsCacheMu sync.Mutex
153+ providerOptsCache fantasy.ProviderOptions
154+ providerOptsCacheKey string
155+
135156 readyWg errgroup.Group
136157}
137158
@@ -196,6 +217,17 @@ func NewCoordinator(
196217 }
197218 c.currentAgent = agent
198219 c.agents[config.AgentCoder] = agent
220+
221+ // Subscribe to MCP tool-list changes so the tools cache is invalidated
222+ // when MCP servers connect/disconnect or announce new tools.
223+ go func() {
224+ for ev := range mcp.SubscribeEvents(ctx) {
225+ if ev.Payload.Type == mcp.EventToolsListChanged || ev.Payload.Type == mcp.EventStateChanged {
226+ c.mcpToolsGen.Add(1)
227+ }
228+ }
229+ }()
230+
199231 return c, nil
200232}
201233
@@ -246,7 +278,7 @@ func (c *coordinator) run(ctx context.Context, accept *AcceptedRun, sessionID st
246278 return nil, errModelProviderNotConfigured
247279 }
248280
249− mergedOptions, temp, topP, topK, freqPenalty, presPenalty := mergeCallOptions(model, providerCfg)
281+ mergedOptions, temp, topP, topK, freqPenalty, presPenalty := c.cachedMergeCallOptions(model, providerCfg)
250282
251283 if err := c.refreshTokenIfExpired(ctx, providerCfg); err != nil {
252284 // NOTE(@andreynering): We don't return here because the event handling to ask the user to reauthenticate
@@ -588,6 +620,39 @@ func mergeCallOptions(model Model, cfg config.ProviderConfig) (fantasy.ProviderO
588620 return modelOptions, temp, topP, topK, freqPenalty, presPenalty
589621}
590622
623+// cachedMergeCallOptions wraps mergeCallOptions with a memoization cache.
624+// The provider options JSON merge is expensive (3× marshal + merge +
625+// unmarshal) and the inputs rarely change between turns. The cache key
626+// combines the config pointer identity with the model's catwalk ID and
627+// provider name so any config reload or model switch misses the cache.
628+func (c *coordinator) cachedMergeCallOptions(model Model, cfg config.ProviderConfig) (fantasy.ProviderOptions, *float64, *float64, *int64, *float64, *float64) {
629+ key := fmt.Sprintf("%p|%s|%s", c.cfg.Config(), model.CatwalkCfg.ID, model.ModelCfg.Provider)
630+
631+ c.providerOptsCacheMu.Lock()
632+ if c.providerOptsCacheKey == key {
633+ opts := c.providerOptsCache
634+ c.providerOptsCacheMu.Unlock()
635+ // Recompute the scalar overrides (cheap) since they don't need
636+ // the JSON merge — they're just cmp.Or calls.
637+ temp := cmp.Or(model.ModelCfg.Temperature, model.CatwalkCfg.Options.Temperature)
638+ topP := cmp.Or(model.ModelCfg.TopP, model.CatwalkCfg.Options.TopP)
639+ topK := cmp.Or(model.ModelCfg.TopK, model.CatwalkCfg.Options.TopK)
640+ freqPenalty := cmp.Or(model.ModelCfg.FrequencyPenalty, model.CatwalkCfg.Options.FrequencyPenalty)
641+ presPenalty := cmp.Or(model.ModelCfg.PresencePenalty, model.CatwalkCfg.Options.PresencePenalty)
642+ return opts, temp, topP, topK, freqPenalty, presPenalty
643+ }
644+ c.providerOptsCacheMu.Unlock()
645+
646+ opts, temp, topP, topK, freqPenalty, presPenalty := mergeCallOptions(model, cfg)
647+
648+ c.providerOptsCacheMu.Lock()
649+ c.providerOptsCache = opts
650+ c.providerOptsCacheKey = key
651+ c.providerOptsCacheMu.Unlock()
652+
653+ return opts, temp, topP, topK, freqPenalty, presPenalty
654+}
655+
591656func (c *coordinator) buildAgent(ctx context.Context, prompt *prompt.Prompt, agent config.Agent, isSubAgent bool) (SessionAgent, error) {
592657 large, small, err := c.buildAgentModels(ctx, isSubAgent)
593658 if err != nil {
@@ -1221,15 +1286,34 @@ func (c *coordinator) UpdateModels(ctx context.Context) error {
12211286 }
12221287 c.currentAgent.SetModels(large, small)
12231288
1224− agentCfg, ok := c.cfg.Config().Agents[config.AgentCoder]
1289+ cfg := c.cfg.Config()
1290+ agentCfg, ok := cfg.Agents[config.AgentCoder]
12251291 if !ok {
12261292 return errCoderAgentNotConfigured
12271293 }
12281294
1295+ // Fast path: reuse cached tools when neither the config nor the MCP
1296+ // tool set has changed since the last build.
1297+ mcpGen := c.mcpToolsGen.Load()
1298+ c.toolsCacheMu.Lock()
1299+ if c.toolsCache != nil && c.toolsCacheCfg == cfg && c.toolsCacheMCP == mcpGen {
1300+ c.currentAgent.SetTools(c.toolsCache)
1301+ c.toolsCacheMu.Unlock()
1302+ return nil
1303+ }
1304+ c.toolsCacheMu.Unlock()
1305+
12291306 tools, err := c.buildTools(ctx, agentCfg, false)
12301307 if err != nil {
12311308 return err
12321309 }
1310+
1311+ c.toolsCacheMu.Lock()
1312+ c.toolsCache = tools
1313+ c.toolsCacheCfg = cfg
1314+ c.toolsCacheMCP = mcpGen
1315+ c.toolsCacheMu.Unlock()
1316+
12331317 c.currentAgent.SetTools(tools)
12341318 return nil
12351319}
internal/agent/hyper/provider.go+1−1
@@ -88,7 +88,7 @@ func FetchCredits(ctx context.Context, apiKey string) (int, error) {
8888 if err != nil {
8989 return 0, fmt.Errorf("failed to make request: %w", err)
9090 }
91− defer resp.Body.Close() //nolint:errcheck
91+ defer resp.Body.Close()
9292
9393 if resp.StatusCode != http.StatusOK {
9494 return 0, fmt.Errorf("unexpected status code: %d", resp.StatusCode)
internal/agent/loop_detection.go+17−17
@@ -1,8 +1,7 @@
11package agent
22
33import (
4− "crypto/sha256"
5− "encoding/hex"
4+ "hash/fnv"
65 "io"
76
87 "charm.land/fantasy"
@@ -22,11 +21,11 @@ func hasRepeatedToolCalls(steps []fantasy.StepResult, windowSize, maxRepeats int
2221 }
2322
2423 window := steps[len(steps)-windowSize:]
25− counts := make(map[string]int)
24+ counts := make(map[uint64]int, windowSize)
2625
2726 for _, step := range window {
2827 sig := getToolInteractionSignature(step.Content)
29− if sig == "" {
28+ if sig == 0 {
3029 continue
3130 }
3231 counts[sig]++
@@ -40,34 +39,35 @@ func hasRepeatedToolCalls(steps []fantasy.StepResult, windowSize, maxRepeats int
4039
4140// getToolInteractionSignature computes a hash signature for the tool
4241// interactions in a single step's content. It pairs tool calls with their
43−// results (matched by ToolCallID) and returns a hex-encoded SHA-256 hash.
44−// If the step contains no tool calls, it returns "".
45−func getToolInteractionSignature(content fantasy.ResponseContent) string {
42+// results (matched by ToolCallID) and returns an FNV-1a hash. FNV is ~10x
43+// faster than SHA-256 and collision risk is negligible for loop detection
44+// over a 10-step window. If the step contains no tool calls, it returns 0.
45+func getToolInteractionSignature(content fantasy.ResponseContent) uint64 {
4646 toolCalls := content.ToolCalls()
4747 if len(toolCalls) == 0 {
48− return ""
48+ return 0
4949 }
5050
5151 // Index tool results by their ToolCallID for fast lookup.
52− resultsByID := make(map[string]fantasy.ToolResultContent)
52+ resultsByID := make(map[string]fantasy.ToolResultContent, len(toolCalls))
5353 for _, tr := range content.ToolResults() {
5454 resultsByID[tr.ToolCallID] = tr
5555 }
5656
57− h := sha256.New()
57+ h := fnv.New64a()
5858 for _, tc := range toolCalls {
5959 output := ""
6060 if tr, ok := resultsByID[tc.ToolCallID]; ok {
6161 output = toolResultOutputString(tr.Result)
6262 }
63− io.WriteString(h, tc.ToolName)
64− io.WriteString(h, "\x00")
65− io.WriteString(h, tc.Input)
66− io.WriteString(h, "\x00")
67− io.WriteString(h, output)
68− io.WriteString(h, "\x00")
63+ _, _ = io.WriteString(h, tc.ToolName)
64+ h.Write([]byte{0})
65+ _, _ = io.WriteString(h, tc.Input)
66+ h.Write([]byte{0})
67+ _, _ = io.WriteString(h, output)
68+ h.Write([]byte{0})
6969 }
70− return hex.EncodeToString(h.Sum(nil))
70+ return h.Sum64()
7171}
7272
7373// toolResultOutputString converts a ToolResultOutputContent to a stable string
internal/agent/loop_detection_test.go+8−8
@@ -145,18 +145,18 @@ func TestHasRepeatedToolCalls(t *testing.T) {
145145func TestGetToolInteractionSignature(t *testing.T) {
146146 t.Run("empty content returns empty string", func(t *testing.T) {
147147 sig := getToolInteractionSignature(fantasy.ResponseContent{})
148− if sig != "" {
149− t.Errorf("expected empty string, got %q", sig)
148+ if sig != 0 {
149+ t.Errorf("expected zero signature, got %d", sig)
150150 }
151151 })
152152
153− t.Run("text only content returns empty string", func(t *testing.T) {
153+ t.Run("text only content returns zero signature", func(t *testing.T) {
154154 content := fantasy.ResponseContent{
155155 fantasy.TextContent{Text: "hello"},
156156 }
157157 sig := getToolInteractionSignature(content)
158− if sig != "" {
159− t.Errorf("expected empty string, got %q", sig)
158+ if sig != 0 {
159+ t.Errorf("expected zero signature, got %d", sig)
160160 }
161161 })
162162
@@ -166,8 +166,8 @@ func TestGetToolInteractionSignature(t *testing.T) {
166166 fantasy.ToolResultContent{ToolCallID: "1", ToolName: "read", Result: fantasy.ToolResultOutputContentText{Text: "content"}},
167167 }
168168 sig := getToolInteractionSignature(content)
169− if sig == "" {
170− t.Error("expected non-empty signature")
169+ if sig == 0 {
170+ t.Error("expected non-zero signature")
171171 }
172172 })
173173
@@ -183,7 +183,7 @@ func TestGetToolInteractionSignature(t *testing.T) {
183183 sig1 := getToolInteractionSignature(content1)
184184 sig2 := getToolInteractionSignature(content2)
185185 if sig1 != sig2 {
186− t.Errorf("expected same signature for same interactions, got %q and %q", sig1, sig2)
186+ t.Errorf("expected same signature for same interactions, got %d and %d", sig1, sig2)
187187 }
188188 })
189189
internal/agent/prompt/prompt.go+1−1
@@ -115,7 +115,7 @@ func processContextPath(p string, store *config.ConfigStore) []ContextFile {
115115 return contexts
116116 }
117117 if info.IsDir() {
118− filepath.WalkDir(fullPath, func(path string, d os.DirEntry, err error) error {
118+ _ = filepath.WalkDir(fullPath, func(path string, d os.DirEntry, err error) error {
119119 if err != nil {
120120 return err
121121 }
internal/agent/tools/bash.go+3−3
@@ -250,7 +250,7 @@ func NewBashTool(permissions permission.Service, workingDir string, attribution
250250
251251 if done {
252252 // Command failed or completed very quickly
253− bgManager.Remove(bgShell.ID)
253+ _ = bgManager.Remove(bgShell.ID)
254254
255255 interrupted := shell.IsInterrupt(execErr)
256256 exitCode := shell.ExitCode(execErr)
@@ -325,7 +325,7 @@ func NewBashTool(permissions permission.Service, workingDir string, attribution
325325 case <-ctx.Done():
326326 // Incoming context was cancelled before we moved to background
327327 // Kill the shell and return error
328− bgManager.Kill(bgShell.ID)
328+ _ = bgManager.Kill(bgShell.ID)
329329 return fantasy.ToolResponse{}, ctx.Err()
330330 }
331331 }
@@ -334,7 +334,7 @@ func NewBashTool(permissions permission.Service, workingDir string, attribution
334334 // Command completed within threshold - return synchronously
335335 // Remove from background manager since we're returning directly
336336 // Don't call Kill() as it cancels the context and corrupts the exit code
337− bgManager.Remove(bgShell.ID)
337+ _ = bgManager.Remove(bgShell.ID)
338338
339339 interrupted := shell.IsInterrupt(execErr)
340340 exitCode := shell.ExitCode(execErr)
internal/agent/tools/download.go+3−3
@@ -67,7 +67,7 @@ func NewDownloadTool(permissions permission.Service, workingDir string, client *
6767 downloadDescription(),
6868 func(ctx context.Context, params DownloadParams, call fantasy.ToolCall) (fantasy.ToolResponse, error) {
6969 if params.URL == "" {
70− return fantasy.NewTextErrorResponse("URL parameter is required"), nil
70+ return fantasy.NewTextErrorResponse("url parameter is required"), nil
7171 }
7272
7373 if params.FilePath == "" {
@@ -75,7 +75,7 @@ func NewDownloadTool(permissions permission.Service, workingDir string, client *
7575 }
7676
7777 if !strings.HasPrefix(params.URL, "http://") && !strings.HasPrefix(params.URL, "https://") {
78− return fantasy.NewTextErrorResponse("URL must start with http:// or https://"), nil
78+ return fantasy.NewTextErrorResponse("url must start with http:// or https://"), nil
7979 }
8080
8181 filePath := filepathext.SmartJoin(workingDir, params.FilePath)
@@ -131,7 +131,7 @@ func NewDownloadTool(permissions permission.Service, workingDir string, client *
131131 defer resp.Body.Close()
132132
133133 if resp.StatusCode != http.StatusOK {
134− return fantasy.NewTextErrorResponse(fmt.Sprintf("Request failed with status code: %d", resp.StatusCode)), nil
134+ return fantasy.NewTextErrorResponse(fmt.Sprintf("request failed with status code: %d", resp.StatusCode)), nil
135135 }
136136
137137 // Create parent directories if they don't exist
internal/agent/tools/edit.go+4−1
@@ -352,7 +352,7 @@ func replaceContent(edit editContext, filePath, oldString, newString string, rep
352352
353353 sessionID := GetSessionFromContext(edit.ctx)
354354 if sessionID == "" {
355− return fantasy.ToolResponse{}, fmt.Errorf("session ID is required for edit a file")
355+ return fantasy.ToolResponse{}, fmt.Errorf("session ID is required for editing a file")
356356 }
357357
358358 lastRead := edit.filetracker.LastReadTime(edit.ctx, sessionID, filePath)
@@ -381,6 +381,9 @@ func replaceContent(edit editContext, filePath, oldString, newString string, rep
381381
382382 if replaceAll {
383383 newContent = strings.ReplaceAll(oldContent, oldString, newString)
384+ if newContent == oldContent {
385+ return oldStringNotFoundErr, nil
386+ }
384387 } else {
385388 index := strings.Index(oldContent, oldString)
386389 if index == -1 {
internal/agent/tools/fetch.go+12−12
@@ -60,21 +60,21 @@ func NewFetchTool(permissions permission.Service, workingDir string, client *htt
6060 fetchDescription(),
6161 func(ctx context.Context, params FetchParams, call fantasy.ToolCall) (fantasy.ToolResponse, error) {
6262 if params.URL == "" {
63− return fantasy.NewTextErrorResponse("URL parameter is required"), nil
63+ return fantasy.NewTextErrorResponse("url parameter is required"), nil
6464 }
6565
6666 format := strings.ToLower(params.Format)
6767 if format != "text" && format != "markdown" && format != "html" {
68− return fantasy.NewTextErrorResponse("Format must be one of: text, markdown, html"), nil
68+ return fantasy.NewTextErrorResponse("format must be one of: text, markdown, html"), nil
6969 }
7070
7171 if !strings.HasPrefix(params.URL, "http://") && !strings.HasPrefix(params.URL, "https://") {
72− return fantasy.NewTextErrorResponse("URL must start with http:// or https://"), nil
72+ return fantasy.NewTextErrorResponse("url must start with http:// or https://"), nil
7373 }
7474
7575 sessionID := GetSessionFromContext(ctx)
7676 if sessionID == "" {
77− return fantasy.ToolResponse{}, fmt.Errorf("session ID is required for creating a new file")
77+ return fantasy.ToolResponse{}, fmt.Errorf("session ID is required for fetching content")
7878 }
7979
8080 p, err := permissions.Request(
@@ -124,19 +124,19 @@ func NewFetchTool(permissions permission.Service, workingDir string, client *htt
124124 defer resp.Body.Close()
125125
126126 if resp.StatusCode != http.StatusOK {
127− return fantasy.NewTextErrorResponse(fmt.Sprintf("Request failed with status code: %d", resp.StatusCode)), nil
127+ return fantasy.NewTextErrorResponse(fmt.Sprintf("request failed with status code: %d", resp.StatusCode)), nil
128128 }
129129
130130 body, err := io.ReadAll(io.LimitReader(resp.Body, MaxFetchSize))
131131 if err != nil {
132− return fantasy.NewTextErrorResponse("Failed to read response body: " + err.Error()), nil
132+ return fantasy.NewTextErrorResponse("failed to read response body: " + err.Error()), nil
133133 }
134134
135135 content := string(body)
136136
137137 validUTF8 := utf8.ValidString(content)
138138 if !validUTF8 {
139− return fantasy.NewTextErrorResponse("Response content is not valid UTF-8"), nil
139+ return fantasy.NewTextErrorResponse("response content is not valid UTF-8"), nil
140140 }
141141 contentType := resp.Header.Get("Content-Type")
142142
@@ -145,7 +145,7 @@ func NewFetchTool(permissions permission.Service, workingDir string, client *htt
145145 if strings.Contains(contentType, "text/html") {
146146 text, err := extractTextFromHTML(content)
147147 if err != nil {
148− return fantasy.NewTextErrorResponse("Failed to extract text from HTML: " + err.Error()), nil
148+ return fantasy.NewTextErrorResponse("failed to extract text from HTML: " + err.Error()), nil
149149 }
150150 content = text
151151 }
@@ -154,7 +154,7 @@ func NewFetchTool(permissions permission.Service, workingDir string, client *htt
154154 if strings.Contains(contentType, "text/html") {
155155 markdown, err := convertHTMLToMarkdown(content)
156156 if err != nil {
157− return fantasy.NewTextErrorResponse("Failed to convert HTML to Markdown: " + err.Error()), nil
157+ return fantasy.NewTextErrorResponse("failed to convert HTML to Markdown: " + err.Error()), nil
158158 }
159159 content = markdown
160160 }
@@ -166,14 +166,14 @@ func NewFetchTool(permissions permission.Service, workingDir string, client *htt
166166 if strings.Contains(contentType, "text/html") {
167167 doc, err := goquery.NewDocumentFromReader(strings.NewReader(content))
168168 if err != nil {
169− return fantasy.NewTextErrorResponse("Failed to parse HTML: " + err.Error()), nil
169+ return fantasy.NewTextErrorResponse("failed to parse HTML: " + err.Error()), nil
170170 }
171171 body, err := doc.Find("body").Html()
172172 if err != nil {
173− return fantasy.NewTextErrorResponse("Failed to extract body from HTML: " + err.Error()), nil
173+ return fantasy.NewTextErrorResponse("failed to extract body from HTML: " + err.Error()), nil
174174 }
175175 if body == "" {
176− return fantasy.NewTextErrorResponse("No body content found in HTML"), nil
176+ return fantasy.NewTextErrorResponse("no body content found in HTML"), nil
177177 }
178178 content = "<html>\n<body>\n" + body + "\n</body>\n</html>"
179179 }
internal/agent/tools/grep.go+11−4
@@ -235,6 +235,8 @@ func searchWithRipgrep(ctx context.Context, pattern, path, include string) ([]gr
235235 }
236236
237237 var matches []grepMatch
238+ // modTime is only used for sorting; stat each unique path once.
239+ modTimes := make(map[string]time.Time)
238240 for line := range bytes.SplitSeq(bytes.TrimSpace(output), []byte{'\n'}) {
239241 if len(line) == 0 {
240242 continue
@@ -247,13 +249,18 @@ func searchWithRipgrep(ctx context.Context, pattern, path, include string) ([]gr
247249 continue
248250 }
249251 for _, m := range match.Data.Submatches {
250− fi, err := os.Stat(match.Data.Path.Text)
251− if err != nil {
252− continue // Skip files we can't access
252+ modTime, ok := modTimes[match.Data.Path.Text]
253+ if !ok {
254+ fi, err := os.Stat(match.Data.Path.Text)
255+ if err != nil {
256+ continue // Skip files we can't access
257+ }
258+ modTime = fi.ModTime()
259+ modTimes[match.Data.Path.Text] = modTime
253260 }
254261 matches = append(matches, grepMatch{
255262 path: match.Data.Path.Text,
256− modTime: fi.ModTime(),
263+ modTime: modTime,
257264 lineNum: match.Data.LineNumber,
258265 charNum: m.Start + 1, // ensure 1-based
259266 lineText: strings.TrimSpace(match.Data.Lines.Text),
internal/agent/tools/ls.go+1−1
@@ -163,7 +163,7 @@ func ListDirectoryTree(searchPath string, params LSParams, lsConfig config.ToolL
163163 output = fmt.Sprintf("There are more than %d files in the directory. Use a more specific path or use the Glob tool to find specific files. The first %[1]d files and directories are included below.\n", maxFiles)
164164 }
165165 if depth > 0 {
166− output = fmt.Sprintf("The directory tree is shown up to a depth of %d. Use a higher depth and a specific path to see more levels.\n", cmp.Or(params.Depth, depth))
166+ output += fmt.Sprintf("The directory tree is shown up to a depth of %d. Use a higher depth and a specific path to see more levels.\n", cmp.Or(params.Depth, depth))
167167 }
168168 return output + "\n" + printTree(tree, searchPath), metadata, nil
169169}
internal/agent/tools/mcp-tools.go+2−2
@@ -99,7 +99,7 @@ func (m *Tool) Info() fantasy.ToolInfo {
9999func (m *Tool) Run(ctx context.Context, params fantasy.ToolCall) (fantasy.ToolResponse, error) {
100100 sessionID := GetSessionFromContext(ctx)
101101 if sessionID == "" {
102− return fantasy.ToolResponse{}, fmt.Errorf("session ID is required for creating a new file")
102+ return fantasy.ToolResponse{}, fmt.Errorf("session ID is required for executing MCP tool")
103103 }
104104
105105 // Skip permission for whitelisted Docker MCP tools.
@@ -134,7 +134,7 @@ func (m *Tool) Run(ctx context.Context, params fantasy.ToolCall) (fantasy.ToolRe
134134 case "image", "media":
135135 if !GetSupportsImagesFromContext(ctx) {
136136 modelName := GetModelNameFromContext(ctx)
137− return fantasy.NewTextErrorResponse(fmt.Sprintf("This model (%s) does not support image data.", modelName)), nil
137+ return fantasy.NewTextErrorResponse(fmt.Sprintf("this model (%s) does not support image data.", modelName)), nil
138138 }
139139
140140 var response fantasy.ToolResponse
internal/agent/tools/mcp/init.go+22−3
@@ -55,11 +55,19 @@ func (s *ClientSession) Close() error {
5555var (
5656 sessions = csync.NewMap[string, *ClientSession]()
5757 states = csync.NewMap[string, ClientInfo]()
58− broker = pubsub.NewBroker[Event]()
59− initOnce sync.Once
60− initDone = make(chan struct{})
58+ // sessionLastOK records the last time a session was confirmed alive
59+ // (successful ping or freshly created). Used to skip redundant pings
60+ // within livenessTTL before each MCP tool call.
61+ sessionLastOK = csync.NewMap[string, time.Time]()
62+ broker = pubsub.NewBroker[Event]()
63+ initOnce sync.Once
64+ initDone = make(chan struct{})
6165)
6266
67+// livenessTTL is how long a session is trusted to be alive after a successful
68+// ping/create before getOrRenewClient pings it again.
69+const livenessTTL = 30 * time.Second
70+
6371// State represents the current state of an MCP client
6472type State int
6573
@@ -260,6 +268,7 @@ func initClient(ctx context.Context, cfg *config.ConfigStore, name string, m con
260268 toolCount := updateTools(cfg, name, tools)
261269 updatePrompts(name, prompts)
262270 sessions.Set(name, session)
271+ sessionLastOK.Set(name, time.Now())
263272
264273 updateState(name, StateConnected, nil, session, Counts{
265274 Tools: toolCount,
@@ -280,6 +289,7 @@ func DisableSingle(cfg *config.ConfigStore, name string) error {
280289 slog.Warn("Error closing MCP session", "name", name, "error", err)
281290 }
282291 sessions.Del(name)
292+ sessionLastOK.Del(name)
283293 }
284294
285295 // Clear tools and prompts for this MCP.
@@ -299,6 +309,11 @@ func getOrRenewClient(ctx context.Context, cfg *config.ConfigStore, name string)
299309 return nil, fmt.Errorf("mcp '%s' not available", name)
300310 }
301311
312+ // Skip the ping if this session was confirmed alive very recently.
313+ if last, ok := sessionLastOK.Get(name); ok && time.Since(last) < livenessTTL {
314+ return sess, nil
315+ }
316+
302317 m := cfg.Config().MCP[name]
303318 state, _ := states.Get(name)
304319
@@ -307,8 +322,10 @@ func getOrRenewClient(ctx context.Context, cfg *config.ConfigStore, name string)
307322 defer cancel()
308323 err := sess.Ping(pingCtx, nil)
309324 if err == nil {
325+ sessionLastOK.Set(name, time.Now())
310326 return sess, nil
311327 }
328+ sessionLastOK.Del(name)
312329 updateState(name, StateError, maybeTimeoutErr(err, timeout), nil, state.Counts)
313330
314331 sess, err = createSession(ctx, name, m, cfg.Resolver())
@@ -318,6 +335,7 @@ func getOrRenewClient(ctx context.Context, cfg *config.ConfigStore, name string)
318335
319336 updateState(name, StateConnected, nil, sess, state.Counts)
320337 sessions.Set(name, sess)
338+ sessionLastOK.Set(name, time.Now())
321339 return sess, nil
322340}
323341
@@ -335,6 +353,7 @@ func updateState(name string, state State, err error, client *ClientSession, cou
335353 info.ConnectedAt = time.Now()
336354 case StateError:
337355 sessions.Del(name)
356+ sessionLastOK.Del(name)
338357 }
339358 states.Set(name, info)
340359
internal/agent/tools/mcp/tools.go+14
@@ -206,6 +206,20 @@ func ensureRawBytes(data []byte) []byte {
206206}
207207
208208func normalizeBase64Input(data []byte) []byte {
209+ // Fast path: if the data is all-ASCII and contains no whitespace, there is
210+ // nothing for strings.Fields to strip, so avoid copying the (potentially
211+ // multi-MB) payload. Bytes >= 0x80 could be part of a non-ASCII Unicode
212+ // space that strings.Fields would strip, so fall back to the slow path.
213+ fast := true
214+ for _, b := range data {
215+ if b >= 0x80 || b == ' ' || b == '\t' || b == '\n' || b == '\v' || b == '\f' || b == '\r' {
216+ fast = false
217+ break
218+ }
219+ }
220+ if fast {
221+ return data
222+ }
209223 normalized := strings.Join(strings.Fields(string(data)), "")
210224 return []byte(normalized)
211225}
internal/agent/tools/multiedit.go−1
@@ -445,7 +445,6 @@ func applyEditToContent(content string, edit MultiEditOperation) (string, error)
445445 }
446446
447447 newContent = content[:index] + edit.NewString + content[index+len(edit.OldString):]
448− replacementCount = 1
449448 }
450449
451450 return newContent, nil
internal/agent/tools/references.go−8
@@ -24,10 +24,6 @@ type ReferencesParams struct {
2424 Path string `json:"path,omitempty" description:"The directory to search in. Use a directory/file to narrow down the symbol search. Defaults to the current working directory."`
2525}
2626
27−type referencesTool struct {
28− lspManager *lsp.Manager
29−}
30−
3127const ReferencesToolName = "lsp_references"
3228
3329//go:embed references.md
@@ -91,10 +87,6 @@ func NewReferencesTool(lspManager *lsp.Manager) fantasy.AgentTool {
9187 )
9288}
9389
94−func (r *referencesTool) Name() string {
95− return ReferencesToolName
96−}
97−
9890func find(ctx context.Context, lspManager *lsp.Manager, symbol string, match grepMatch) ([]protocol.Location, error) {
9991 absPath, err := filepath.Abs(match.path)
10092 if err != nil {
internal/agent/tools/safe.go+12−2
@@ -72,8 +72,19 @@ func init() {
7272 "where",
7373 )
7474 }
75+
76+ // Precompute the tokenized form of each safe command once, so
77+ // isSafeReadOnly doesn't re-split on every call.
78+ safeCommandTokens = make([][]string, len(safeCommands))
79+ for i, safeCmd := range safeCommands {
80+ safeCommandTokens[i] = strings.Fields(safeCmd)
81+ }
7582}
7683
84+// safeCommandTokens holds the tokenized form of safeCommands, populated in
85+// init after any platform-specific entries are appended.
86+var safeCommandTokens [][]string
87+
7788// isSafeReadOnly reports whether command is a single, simple, read-only
7889// command that can run without a permission prompt.
7990//
@@ -133,8 +144,7 @@ func isSafeReadOnly(command string) bool {
133144 return false
134145 }
135146
136− for _, safeCmd := range safeCommands {
137− tokens := strings.Fields(safeCmd)
147+ for _, tokens := range safeCommandTokens {
138148 if len(argv) < len(tokens) {
139149 continue
140150 }
internal/agent/tools/sourcegraph.go+4−4
@@ -64,7 +64,7 @@ func NewSourcegraphTool(client *http.Client) fantasy.AgentTool {
6464 sourcegraphDescription(),
6565 func(ctx context.Context, params SourcegraphParams, call fantasy.ToolCall) (fantasy.ToolResponse, error) {
6666 if params.Query == "" {
67− return fantasy.NewTextErrorResponse("Query parameter is required"), nil
67+ return fantasy.NewTextErrorResponse("query parameter is required"), nil
6868 }
6969
7070 if params.Count <= 0 {
@@ -129,10 +129,10 @@ func NewSourcegraphTool(client *http.Client) fantasy.AgentTool {
129129 if resp.StatusCode != http.StatusOK {
130130 body, _ := io.ReadAll(resp.Body)
131131 if len(body) > 0 {
132− return fantasy.NewTextErrorResponse(fmt.Sprintf("Request failed with status code: %d, response: %s", resp.StatusCode, string(body))), nil
132+ return fantasy.NewTextErrorResponse(fmt.Sprintf("request failed with status code: %d, response: %s", resp.StatusCode, string(body))), nil
133133 }
134134
135− return fantasy.NewTextErrorResponse(fmt.Sprintf("Request failed with status code: %d", resp.StatusCode)), nil
135+ return fantasy.NewTextErrorResponse(fmt.Sprintf("request failed with status code: %d", resp.StatusCode)), nil
136136 }
137137 body, err := io.ReadAll(resp.Body)
138138 if err != nil {
@@ -146,7 +146,7 @@ func NewSourcegraphTool(client *http.Client) fantasy.AgentTool {
146146
147147 formattedResults, err := formatSourcegraphResults(result, params.ContextWindow)
148148 if err != nil {
149− return fantasy.NewTextErrorResponse("Failed to format results: " + err.Error()), nil
149+ return fantasy.NewTextErrorResponse("failed to format results: " + err.Error()), nil
150150 }
151151
152152 return fantasy.NewTextResponse(formattedResults), nil
internal/agent/tools/view.go+24−23
@@ -12,6 +12,7 @@ import (
1212 "net/http"
1313 "os"
1414 "path/filepath"
15+ "strconv"
1516 "strings"
1617 "time"
1718 "unicode/utf8"
@@ -176,19 +177,19 @@ func NewViewTool(
176177 }
177178
178179 if len(suggestions) > 0 {
179− return fantasy.NewTextErrorResponse(fmt.Sprintf("File not found: %s\n\nDid you mean one of these?\n%s",
180+ return fantasy.NewTextErrorResponse(fmt.Sprintf("file not found: %s\n\nDid you mean one of these?\n%s",
180181 filePath, strings.Join(suggestions, "\n"))), nil
181182 }
182183 }
183184
184− return fantasy.NewTextErrorResponse(fmt.Sprintf("File not found: %s", filePath)), nil
185+ return fantasy.NewTextErrorResponse(fmt.Sprintf("file not found: %s", filePath)), nil
185186 }
186187 return fantasy.ToolResponse{}, fmt.Errorf("error accessing file: %w", err)
187188 }
188189
189190 // Check if it's a directory
190191 if fileInfo.IsDir() {
191− return fantasy.NewTextErrorResponse(fmt.Sprintf("Path is a directory, not a file: %s", filePath)), nil
192+ return fantasy.NewTextErrorResponse(fmt.Sprintf("path is a directory, not a file: %s", filePath)), nil
192193 }
193194
194195 // Set default limit if not provided (no limit for SKILL.md files)
@@ -203,12 +204,12 @@ func NewViewTool(
203204 isSupportedImage, mimeType := getImageMimeType(filePath)
204205 if isSupportedImage {
205206 if fileInfo.Size() > MaxViewSize {
206− return fantasy.NewTextErrorResponse(fmt.Sprintf("Image file is too large (%d bytes). Maximum size is %d bytes",
207+ return fantasy.NewTextErrorResponse(fmt.Sprintf("image file is too large (%d bytes). Maximum size is %d bytes",
207208 fileInfo.Size(), MaxViewSize)), nil
208209 }
209210 if !GetSupportsImagesFromContext(ctx) {
210211 modelName := GetModelNameFromContext(ctx)
211− return fantasy.NewTextErrorResponse(fmt.Sprintf("This model (%s) does not support image data.", modelName)), nil
212+ return fantasy.NewTextErrorResponse(fmt.Sprintf("this model (%s) does not support image data.", modelName)), nil
212213 }
213214
214215 imageData, readErr := os.ReadFile(filePath)
@@ -236,13 +237,13 @@ func NewViewTool(
236237 if err != nil {
237238 var tooLarge contentTooLargeError
238239 if errors.As(err, &tooLarge) {
239− return fantasy.NewTextErrorResponse(fmt.Sprintf("Content section is too large (%d bytes). Maximum size is %d bytes",
240+ return fantasy.NewTextErrorResponse(fmt.Sprintf("content section is too large (%d bytes). Maximum size is %d bytes",
240241 tooLarge.Size, tooLarge.Max)), nil
241242 }
242243 return fantasy.ToolResponse{}, fmt.Errorf("error reading file: %w", err)
243244 }
244245 if !utf8.ValidString(content) {
245− return fantasy.NewTextErrorResponse("File content is not valid UTF-8"), nil
246+ return fantasy.NewTextErrorResponse("file content is not valid UTF-8"), nil
246247 }
247248
248249 openInLSPs(ctx, lspManager, filePath)
@@ -252,7 +253,7 @@ func NewViewTool(
252253
253254 if hasMore {
254255 output += fmt.Sprintf("\n\n(File has more lines. Use 'offset' parameter to read beyond line %d)",
255− params.Offset+len(strings.Split(content, "\n")))
256+ params.Offset+strings.Count(content, "\n")+1)
256257 }
257258 output += "\n</file>\n"
258259 output += getDiagnostics(filePath, lspManager)
@@ -284,24 +285,24 @@ func addLineNumbers(content string, startLine int) string {
284285 return ""
285286 }
286287
287− lines := strings.Split(content, "\n")
288−
289− var result []string
290− for i, line := range lines {
288+ var b strings.Builder
289+ for i, line := range strings.Split(content, "\n") {
290+ if i > 0 {
291+ b.WriteByte('\n')
292+ }
291293 line = strings.TrimSuffix(line, "\r")
292294
293− lineNum := i + startLine
294− numStr := fmt.Sprintf("%d", lineNum)
295−
296− if len(numStr) >= 6 {
297− result = append(result, fmt.Sprintf("%s|%s", numStr, line))
298− } else {
299− paddedNum := fmt.Sprintf("%6s", numStr)
300− result = append(result, fmt.Sprintf("%s|%s", paddedNum, line))
295+ numStr := strconv.Itoa(i + startLine)
296+ // Right-align to a width of 6 (numbers with >=6 digits are unpadded).
297+ for pad := 6 - len(numStr); pad > 0; pad-- {
298+ b.WriteByte(' ')
301299 }
300+ b.WriteString(numStr)
301+ b.WriteByte('|')
302+ b.WriteString(line)
302303 }
303304
304− return strings.Join(result, "\n")
305+ return b.String()
305306}
306307
307308func readTextFile(filePath string, offset, limit, maxContentSize int) (string, bool, error) {
@@ -447,12 +448,12 @@ func readBuiltinFile(params ViewParams, skillTracker *skills.Tracker) (fantasy.T
447448
448449 data, err := fs.ReadFile(builtinFS, embeddedPath)
449450 if err != nil {
450− return fantasy.NewTextErrorResponse(fmt.Sprintf("Builtin file not found: %s", params.FilePath)), nil
451+ return fantasy.NewTextErrorResponse(fmt.Sprintf("builtin file not found: %s", params.FilePath)), nil
451452 }
452453
453454 content := string(data)
454455 if !utf8.ValidString(content) {
455− return fantasy.NewTextErrorResponse("File content is not valid UTF-8"), nil
456+ return fantasy.NewTextErrorResponse("file content is not valid UTF-8"), nil
456457 }
457458
458459 limit := params.Limit
internal/agent/tools/view_test.go+2−2
@@ -151,7 +151,7 @@ func TestViewToolBlocksOversizedReturnedSections(t *testing.T) {
151151 })
152152
153153 require.True(t, resp.IsError)
154− require.Contains(t, resp.Content, "Content section is too large")
154+ require.Contains(t, resp.Content, "content section is too large")
155155}
156156
157157func TestViewToolBlocksOversizedImages(t *testing.T) {
@@ -169,7 +169,7 @@ func TestViewToolBlocksOversizedImages(t *testing.T) {
169169 })
170170
171171 require.True(t, resp.IsError)
172− require.Contains(t, resp.Content, "Image file is too large")
172+ require.Contains(t, resp.Content, "image file is too large")
173173}
174174
175175func TestReadTextFileEnforcesMaxContentSize(t *testing.T) {
internal/agent/tools/web_fetch.go+4−4
@@ -45,7 +45,7 @@ func NewWebFetchTool(workingDir string, client *http.Client) fantasy.AgentTool {
4545
4646 content, err := FetchURLAndConvert(ctx, client, params.URL)
4747 if err != nil {
48− return fantasy.NewTextErrorResponse(fmt.Sprintf("Failed to fetch URL: %s", err)), nil
48+ return fantasy.NewTextErrorResponse(fmt.Sprintf("failed to fetch URL: %s", err)), nil
4949 }
5050
5151 hasLargeContent := len(content) > LargeContentThreshold
@@ -54,16 +54,16 @@ func NewWebFetchTool(workingDir string, client *http.Client) fantasy.AgentTool {
5454 if hasLargeContent {
5555 tempFile, err := os.CreateTemp(workingDir, "page-*.md")
5656 if err != nil {
57− return fantasy.NewTextErrorResponse(fmt.Sprintf("Failed to create temporary file: %s", err)), nil
57+ return fantasy.NewTextErrorResponse(fmt.Sprintf("failed to create temporary file: %s", err)), nil
5858 }
5959 tempFilePath := tempFile.Name()
6060
6161 if _, err := tempFile.WriteString(content); err != nil {
6262 _ = tempFile.Close() // Best effort close
63− return fantasy.NewTextErrorResponse(fmt.Sprintf("Failed to write content to file: %s", err)), nil
63+ return fantasy.NewTextErrorResponse(fmt.Sprintf("failed to write content to file: %s", err)), nil
6464 }
6565 if err := tempFile.Close(); err != nil {
66− return fantasy.NewTextErrorResponse(fmt.Sprintf("Failed to close temporary file: %s", err)), nil
66+ return fantasy.NewTextErrorResponse(fmt.Sprintf("failed to close temporary file: %s", err)), nil
6767 }
6868
6969 fmt.Fprintf(&result, "Fetched content from %s (large page)\n\n", params.URL)
internal/agent/tools/web_search.go+1−1
@@ -53,7 +53,7 @@ func NewWebSearchTool(client *http.Client) fantasy.AgentTool {
5353 results, err := searchDuckDuckGo(ctx, client, params.Query, maxResults)
5454 slog.Debug("Web search completed", "query", params.Query, "results", len(results), "err", err)
5555 if err != nil {
56− return fantasy.NewTextErrorResponse("Failed to search: " + err.Error()), nil
56+ return fantasy.NewTextErrorResponse("failed to search: " + err.Error()), nil
5757 }
5858
5959 return fantasy.NewTextResponse(formatSearchResults(results)), nil
internal/agent/tools/write.go+15−14
@@ -66,21 +66,25 @@ func NewWriteTool(
6666 filePath := filepathext.SmartJoin(workingDir, params.FilePath)
6767
6868 fileInfo, err := os.Stat(filePath)
69+ oldContent := ""
6970 if err == nil {
7071 if fileInfo.IsDir() {
71− return fantasy.NewTextErrorResponse(fmt.Sprintf("Path is a directory, not a file: %s", filePath)), nil
72+ return fantasy.NewTextErrorResponse(fmt.Sprintf("path is a directory, not a file: %s", filePath)), nil
7273 }
7374
7475 modTime := fileInfo.ModTime().Truncate(time.Second)
7576 lastRead := filetracker.LastReadTime(ctx, sessionID, filePath)
7677 if modTime.After(lastRead) {
77− return fantasy.NewTextErrorResponse(fmt.Sprintf("File %s has been modified since it was last read.\nLast modification: %s\nLast read: %s\n\nPlease read the file again before modifying it.",
78+ return fantasy.NewTextErrorResponse(fmt.Sprintf("file %s has been modified since it was last read.\nLast modification: %s\nLast read: %s\n\nPlease read the file again before modifying it.",
7879 filePath, modTime.Format(time.RFC3339), lastRead.Format(time.RFC3339))), nil
7980 }
8081
81− oldContent, readErr := os.ReadFile(filePath)
82− if readErr == nil && string(oldContent) == params.Content {
83− return fantasy.NewTextErrorResponse(fmt.Sprintf("File %s already contains the exact content. No changes made.", filePath)), nil
82+ oldBytes, readErr := os.ReadFile(filePath)
83+ if readErr == nil {
84+ oldContent = string(oldBytes)
85+ if oldContent == params.Content {
86+ return fantasy.NewTextErrorResponse(fmt.Sprintf("file %s already contains the exact content. No changes made.", filePath)), nil
87+ }
8488 }
8589 } else if !os.IsNotExist(err) {
8690 return fantasy.ToolResponse{}, fmt.Errorf("error checking file: %w", err)
@@ -91,20 +95,17 @@ func NewWriteTool(
9195 return fantasy.ToolResponse{}, fmt.Errorf("error creating directory: %w", err)
9296 }
9397
94− oldContent := ""
95− if fileInfo != nil && !fileInfo.IsDir() {
96− oldBytes, readErr := os.ReadFile(filePath)
97− if readErr == nil {
98− oldContent = string(oldBytes)
99− }
100− }
101−
10298 diff, additions, removals := diff.GenerateDiff(
10399 oldContent,
104100 params.Content,
105101 strings.TrimPrefix(filePath, workingDir),
106102 )
107103
104+ description := fmt.Sprintf("Create file %s", filePath)
105+ if fileInfo != nil && !fileInfo.IsDir() {
106+ description = fmt.Sprintf("Overwrite file %s", filePath)
107+ }
108+
108109 p, err := permissions.Request(
109110 ctx,
110111 permission.CreatePermissionRequest{
@@ -113,7 +114,7 @@ func NewWriteTool(
113114 ToolCallID: call.ID,
114115 ToolName: WriteToolName,
115116 Action: "write",
116− Description: fmt.Sprintf("Create file %s", filePath),
117+ Description: description,
117118 Params: WritePermissionsParams{
118119 FilePath: filePath,
119120 OldContent: oldContent,
internal/agent/usage_fallback.go−9
@@ -33,15 +33,6 @@ func fallbackStepUsage(messages []fantasy.Message, step fantasy.StepResult) (fan
3333 }, true
3434}
3535
36−func cloneFantasyMessages(messages []fantasy.Message) []fantasy.Message {
37− cloned := make([]fantasy.Message, len(messages))
38− for i, msg := range messages {
39− cloned[i] = msg
40− cloned[i].Content = append([]fantasy.MessagePart(nil), msg.Content...)
41− }
42− return cloned
43−}
44−
4536func estimateMessageTokens(messages []fantasy.Message) int64 {
4637 var tokens int64
4738 for _, msg := range messages {
internal/app/app.go+48−6
@@ -74,8 +74,13 @@ type App struct {
7474 tuiWG *sync.WaitGroup
7575
7676 // global context and cleanup functions
77− globalCtx context.Context
78− cleanupFuncs []func(context.Context) error
77+ globalCtx context.Context
78+ cleanupFuncs []func(context.Context) error
79+ // bgCancel cancels the context passed to the fire-and-forget
80+ // goroutines launched from New (update check, MCP init, LSP tracking);
81+ // bgWG tracks them so Shutdown can join them before closing the DB.
82+ bgCancel context.CancelFunc
83+ bgWG sync.WaitGroup
7984 agentNotifications *pubsub.Broker[notify.Notification]
8085 // runCompletions is the authoritative per-run completion signal,
8186 // emitted once per top-level agent turn after all message
@@ -134,10 +139,16 @@ func New(ctx context.Context, conn *sql.DB, store *config.ConfigStore, skillsMgr
134139 slog.Warn("Clipboard initialization failed", "error", err)
135140 }
136141
142+ // Background goroutines run on a cancelable context so Shutdown can
143+ // stop and join them (see goBackground / Shutdown) rather than leaking
144+ // them past teardown.
145+ bgCtx, bgCancel := context.WithCancel(ctx)
146+ app.bgCancel = bgCancel
147+
137148 // Check for updates in the background.
138− go app.checkForUpdates(ctx)
149+ app.goBackground(func() { app.checkForUpdates(bgCtx) })
139150
140− go mcp.Initialize(ctx, app.Permissions, store)
151+ app.goBackground(func() { mcp.Initialize(bgCtx, app.Permissions, store) })
141152
142153 // Start herdr integration when running inside a herdr pane.
143154 app.herdrClient = herdr.Init()
@@ -175,11 +186,22 @@ func New(ctx context.Context, conn *sql.DB, store *config.ConfigStore, skillsMgr
175186 client.SetDiagnosticsCallback(updateLSPDiagnostics)
176187 updateLSPState(name, client.GetServerState(), nil, client, 0)
177188 })
178− go app.LSPManager.TrackConfigured()
189+ app.goBackground(app.LSPManager.TrackConfigured)
179190
180191 return app, nil
181192}
182193
194+// goBackground runs fn in a goroutine tracked by bgWG so Shutdown can join
195+// it. Callers whose work is cancelable should close over the app's
196+// background context (see New) so bgCancel actually interrupts them.
197+func (app *App) goBackground(fn func()) {
198+ app.bgWG.Add(1)
199+ go func() {
200+ defer app.bgWG.Done()
201+ fn()
202+ }()
203+}
204+
183205// Config returns the pure-data configuration.
184206func (app *App) Config() *config.Config {
185207 return app.config.Config()
@@ -320,7 +342,9 @@ func (app *App) RunNonInteractive(ctx context.Context, output io.Writer, prompt,
320342 }
321343
322344 // force update of agent models before running so mcp tools are loaded
323− app.AgentCoordinator.UpdateModels(ctx)
345+ if err := app.AgentCoordinator.UpdateModels(ctx); err != nil {
346+ slog.Warn("failed to update agent models", "error", err)
347+ }
324348
325349 defer stopSpinner()
326350
@@ -690,6 +714,24 @@ func (app *App) Shutdown() {
690714 }
691715 }
692716
717+ // Cancel and join the fire-and-forget goroutines from New before the
718+ // DB/MCP cleanup below, so none keep touching a closing store, DB, or
719+ // MCP registry. Bounded by shutdownCtx so a goroutine that ignores
720+ // cancellation can't hang shutdown.
721+ if app.bgCancel != nil {
722+ app.bgCancel()
723+ }
724+ bgJoined := make(chan struct{})
725+ go func() {
726+ app.bgWG.Wait()
727+ close(bgJoined)
728+ }()
729+ select {
730+ case <-bgJoined:
731+ case <-shutdownCtx.Done():
732+ slog.Warn("Timed out waiting for background goroutines on shutdown")
733+ }
734+
693735 // Now run remaining cleanup tasks in parallel.
694736 var wg sync.WaitGroup
695737
internal/backend/backend.go+18
@@ -649,6 +649,24 @@ func (w *Workspace) AttachedClientsForSession(sessionID string) int {
649649 return n
650650}
651651
652+// AttachedClientCountsBySession returns, for every session with at least
653+// one attached client, the number of clients currently viewing it. Only
654+// clients with a live SSE stream (streams > 0) are counted; hold-only
655+// clients (streams == 0) do not contribute. It acquires [clientsMu] once
656+// and iterates the client set a single time, so callers that need counts
657+// for many sessions avoid an O(sessions x clients) scan.
658+func (w *Workspace) AttachedClientCountsBySession() map[string]int {
659+ w.clientsMu.Lock()
660+ defer w.clientsMu.Unlock()
661+ counts := make(map[string]int)
662+ for _, cs := range w.clients {
663+ if cs.streams > 0 {
664+ counts[cs.currentSessionID]++
665+ }
666+ }
667+ return counts
668+}
669+
652670// GetWorkspaceProto returns the proto representation of a workspace.
653671func (b *Backend) GetWorkspaceProto(id string) (proto.Workspace, error) {
654672 ws, err := b.GetWorkspace(id)
internal/backend/config_test.go+7−9
@@ -81,15 +81,13 @@ func TestRemoveConfigField_PublishesConfigChanged(t *testing.T) {
8181
8282func TestUpdatePreferredModel_PublishesConfigChanged(t *testing.T) {
8383 if raceEnabled {
84− // UpdatePreferredModel writes config.Models concurrently
85− // with the agent coordinator's async sub-agent builder
86− // that reads it via buildAgentModels. That race is
87− // pre-existing in the codebase and unrelated to this
88− // item; ConfigStore mutations are not currently
89− // synchronized against background readers in [app.App].
90− // The mutator → publish wiring is unit-tested via
91− // publishConfigChanged regardless.
92− t.Skip("skipped under -race: pre-existing race between ConfigStore writes and agent coordinator startup")
84+ // The backend package has pre-existing, flaky data races under
85+ // -race in its agent-run/attach/hold lifecycle that surface only
86+ // under full-package timing pressure. This test spins up the full
87+ // coordinator, so it is skipped under -race to keep CI stable
88+ // until that concurrency debt is addressed. The mutator → publish
89+ // wiring is unit-tested via publishConfigChanged regardless.
90+ t.Skip("skipped under -race: pre-existing backend lifecycle races")
9391 }
9492 b, ws, evc := newPublishingWorkspace(t)
9593
internal/client/proto.go+2−4
@@ -661,11 +661,9 @@ func (c *Client) GetConfig(ctx context.Context, id string) (*config.Config, erro
661661 return &cfg, nil
662662}
663663
664−func jsonBody(v any) *bytes.Buffer {
665− b := new(bytes.Buffer)
664+func jsonBody(v any) io.Reader {
666665 m, _ := json.Marshal(v)
667− b.Write(m)
668− return b
666+ return bytes.NewReader(m)
669667}
670668
671669// SaveSession updates a session in a workspace, returning a proto type.
internal/cmd/logs.go+3−3
@@ -95,7 +95,7 @@ func followLogs(ctx context.Context, logsFile string, tailLines int) error {
9595 lines = lines[len(lines)-tailLines:]
9696 }
9797 }
98− t.Stop()
98+ _ = t.Stop()
9999
100100 for _, line := range lines {
101101 printLogLine(line)
@@ -115,7 +115,7 @@ func followLogs(ctx context.Context, logsFile string, tailLines int) error {
115115 if err != nil {
116116 return fmt.Errorf("failed to tail log file: %v", err)
117117 }
118− defer t.Stop()
118+ defer func() { _ = t.Stop() }()
119119
120120 for {
121121 select {
@@ -140,7 +140,7 @@ func showLogs(logsFile string, tailLines int) error {
140140 if err != nil {
141141 return fmt.Errorf("failed to tail log file: %v", err)
142142 }
143− defer t.Stop()
143+ defer func() { _ = t.Stop() }()
144144
145145 var lines []string
146146 for line := range t.Lines {
internal/cmd/root.go+1−26
@@ -3,7 +3,6 @@ package cmd
33import (
44 "bytes"
55 "context"
6− _ "embed"
76 "errors"
87 "fmt"
98 "io"
@@ -125,7 +124,7 @@ crush --continue
125124 event.AppInitialized()
126125
127126 com := common.DefaultCommon(ws)
128− model := ui.New(com, sessionID, continueLast)
127+ model := ui.New(cmd.Context(), com, sessionID, continueLast)
129128
130129 inputFilter := ui.NewFilter()
131130 var env uv.Environ = os.Environ()
@@ -840,27 +839,3 @@ func ResolveCwd(cmd *cobra.Command) (string, error) {
840839 }
841840 return cwd, nil
842841}
843−
844−func createDotCrushDir(dir string) error {
845− if err := os.MkdirAll(dir, 0o700); err != nil {
846− return fmt.Errorf("failed to create data directory: %q %w", dir, err)
847− }
848−
849− gitIgnorePath := filepath.Join(dir, ".gitignore")
850− content, err := os.ReadFile(gitIgnorePath)
851−
852− // create or update if old version
853− if os.IsNotExist(err) || string(content) == oldGitIgnore {
854− if err := os.WriteFile(gitIgnorePath, []byte(defaultGitIgnore), 0o644); err != nil {
855− return fmt.Errorf("failed to create .gitignore file: %q %w", gitIgnorePath, err)
856− }
857− }
858−
859− return nil
860−}
861−
862−//go:embed gitignore/old
863−var oldGitIgnore string
864−
865−//go:embed gitignore/default
866−var defaultGitIgnore string
internal/cmd/session.go+1−1
@@ -485,7 +485,7 @@ func outputSessionHuman(ctx context.Context, cfg *config.ConfigStore, sess sessi
485485
486486 first := true
487487 for _, msg := range msgs {
488− items := chat.ExtractMessageItems(&styles, msg, toolResults)
488+ items := chat.ExtractMessageItems(&styles, msg, toolResults, "")
489489 for _, item := range items {
490490 if !first {
491491 fmt.Fprintln(&buf)
internal/config/config.go+5−2
@@ -221,8 +221,11 @@ type LSPConfig struct {
221221type TUIOptions struct {
222222 CompactMode bool `json:"compact_mode,omitempty" jsonschema:"description=Enable compact mode for the TUI interface,default=false"`
223223 DiffMode string `json:"diff_mode,omitempty" jsonschema:"description=Diff mode for the TUI interface,enum=unified,enum=split"`
224− // Here we can add themes later or any TUI related options
225− //
224+ DiffTool string `json:"diff_tool,omitempty" jsonschema:"description=External diff tool for edit diffs in the TUI,enum=builtin,enum=difftastic,default=builtin"`
225+ // Theme selects the TUI color scheme. "auto" (the default) picks light
226+ // or dark based on the detected terminal background; "dark"/"light"
227+ // force a specific scheme.
228+ Theme string `json:"theme,omitempty" jsonschema:"description=TUI color scheme,enum=auto,enum=dark,enum=light,default=auto"`
226229
227230 Completions Completions `json:"completions,omitzero" jsonschema:"description=Completions UI options"`
228231 Transparent *bool `json:"transparent,omitempty" jsonschema:"description=Enable transparent background for the TUI interface,default=false"`
internal/config/hyper.go+1−1
@@ -106,7 +106,7 @@ func (r realHyperClient) Get(ctx context.Context, etag string) (catwalk.Provider
106106 if err != nil {
107107 return result, fmt.Errorf("failed to make request: %w", err)
108108 }
109− defer resp.Body.Close() //nolint:errcheck
109+ defer resp.Body.Close()
110110
111111 if resp.StatusCode == http.StatusNotModified {
112112 return result, catwalk.ErrNotModified
internal/config/load.go+3−1
@@ -292,7 +292,9 @@ func (c *Config) configureProviders(ctx context.Context, store *ConfigStore, env
292292 // state is kept consistent by the Providers.Del call below; any
293293 // concurrent reload that races with this write will also see the
294294 // removal because it re-reads from disk.
295− store.RemoveConfigField(ScopeGlobal, "providers.anthropic")
295+ if err := store.RemoveConfigField(ScopeGlobal, "providers.anthropic"); err != nil {
296+ slog.Warn("failed to remove anthropic provider config field", "error", err)
297+ }
296298 c.Providers.Del(string(p.ID))
297299 continue
298300 case p.ID == catwalk.InferenceProviderCopilot && config.OAuthToken != nil:
internal/config/store.go+41−18
@@ -133,19 +133,28 @@ func (s *ConfigStore) WorkingDir() string {
133133
134134// Resolver returns the variable resolver.
135135func (s *ConfigStore) Resolver() VariableResolver {
136+ s.configMu.RLock()
137+ defer s.configMu.RUnlock()
136138 return s.resolver
137139}
138140
139141// Resolve resolves a variable reference using the configured resolver.
140142func (s *ConfigStore) Resolve(key string) (string, error) {
141− if s.resolver == nil {
143+ // Snapshot the resolver under the lock, then resolve without it:
144+ // ResolveValue may be slow and can call back into the store.
145+ s.configMu.RLock()
146+ resolver := s.resolver
147+ s.configMu.RUnlock()
148+ if resolver == nil {
142149 return "", fmt.Errorf("no variable resolver configured")
143150 }
144− return s.resolver.ResolveValue(key)
151+ return resolver.ResolveValue(key)
145152}
146153
147154// KnownProviders returns the list of known providers.
148155func (s *ConfigStore) KnownProviders() []catwalk.Provider {
156+ s.configMu.RLock()
157+ defer s.configMu.RUnlock()
149158 return s.knownProviders
150159}
151160
@@ -161,6 +170,8 @@ func (s *ConfigStore) Overrides() *RuntimeOverrides {
161170
162171// LoadedPaths returns the config file paths that were successfully loaded.
163172func (s *ConfigStore) LoadedPaths() []string {
173+ s.configMu.RLock()
174+ defer s.configMu.RUnlock()
164175 return slices.Clone(s.loadedPaths)
165176}
166177
@@ -233,10 +244,13 @@ func (s *ConfigStore) atomicWrite(scope Scope, fn func(current []byte) ([]byte,
233244func (s *ConfigStore) configPath(scope Scope) (string, error) {
234245 switch scope {
235246 case ScopeWorkspace:
236− if s.workspacePath == "" {
247+ s.configMu.RLock()
248+ workspacePath := s.workspacePath
249+ s.configMu.RUnlock()
250+ if workspacePath == "" {
237251 return "", ErrNoWorkspaceConfig
238252 }
239− return s.workspacePath, nil
253+ return workspacePath, nil
240254 default:
241255 return s.globalDataPath, nil
242256 }
@@ -484,8 +498,11 @@ func (s *ConfigStore) SetProviderAPIKey(scope Scope, providerID string, apiKey a
484498 return nil
485499 }
486500
501+ s.configMu.RLock()
502+ knownProviders := s.knownProviders
503+ s.configMu.RUnlock()
487504 var foundProvider *catwalk.Provider
488− for _, p := range s.knownProviders {
505+ for _, p := range knownProviders {
489506 if string(p.ID) == providerID {
490507 foundProvider = &p
491508 break
@@ -760,7 +777,7 @@ func (s *ConfigStore) ImportCopilot() (*oauth.Token, bool) {
760777 }
761778
762779 slog.Info("Found existing GitHub Copilot token on disk. Authenticating...")
763− token, err := copilot.RefreshToken(context.TODO(), diskToken)
780+ token, err := copilot.RefreshToken(context.Background(), diskToken)
764781 if err != nil {
765782 slog.Error("Unable to import GitHub Copilot token", "error", err)
766783 return nil, false
@@ -885,8 +902,11 @@ func (s *ConfigStore) CaptureStalenessSnapshot(paths []string) {
885902 }
886903
887904 // Also track workspace and global config paths if set
888− if s.workspacePath != "" {
889− abs, err := filepath.Abs(s.workspacePath)
905+ s.configMu.RLock()
906+ workspacePath := s.workspacePath
907+ s.configMu.RUnlock()
908+ if workspacePath != "" {
909+ abs, err := filepath.Abs(workspacePath)
890910 if err == nil {
891911 seen[abs] = struct{}{}
892912 }
@@ -906,7 +926,9 @@ func (s *ConfigStore) CaptureStalenessSnapshot(paths []string) {
906926 slices.Sort(s.trackedConfigPaths)
907927
908928 // Capture initial snapshots
909− s.RefreshStalenessSnapshot()
929+ if err := s.RefreshStalenessSnapshot(); err != nil {
930+ slog.Warn("failed to refresh staleness snapshot", "error", err)
931+ }
910932}
911933
912934// captureStalenessSnapshot is an alias for CaptureStalenessSnapshot for internal use.
@@ -966,9 +988,6 @@ func (s *ConfigStore) reloadFromDiskLocked(ctx context.Context) error {
966988 return fmt.Errorf("invalid hook configuration on reload: %w", err)
967989 }
968990
969− // Preserve runtime overrides
970− overrides := s.overrides
971−
972991 // Reconfigure providers
973992 env := env.New()
974993 resolver := NewShellVariableResolver(env)
@@ -986,16 +1005,19 @@ func (s *ConfigStore) reloadFromDiskLocked(ctx context.Context) error {
9861005 oldLoadedPaths := s.loadedPaths
9871006 oldResolver := s.resolver
9881007 oldKnownProviders := s.knownProviders
989− oldOverrides := s.overrides
9901008 oldWorkspacePath := s.workspacePath
9911009
992− // Update store state BEFORE running model/agent setup (so they see new config)
993− s.setConfig(cfg)
1010+ // Update store state BEFORE running model/agent setup (so they see new
1011+ // config). All reload-mutated fields are published atomically under
1012+ // configMu so the lock-free public readers (Resolver, KnownProviders,
1013+ // LoadedPaths, configPath) never observe a torn update.
1014+ s.configMu.Lock()
1015+ s.config = cfg
9941016 s.loadedPaths = loadedPaths
9951017 s.resolver = resolver
9961018 s.knownProviders = providers
997− s.overrides = overrides
9981019 s.workspacePath = workspacePath
1020+ s.configMu.Unlock()
9991021
10001022 // Mirror startup flow: setup models and agents against NEW config.
10011023 var setupErr error
@@ -1014,12 +1036,13 @@ func (s *ConfigStore) reloadFromDiskLocked(ctx context.Context) error {
10141036
10151037 // Rollback on setup failure
10161038 if setupErr != nil {
1017− s.setConfig(oldConfig)
1039+ s.configMu.Lock()
1040+ s.config = oldConfig
10181041 s.loadedPaths = oldLoadedPaths
10191042 s.resolver = oldResolver
10201043 s.knownProviders = oldKnownProviders
1021− s.overrides = oldOverrides
10221044 s.workspacePath = oldWorkspacePath
1045+ s.configMu.Unlock()
10231046 return setupErr
10241047 }
10251048
internal/db/db.go+11−1
@@ -1,6 +1,6 @@
11// Code generated by sqlc. DO NOT EDIT.
22// versions:
3−// sqlc v1.30.0
3+// sqlc v1.31.1
44
55package db
66
@@ -111,6 +111,9 @@ func Prepare(ctx context.Context, db DBTX) (*Queries, error) {
111111 if q.listMessagesBySessionStmt, err = db.PrepareContext(ctx, listMessagesBySession); err != nil {
112112 return nil, fmt.Errorf("error preparing query ListMessagesBySession: %w", err)
113113 }
114+ if q.listMessagesBySessionAfterStmt, err = db.PrepareContext(ctx, listMessagesBySessionAfter); err != nil {
115+ return nil, fmt.Errorf("error preparing query ListMessagesBySessionAfter: %w", err)
116+ }
114117 if q.listNewFilesStmt, err = db.PrepareContext(ctx, listNewFiles); err != nil {
115118 return nil, fmt.Errorf("error preparing query ListNewFiles: %w", err)
116119 }
@@ -288,6 +291,11 @@ func (q *Queries) Close() error {
288291 err = fmt.Errorf("error closing listMessagesBySessionStmt: %w", cerr)
289292 }
290293 }
294+ if q.listMessagesBySessionAfterStmt != nil {
295+ if cerr := q.listMessagesBySessionAfterStmt.Close(); cerr != nil {
296+ err = fmt.Errorf("error closing listMessagesBySessionAfterStmt: %w", cerr)
297+ }
298+ }
291299 if q.listNewFilesStmt != nil {
292300 if cerr := q.listNewFilesStmt.Close(); cerr != nil {
293301 err = fmt.Errorf("error closing listNewFilesStmt: %w", cerr)
@@ -401,6 +409,7 @@ type Queries struct {
401409 listFilesBySessionStmt *sql.Stmt
402410 listLatestSessionFilesStmt *sql.Stmt
403411 listMessagesBySessionStmt *sql.Stmt
412+ listMessagesBySessionAfterStmt *sql.Stmt
404413 listNewFilesStmt *sql.Stmt
405414 listSessionReadFilesStmt *sql.Stmt
406415 listSessionsStmt *sql.Stmt
@@ -445,6 +454,7 @@ func (q *Queries) WithTx(tx *sql.Tx) *Queries {
445454 listFilesBySessionStmt: q.listFilesBySessionStmt,
446455 listLatestSessionFilesStmt: q.listLatestSessionFilesStmt,
447456 listMessagesBySessionStmt: q.listMessagesBySessionStmt,
457+ listMessagesBySessionAfterStmt: q.listMessagesBySessionAfterStmt,
448458 listNewFilesStmt: q.listNewFilesStmt,
449459 listSessionReadFilesStmt: q.listSessionReadFilesStmt,
450460 listSessionsStmt: q.listSessionsStmt,
internal/db/files.sql.go+1−1
@@ -1,6 +1,6 @@
11// Code generated by sqlc. DO NOT EDIT.
22// versions:
3−// sqlc v1.30.0
3+// sqlc v1.31.1
44// source: files.sql
55
66package db
internal/db/messages.sql.go+50−2
@@ -1,6 +1,6 @@
11// Code generated by sqlc. DO NOT EDIT.
22// versions:
3−// sqlc v1.30.0
3+// sqlc v1.31.1
44// source: messages.sql
55
66package db
@@ -38,7 +38,8 @@ type CreateMessageParams struct {
3838}
3939
4040func (q *Queries) CreateMessage(ctx context.Context, arg CreateMessageParams) (Message, error) {
41− row := q.queryRow(ctx, q.createMessageStmt, createMessage,
41+ row := q.queryRow(
42+ ctx, q.createMessageStmt, createMessage,
4243 arg.ID,
4344 arg.SessionID,
4445 arg.Role,
@@ -189,6 +190,53 @@ func (q *Queries) ListMessagesBySession(ctx context.Context, sessionID string) (
189190 return items, nil
190191}
191192
193+const listMessagesBySessionAfter = `-- name: ListMessagesBySessionAfter :many
194+SELECT m.id, m.session_id, m.role, m.parts, m.model, m.created_at, m.updated_at, m.finished_at, m.provider, m.is_summary_message
195+FROM messages m
196+WHERE m.session_id = ?
197+ AND m.created_at >= (SELECT m2.created_at FROM messages m2 WHERE m2.id = ?)
198+ORDER BY m.created_at ASC
199+`
200+
201+type ListMessagesBySessionAfterParams struct {
202+ SessionID string `json:"session_id"`
203+ ID string `json:"id"`
204+}
205+
206+func (q *Queries) ListMessagesBySessionAfter(ctx context.Context, arg ListMessagesBySessionAfterParams) ([]Message, error) {
207+ rows, err := q.query(ctx, q.listMessagesBySessionAfterStmt, listMessagesBySessionAfter, arg.SessionID, arg.ID)
208+ if err != nil {
209+ return nil, err
210+ }
211+ defer rows.Close()
212+ items := []Message{}
213+ for rows.Next() {
214+ var i Message
215+ if err := rows.Scan(
216+ &i.ID,
217+ &i.SessionID,
218+ &i.Role,
219+ &i.Parts,
220+ &i.Model,
221+ &i.CreatedAt,
222+ &i.UpdatedAt,
223+ &i.FinishedAt,
224+ &i.Provider,
225+ &i.IsSummaryMessage,
226+ ); err != nil {
227+ return nil, err
228+ }
229+ items = append(items, i)
230+ }
231+ if err := rows.Close(); err != nil {
232+ return nil, err
233+ }
234+ if err := rows.Err(); err != nil {
235+ return nil, err
236+ }
237+ return items, nil
238+}
239+
192240const listUserMessagesBySession = `-- name: ListUserMessagesBySession :many
193241SELECT id, session_id, role, parts, model, created_at, updated_at, finished_at, provider, is_summary_message
194242FROM messages
internal/db/migrations/20260702000000_add_hot_path_indexes.sqlnew file+14
@@ -0,0 +1,14 @@
1+-- +goose Up
2+-- +goose StatementBegin
3+-- Add indexes for hot-path queries that previously required full table scans.
4+CREATE INDEX IF NOT EXISTS idx_sessions_updated_at ON sessions (updated_at DESC);
5+CREATE INDEX IF NOT EXISTS idx_messages_role_created ON messages (role, created_at DESC);
6+CREATE INDEX IF NOT EXISTS idx_files_path_version ON files (path, version DESC);
7+-- +goose StatementEnd
8+
9+-- +goose Down
10+-- +goose StatementBegin
11+DROP INDEX IF EXISTS idx_sessions_updated_at;
12+DROP INDEX IF EXISTS idx_messages_role_created;
13+DROP INDEX IF EXISTS idx_files_path_version;
14+-- +goose StatementEnd
internal/db/models.go+1−1
@@ -1,6 +1,6 @@
11// Code generated by sqlc. DO NOT EDIT.
22// versions:
3−// sqlc v1.30.0
3+// sqlc v1.31.1
44
55package db
66
internal/db/querier.go+4−3
@@ -1,6 +1,6 @@
11// Code generated by sqlc. DO NOT EDIT.
22// versions:
3−// sqlc v1.30.0
3+// sqlc v1.31.1
44
55package db
66
@@ -38,15 +38,16 @@ type Querier interface {
3838 ListFilesBySession(ctx context.Context, sessionID string) ([]File, error)
3939 ListLatestSessionFiles(ctx context.Context, sessionID string) ([]File, error)
4040 ListMessagesBySession(ctx context.Context, sessionID string) ([]Message, error)
41+ ListMessagesBySessionAfter(ctx context.Context, arg ListMessagesBySessionAfterParams) ([]Message, error)
4142 ListNewFiles(ctx context.Context) ([]File, error)
4243 ListSessionReadFiles(ctx context.Context, sessionID string) ([]ReadFile, error)
4344 ListSessions(ctx context.Context) ([]Session, error)
4445 ListUserMessagesBySession(ctx context.Context, sessionID string) ([]Message, error)
4546 RecordFileRead(ctx context.Context, arg RecordFileReadParams) error
46− RenameSession(ctx context.Context, arg RenameSessionParams) error
47+ RenameSession(ctx context.Context, arg RenameSessionParams) (Session, error)
4748 UpdateMessage(ctx context.Context, arg UpdateMessageParams) error
4849 UpdateSession(ctx context.Context, arg UpdateSessionParams) (Session, error)
49− UpdateSessionTitleAndUsage(ctx context.Context, arg UpdateSessionTitleAndUsageParams) error
50+ UpdateSessionTitleAndUsage(ctx context.Context, arg UpdateSessionTitleAndUsageParams) (Session, error)
5051}
5152
5253var _ Querier = (*Queries)(nil)
internal/db/read_files.sql.go+1−1
@@ -1,6 +1,6 @@
11// Code generated by sqlc. DO NOT EDIT.
22// versions:
3−// sqlc v1.30.0
3+// sqlc v1.31.1
44// source: read_files.sql
55
66package db
internal/db/sessions.sql.go+39−9
@@ -1,6 +1,6 @@
11// Code generated by sqlc. DO NOT EDIT.
22// versions:
3−// sqlc v1.30.0
3+// sqlc v1.31.1
44// source: sessions.sql
55
66package db
@@ -176,11 +176,12 @@ func (q *Queries) ListSessions(ctx context.Context) ([]Session, error) {
176176 return items, nil
177177}
178178
179−const renameSession = `-- name: RenameSession :exec
179+const renameSession = `-- name: RenameSession :one
180180UPDATE sessions
181181SET
182182 title = ?
183183WHERE id = ?
184+RETURNING id, parent_session_id, title, message_count, prompt_tokens, completion_tokens, cost, updated_at, created_at, summary_message_id, todos
184185`
185186
186187type RenameSessionParams struct {
@@ -188,9 +189,23 @@ type RenameSessionParams struct {
188189 ID string `json:"id"`
189190}
190191
191−func (q *Queries) RenameSession(ctx context.Context, arg RenameSessionParams) error {
192− _, err := q.exec(ctx, q.renameSessionStmt, renameSession, arg.Title, arg.ID)
193− return err
192+func (q *Queries) RenameSession(ctx context.Context, arg RenameSessionParams) (Session, error) {
193+ row := q.queryRow(ctx, q.renameSessionStmt, renameSession, arg.Title, arg.ID)
194+ var i Session
195+ err := row.Scan(
196+ &i.ID,
197+ &i.ParentSessionID,
198+ &i.Title,
199+ &i.MessageCount,
200+ &i.PromptTokens,
201+ &i.CompletionTokens,
202+ &i.Cost,
203+ &i.UpdatedAt,
204+ &i.CreatedAt,
205+ &i.SummaryMessageID,
206+ &i.Todos,
207+ )
208+ return i, err
194209}
195210
196211const updateSession = `-- name: UpdateSession :one
@@ -243,7 +258,7 @@ func (q *Queries) UpdateSession(ctx context.Context, arg UpdateSessionParams) (S
243258 return i, err
244259}
245260
246−const updateSessionTitleAndUsage = `-- name: UpdateSessionTitleAndUsage :exec
261+const updateSessionTitleAndUsage = `-- name: UpdateSessionTitleAndUsage :one
247262UPDATE sessions
248263SET
249264 title = ?,
@@ -252,6 +267,7 @@ SET
252267 cost = cost + ?,
253268 updated_at = strftime('%s', 'now')
254269WHERE id = ?
270+RETURNING id, parent_session_id, title, message_count, prompt_tokens, completion_tokens, cost, updated_at, created_at, summary_message_id, todos
255271`
256272
257273type UpdateSessionTitleAndUsageParams struct {
@@ -262,13 +278,27 @@ type UpdateSessionTitleAndUsageParams struct {
262278 ID string `json:"id"`
263279}
264280
265−func (q *Queries) UpdateSessionTitleAndUsage(ctx context.Context, arg UpdateSessionTitleAndUsageParams) error {
266− _, err := q.exec(ctx, q.updateSessionTitleAndUsageStmt, updateSessionTitleAndUsage,
281+func (q *Queries) UpdateSessionTitleAndUsage(ctx context.Context, arg UpdateSessionTitleAndUsageParams) (Session, error) {
282+ row := q.queryRow(ctx, q.updateSessionTitleAndUsageStmt, updateSessionTitleAndUsage,
267283 arg.Title,
268284 arg.PromptTokens,
269285 arg.CompletionTokens,
270286 arg.Cost,
271287 arg.ID,
272288 )
273− return err
289+ var i Session
290+ err := row.Scan(
291+ &i.ID,
292+ &i.ParentSessionID,
293+ &i.Title,
294+ &i.MessageCount,
295+ &i.PromptTokens,
296+ &i.CompletionTokens,
297+ &i.Cost,
298+ &i.UpdatedAt,
299+ &i.CreatedAt,
300+ &i.SummaryMessageID,
301+ &i.Todos,
302+ )
303+ return i, err
274304}
internal/db/sql/messages.sql+7
@@ -9,6 +9,13 @@ FROM messages
99WHERE session_id = ?
1010ORDER BY created_at ASC;
1111
12+-- name: ListMessagesBySessionAfter :many
13+SELECT m.*
14+FROM messages m
15+WHERE m.session_id = ?
16+ AND m.created_at >= (SELECT m2.created_at FROM messages m2 WHERE m2.id = ?)
17+ORDER BY m.created_at ASC;
18+
1219-- name: CreateMessage :one
1320INSERT INTO messages (
1421 id,
internal/db/sql/sessions.sql+6−4
@@ -52,7 +52,7 @@ SET
5252WHERE id = ?
5353RETURNING *;
5454
55−-- name: UpdateSessionTitleAndUsage :exec
55+-- name: UpdateSessionTitleAndUsage :one
5656UPDATE sessions
5757SET
5858 title = ?,
@@ -60,14 +60,16 @@ SET
6060 completion_tokens = completion_tokens + ?,
6161 cost = cost + ?,
6262 updated_at = strftime('%s', 'now')
63−WHERE id = ?;
63+WHERE id = ?
64+RETURNING *;
6465
6566
66−-- name: RenameSession :exec
67+-- name: RenameSession :one
6768UPDATE sessions
6869SET
6970 title = ?
70−WHERE id = ?;
71+WHERE id = ?
72+RETURNING *;
7173
7274-- name: DeleteSession :exec
7375DELETE FROM sessions
internal/db/stats.sql.go+1−1
@@ -1,6 +1,6 @@
11// Code generated by sqlc. DO NOT EDIT.
22// versions:
3−// sqlc v1.30.0
3+// sqlc v1.31.1
44// source: stats.sql
55
66package db
internal/fsext/lookup.go+2−7
@@ -258,7 +258,7 @@ func canonicalize(path string) string {
258258
259259// probeEnt checks if entity at given path exists and belongs to given owner
260260func probeEnt(fspath string, owner int) error {
261− _, err := os.Stat(fspath)
261+ info, err := os.Stat(fspath)
262262 if err != nil {
263263 return fmt.Errorf("cannot stat %s: %w", fspath, err)
264264 }
@@ -268,12 +268,7 @@ func probeEnt(fspath string, owner int) error {
268268 return nil
269269 }
270270
271− fowner, err := Owner(fspath)
272− if err != nil {
273− return fmt.Errorf("cannot get ownership for %s: %w", fspath, err)
274− }
275−
276− if fowner != owner {
271+ if ownerFromInfo(info) != owner {
277272 return os.ErrPermission
278273 }
279274
internal/fsext/owner_others.go+8−5
@@ -14,11 +14,14 @@ func Owner(path string) (int, error) {
1414 if err != nil {
1515 return 0, err
1616 }
17− var uid int
17+ return ownerFromInfo(info), nil
18+}
19+
20+// ownerFromInfo derives the owner user ID from an already-obtained
21+// os.FileInfo, avoiding a redundant stat.
22+func ownerFromInfo(info os.FileInfo) int {
1823 if stat, ok := info.Sys().(*syscall.Stat_t); ok {
19− uid = int(stat.Uid)
20− } else {
21− uid = os.Getuid()
24+ return int(stat.Uid)
2225 }
23− return uid, nil
26+ return os.Getuid()
2427}
internal/fsext/owner_windows.go+7
@@ -13,3 +13,10 @@ func Owner(path string) (int, error) {
1313 }
1414 return -1, nil
1515}
16+
17+// ownerFromInfo derives the owner user ID from an already-obtained
18+// os.FileInfo, avoiding a redundant stat. Windows does not resolve
19+// ownership, so it always returns the bypass sentinel.
20+func ownerFromInfo(_ os.FileInfo) int {
21+ return -1
22+}
internal/herdr/client.go+6−2
@@ -158,7 +158,9 @@ func (c *Client) registerInitial() {
158158 }
159159 c.mu.Lock()
160160 defer c.mu.Unlock()
161− c.snd.send(c.newRequestLocked("pane.report_agent", "init", stateIdle))
161+ if err := c.snd.send(c.newRequestLocked("pane.report_agent", "init", stateIdle)); err != nil {
162+ slog.Warn("failed to send herdr agent report", "error", err)
163+ }
162164}
163165
164166// Close releases the agent's authority on the pane and shuts down
@@ -297,7 +299,9 @@ func (c *Client) reportLocked(state string) {
297299 return
298300 }
299301 c.state = state
300− c.snd.send(c.newRequestLocked("pane.report_agent", "report", state))
302+ if err := c.snd.send(c.newRequestLocked("pane.report_agent", "report", state)); err != nil {
303+ slog.Warn("failed to send herdr agent report", "error", err)
304+ }
301305}
302306
303307// reportRequest is the JSON-RPC envelope sent to herdr.
internal/history/file.go+7−5
@@ -111,7 +111,7 @@ func (s *service) createWithVersion(ctx context.Context, sessionID, path, conten
111111 })
112112 if txErr != nil {
113113 // Rollback the transaction
114− tx.Rollback()
114+ _ = tx.Rollback()
115115
116116 // Check if this is a uniqueness constraint violation
117117 if strings.Contains(txErr.Error(), "UNIQUE constraint failed") {
@@ -194,15 +194,17 @@ func (s *service) Delete(ctx context.Context, id string) error {
194194}
195195
196196func (s *service) DeleteSessionFiles(ctx context.Context, sessionID string) error {
197+ // Fetch all files first so we can publish per-file DeletedEvent.
197198 files, err := s.ListBySession(ctx, sessionID)
198199 if err != nil {
199200 return err
200201 }
202+ // Single batch DELETE instead of N individual deletes.
203+ if err := s.q.DeleteSessionFiles(ctx, sessionID); err != nil {
204+ return err
205+ }
201206 for _, file := range files {
202− err = s.Delete(ctx, file.ID)
203− if err != nil {
204− return err
205− }
207+ s.Publish(pubsub.DeletedEvent, file)
206208 }
207209 return nil
208210}
internal/lsp/manager.go+28−8
@@ -27,6 +27,7 @@ const unavailableRetryDelay = 30 * time.Second
2727type Manager struct {
2828 clients *csync.Map[string, *Client]
2929 unavailable *csync.Map[string, time.Time]
30+ rootMarkers *csync.Map[string, bool]
3031 cfg *config.ConfigStore
3132 manager *powernapconfig.Manager
3233 callback func(name string, client *Client)
@@ -36,7 +37,9 @@ type Manager struct {
3637// NewManager creates a new LSP manager service.
3738func NewManager(cfg *config.ConfigStore) *Manager {
3839 manager := powernapconfig.NewManager()
39− manager.LoadDefaults()
40+ if err := manager.LoadDefaults(); err != nil {
41+ slog.Warn("failed to load LSP defaults", "error", err)
42+ }
4043
4144 // Merge user-configured LSPs into the manager.
4245 for name, clientConfig := range cfg.Config().LSP {
@@ -63,6 +66,7 @@ func NewManager(cfg *config.ConfigStore) *Manager {
6366 return &Manager{
6467 clients: csync.NewMap[string, *Client](),
6568 unavailable: csync.NewMap[string, time.Time](),
69+ rootMarkers: csync.NewMap[string, bool](),
6670 cfg: cfg,
6771 manager: manager,
6872 callback: func(string, *Client) {}, // default no-op callback
@@ -168,6 +172,14 @@ func (s *Manager) startServer(ctx context.Context, name, filepath string, server
168172 }
169173 }
170174
175+ // Cheap, pure string check first: if this server does not handle the
176+ // file type at all, skip the expensive PATH lookup and workspace
177+ // root-marker glob below. This gates the costly I/O on the zero-I/O
178+ // filetype match, without changing whether the server ultimately starts.
179+ if !handlesFiletype(server.Command, server.FileTypes, filepath) {
180+ return
181+ }
182+
171183 if !isUserConfigured {
172184 if s.recentlyUnavailable(name) {
173185 return
@@ -184,8 +196,8 @@ func (s *Manager) startServer(ctx context.Context, name, filepath string, server
184196 }
185197 }
186198
187− // this is the slowest bit, so we do it last.
188− if !handles(server, filepath, s.cfg.WorkingDir()) {
199+ // hasRootMarkers is the slowest bit (a workspace glob), so we do it last.
200+ if !s.hasRootMarkers(s.cfg.WorkingDir(), server.RootMarkers) {
189201 // nothing to do
190202 return
191203 }
@@ -329,6 +341,19 @@ func handlesFiletype(sname string, fileTypes []string, filePath string) bool {
329341 return false
330342}
331343
344+// hasRootMarkers reports whether dir contains any of the given root
345+// markers. The result is invariant for a fixed (dir, markers) pair, so it
346+// is memoized to avoid re-running the workspace glob on every file view.
347+func (s *Manager) hasRootMarkers(dir string, markers []string) bool {
348+ if len(markers) == 0 {
349+ return true
350+ }
351+ key := dir + "\x00" + strings.Join(markers, "\x00")
352+ return s.rootMarkers.GetOrSet(key, func() bool {
353+ return hasRootMarkers(dir, markers)
354+ })
355+}
356+
332357func hasRootMarkers(dir string, markers []string) bool {
333358 if len(markers) == 0 {
334359 return true
@@ -345,11 +370,6 @@ func hasRootMarkers(dir string, markers []string) bool {
345370 return false
346371}
347372
348−func handles(server *powernapconfig.ServerConfig, filePath, workDir string) bool {
349− return handlesFiletype(server.Command, server.FileTypes, filePath) &&
350− hasRootMarkers(workDir, server.RootMarkers)
351−}
352−
353373// KillAll force-kills all the LSP clients.
354374//
355375// This is generally faster than [Manager.StopAll] because it doesn't wait for
internal/message/content.go+3−2
@@ -547,8 +547,9 @@ func (m *Message) ToAIMessage() []fantasy.Message {
547547 case User:
548548 var parts []fantasy.MessagePart
549549 text := strings.TrimSpace(m.Content().Text)
550+ binaryContent := m.BinaryContent()
550551 var textAttachments []Attachment
551− for _, content := range m.BinaryContent() {
552+ for _, content := range binaryContent {
552553 if !strings.HasPrefix(content.MIMEType, "text/") {
553554 continue
554555 }
@@ -571,7 +572,7 @@ func (m *Message) ToAIMessage() []fantasy.Message {
571572 if text != "" {
572573 parts = append(parts, fantasy.TextPart{Text: text})
573574 }
574− for _, content := range m.BinaryContent() {
575+ for _, content := range binaryContent {
575576 // skip text attachements
576577 if strings.HasPrefix(content.MIMEType, "text/") {
577578 continue
internal/message/message.go+94−43
@@ -49,6 +49,7 @@ type Service interface {
4949 Update(ctx context.Context, message Message) error
5050 Get(ctx context.Context, id string) (Message, error)
5151 List(ctx context.Context, sessionID string) ([]Message, error)
52+ ListAfter(ctx context.Context, sessionID, afterMessageID string) ([]Message, error)
5253 ListUserMessages(ctx context.Context, sessionID string) ([]Message, error)
5354 ListAllUserMessages(ctx context.Context) ([]Message, error)
5455 Delete(ctx context.Context, id string) error
@@ -85,6 +86,11 @@ type pendingState struct {
8586 // but other flushers must back off.
8687 flushing bool
8788
89+ // flushDone is non-nil exactly while flushing is true. It is closed
90+ // (under service.mu) when the in-flight flush completes, so a sync
91+ // caller can wait on it instead of polling.
92+ flushDone chan struct{}
93+
8894 // timer is the active debounce timer, or nil if no flush is
8995 // scheduled. Stopped and reset when a terminal update preempts
9096 // the debounce window.
@@ -196,18 +202,34 @@ func (s *service) Create(ctx context.Context, sessionID string, params CreateMes
196202}
197203
198204func (s *service) DeleteSessionMessages(ctx context.Context, sessionID string) error {
205+ // Fetch all messages first so we can publish per-message DeletedEvent
206+ // for each (the UI uses them to remove individual chat entries).
199207 messages, err := s.List(ctx, sessionID)
200208 if err != nil {
201209 return err
202210 }
203− for _, message := range messages {
204− if message.SessionID == sessionID {
205− err = s.Delete(ctx, message.ID)
206− if err != nil {
207− return err
211+
212+ // Single batch DELETE instead of N individual deletes.
213+ if err := s.q.DeleteSessionMessages(ctx, sessionID); err != nil {
214+ return err
215+ }
216+
217+ // Drop any pending coalesced state and publish events for the
218+ // already-fetched messages — no redundant Get queries needed.
219+ s.mu.Lock()
220+ for _, msg := range messages {
221+ if p, ok := s.pending[msg.ID]; ok {
222+ if p.timer != nil {
223+ p.timer.Stop()
208224 }
225+ delete(s.pending, msg.ID)
209226 }
210227 }
228+ s.mu.Unlock()
229+
230+ for _, msg := range messages {
231+ s.Publish(pubsub.DeletedEvent, msg.Clone())
232+ }
211233 return nil
212234}
213235
@@ -324,9 +346,17 @@ func (s *service) flushOne(ctx context.Context, id string, syncCaller bool) erro
324346 s.mu.Unlock()
325347 return nil
326348 }
349+ // Wait for the in-flight flush to finish rather than
350+ // polling. flushDone is closed under s.mu when flushing
351+ // clears, and we capture it under the same lock, so the
352+ // wakeup can never be missed.
353+ done := p.flushDone
327354 s.mu.Unlock()
328− // Brief yield; in-flight write should land in <1ms typical.
329− time.Sleep(time.Millisecond)
355+ select {
356+ case <-done:
357+ case <-ctx.Done():
358+ return ctx.Err()
359+ }
330360 continue
331361 }
332362 if !p.dirty {
@@ -349,6 +379,7 @@ func (s *service) flushOne(ctx context.Context, id string, syncCaller bool) erro
349379 }
350380 isTerminal := shouldFlushNow(prev, &snap)
351381 p.flushing = true
382+ p.flushDone = make(chan struct{})
352383 p.dirty = false
353384 s.mu.Unlock()
354385
@@ -356,6 +387,10 @@ func (s *service) flushOne(ctx context.Context, id string, syncCaller bool) erro
356387
357388 s.mu.Lock()
358389 p.flushing = false
390+ if p.flushDone != nil {
391+ close(p.flushDone)
392+ p.flushDone = nil
393+ }
359394 if err == nil {
360395 p.lastFlushed = snap
361396 p.hasFlushed = true
@@ -463,6 +498,24 @@ func (s *service) List(ctx context.Context, sessionID string) ([]Message, error)
463498 return messages, nil
464499}
465500
501+func (s *service) ListAfter(ctx context.Context, sessionID, afterMessageID string) ([]Message, error) {
502+ dbMessages, err := s.q.ListMessagesBySessionAfter(ctx, db.ListMessagesBySessionAfterParams{
503+ SessionID: sessionID,
504+ ID: afterMessageID,
505+ })
506+ if err != nil {
507+ return nil, err
508+ }
509+ messages := make([]Message, len(dbMessages))
510+ for i, dbMessage := range dbMessages {
511+ messages[i], err = s.fromDBItem(dbMessage)
512+ if err != nil {
513+ return nil, err
514+ }
515+ }
516+ return messages, nil
517+}
518+
466519func (s *service) ListUserMessages(ctx context.Context, sessionID string) ([]Message, error) {
467520 dbMessages, err := s.q.ListUserMessagesBySession(ctx, sessionID)
468521 if err != nil {
@@ -565,76 +618,74 @@ func marshalParts(parts []ContentPart) ([]byte, error) {
565618}
566619
567620func unmarshalParts(data []byte) ([]ContentPart, error) {
568− temp := []json.RawMessage{}
621+ // Single-pass unmarshal into a wrapper with Data as json.RawMessage,
622+ // avoiding the intermediate []json.RawMessage + per-element re-decode.
623+ var temp []struct {
624+ Type partType `json:"type"`
625+ Data json.RawMessage `json:"data"`
626+ }
569627
570628 if err := json.Unmarshal(data, &temp); err != nil {
571629 return nil, err
572630 }
573631
574− parts := make([]ContentPart, 0)
575−
576− for _, rawPart := range temp {
577− var wrapper struct {
578− Type partType `json:"type"`
579− Data json.RawMessage `json:"data"`
580− }
581−
582− if err := json.Unmarshal(rawPart, &wrapper); err != nil {
583− return nil, err
584− }
632+ parts := make([]ContentPart, 0, len(temp))
585633
634+ for _, wrapper := range temp {
635+ var part ContentPart
586636 switch wrapper.Type {
587637 case reasoningType:
588− part := ReasoningContent{}
589− if err := json.Unmarshal(wrapper.Data, &part); err != nil {
638+ p := ReasoningContent{}
639+ if err := json.Unmarshal(wrapper.Data, &p); err != nil {
590640 return nil, err
591641 }
592− parts = append(parts, part)
642+ part = p
593643 case textType:
594− part := TextContent{}
595− if err := json.Unmarshal(wrapper.Data, &part); err != nil {
644+ p := TextContent{}
645+ if err := json.Unmarshal(wrapper.Data, &p); err != nil {
596646 return nil, err
597647 }
598− parts = append(parts, part)
648+ part = p
599649 case imageURLType:
600− part := ImageURLContent{}
601− if err := json.Unmarshal(wrapper.Data, &part); err != nil {
650+ p := ImageURLContent{}
651+ if err := json.Unmarshal(wrapper.Data, &p); err != nil {
602652 return nil, err
603653 }
604− parts = append(parts, part)
654+ part = p
605655 case binaryType:
606− part := BinaryContent{}
607− if err := json.Unmarshal(wrapper.Data, &part); err != nil {
656+ p := BinaryContent{}
657+ if err := json.Unmarshal(wrapper.Data, &p); err != nil {
608658 return nil, err
609659 }
610− parts = append(parts, part)
660+ part = p
611661 case toolCallType:
612− part := ToolCall{}
613− if err := json.Unmarshal(wrapper.Data, &part); err != nil {
662+ p := ToolCall{}
663+ if err := json.Unmarshal(wrapper.Data, &p); err != nil {
614664 return nil, err
615665 }
616− parts = append(parts, part)
666+ part = p
617667 case toolResultType:
618− part := ToolResult{}
619− if err := json.Unmarshal(wrapper.Data, &part); err != nil {
668+ p := ToolResult{}
669+ if err := json.Unmarshal(wrapper.Data, &p); err != nil {
620670 return nil, err
621671 }
622− parts = append(parts, part)
672+ part = p
623673 case finishType:
624− part := Finish{}
625− if err := json.Unmarshal(wrapper.Data, &part); err != nil {
674+ p := Finish{}
675+ if err := json.Unmarshal(wrapper.Data, &p); err != nil {
626676 return nil, err
627677 }
628− parts = append(parts, part)
678+ part = p
629679 case shellCommandType:
630− part := ShellCommand{}
631− if err := json.Unmarshal(wrapper.Data, &part); err != nil {
680+ p := ShellCommand{}
681+ if err := json.Unmarshal(wrapper.Data, &p); err != nil {
632682 return nil, err
633683 }
634− parts = append(parts, part)
684+ part = p
635685 default:
636686 return nil, fmt.Errorf("unknown part type: %s", wrapper.Type)
637687 }
688+ parts = append(parts, part)
638689 }
639690
640691 return parts, nil
internal/oauth/copilot/client.go+18−5
@@ -17,14 +17,20 @@ var assistantRolePattern = regexp.MustCompile(`"role"\s*:\s*"assistant"`)
1717// NewClient creates a new HTTP client with a custom transport that adds the
1818// X-Initiator header based on message history in the request body.
1919func NewClient(isSubAgent, debug bool) *http.Client {
20+ t := &initiatorTransport{debug: debug, isSubAgent: isSubAgent}
21+ if debug {
22+ // Build the debug HTTP client once and reuse it on every RoundTrip.
23+ t.debugClient = log.NewHTTPClient()
24+ }
2025 return &http.Client{
21− Transport: &initiatorTransport{debug: debug, isSubAgent: isSubAgent},
26+ Transport: t,
2227 }
2328}
2429
2530type initiatorTransport struct {
26− debug bool
27− isSubAgent bool
31+ debug bool
32+ isSubAgent bool
33+ debugClient *http.Client
2834}
2935
3036func (t *initiatorTransport) RoundTrip(req *http.Request) (*http.Response, error) {
@@ -37,6 +43,13 @@ func (t *initiatorTransport) RoundTrip(req *http.Request) (*http.Response, error
3743 if req == nil {
3844 return nil, fmt.Errorf("HTTP request is nil")
3945 }
46+ // Sub-agents are always attributed to the agent initiator regardless of
47+ // body content, so short-circuit before reading/cloning the body.
48+ if t.isSubAgent {
49+ req.Header.Set(xInitiatorHeader, agentInitiator)
50+ slog.Debug("Setting X-Initiator header to agent (sub-agent)")
51+ return t.roundTrip(req)
52+ }
4053 if req.Body == nil || req.Body == http.NoBody {
4154 // No body to inspect; default to user. A nil Body is valid for
4255 // bodyless requests (e.g. GET), and is distinct from http.NoBody,
@@ -62,7 +75,7 @@ func (t *initiatorTransport) RoundTrip(req *http.Request) (*http.Response, error
6275 // Check for assistant messages using regex to handle whitespace
6376 // variations in the JSON while avoiding full unmarshalling overhead.
6477 initiator := userInitiator
65− if assistantRolePattern.Match(bodyBytes) || t.isSubAgent {
78+ if assistantRolePattern.Match(bodyBytes) {
6679 slog.Debug("Setting X-Initiator header to agent (found assistant messages in history)")
6780 initiator = agentInitiator
6881 } else {
@@ -75,7 +88,7 @@ func (t *initiatorTransport) RoundTrip(req *http.Request) (*http.Response, error
7588
7689func (t *initiatorTransport) roundTrip(req *http.Request) (*http.Response, error) {
7790 if t.debug {
78− return log.NewHTTPClient().Transport.RoundTrip(req)
91+ return t.debugClient.Transport.RoundTrip(req)
7992 }
8093 return http.DefaultTransport.RoundTrip(req)
8194}
internal/permission/permission.go+29−24
@@ -201,6 +201,35 @@ func (s *permissionService) Request(ctx context.Context, opts CreatePermissionRe
201201 // sub-agents each needing approval would queue behind one another.
202202 // Per-request resolution is scoped by the pendingRequests map (keyed
203203 // by request ID), so the wait needs no global lock.
204+ // Resolve the target path and build the request before taking
205+ // requestMu. os.Stat is a blocking syscall and none of this setup
206+ // touches shared state (workingDir is immutable, uuid.New is
207+ // self-contained), so it does not need to serialize with other
208+ // in-flight requests.
209+ fileInfo, err := os.Stat(opts.Path)
210+ dir := opts.Path
211+ if err == nil {
212+ if fileInfo.IsDir() {
213+ dir = opts.Path
214+ } else {
215+ dir = filepath.Dir(opts.Path)
216+ }
217+ }
218+
219+ if dir == "." {
220+ dir = s.workingDir
221+ }
222+ permission := PermissionRequest{
223+ ID: uuid.New().String(),
224+ Path: dir,
225+ SessionID: opts.SessionID,
226+ ToolCallID: opts.ToolCallID,
227+ ToolName: opts.ToolName,
228+ Description: opts.Description,
229+ Action: opts.Action,
230+ Params: opts.Params,
231+ }
232+
204233 respCh, requestID, resolved, granted := func() (chan bool, string, bool, bool) {
205234 s.requestMu.Lock()
206235 defer s.requestMu.Unlock()
@@ -222,30 +251,6 @@ func (s *permissionService) Request(ctx context.Context, opts CreatePermissionRe
222251 return nil, "", true, true
223252 }
224253
225− fileInfo, err := os.Stat(opts.Path)
226− dir := opts.Path
227− if err == nil {
228− if fileInfo.IsDir() {
229− dir = opts.Path
230− } else {
231− dir = filepath.Dir(opts.Path)
232− }
233− }
234−
235− if dir == "." {
236− dir = s.workingDir
237− }
238− permission := PermissionRequest{
239− ID: uuid.New().String(),
240− Path: dir,
241− SessionID: opts.SessionID,
242− ToolCallID: opts.ToolCallID,
243− ToolName: opts.ToolName,
244− Description: opts.Description,
245− Action: opts.Action,
246− Params: opts.Params,
247− }
248−
249254 if _, ok := s.sessionPermissions.Get(PermissionKey{
250255 SessionID: permission.SessionID,
251256 ToolName: permission.ToolName,
internal/pubsub/broker.go+29−19
@@ -191,10 +191,16 @@ func (b *Broker[T]) Publish(t EventType, payload T) {
191191 case sub <- event:
192192 default:
193193 // Channel is full, subscriber is slow — skip this event.
194− // Lossy by design; counted and logged so saturation is
195− // observable.
196− b.dropCount.Add(1)
197− slog.Warn("Pubsub buffer full; dropping event", "type", t)
194+ // Lossy by design; counted so saturation is observable via
195+ // DropCount. The warning is throttled to power-of-two drop
196+ // counts (1, 2, 4, 8, …): saturation is exactly when this
197+ // path runs hottest, and an unthrottled per-event log — while
198+ // holding the RLock — would turn a slow subscriber into a
199+ // log-storm that slows every publisher further.
200+ if n := b.dropCount.Add(1); n&(n-1) == 0 {
201+ slog.Warn("Pubsub buffer full; dropping events",
202+ "type", t, "dropped_total", n)
203+ }
198204 }
199205 }
200206}
@@ -211,25 +217,31 @@ func (b *Broker[T]) Publish(t EventType, payload T) {
211217// after timeout — recovery is the subscriber's responsibility (e.g. a
212218// re-fetch on the next session-visible event).
213219func (b *Broker[T]) PublishMustDeliver(ctx context.Context, t EventType, payload T) {
220+ // Hold the read lock across the bounded-blocking sends below. Both
221+ // Shutdown and per-subscriber teardown close subscriber channels under
222+ // the write lock, so holding RLock here is what guarantees a send can
223+ // never race a close. The earlier lock-free snapshot released b.mu
224+ // before sending, which let Shutdown/unsubscribe close a channel
225+ // mid-send — a data race the race detector flags (the recover() that
226+ // used to sit in mustDeliver only masked the resulting panic).
227+ //
228+ // The cost is bounded and paid only under saturation: a stalled
229+ // subscriber can delay Subscribe/Shutdown by at most (number of
230+ // subscribers × mustDeliverTimeout). With this app's handful of
231+ // subscribers that ceiling is a few hundred milliseconds, and only
232+ // when a subscriber's buffer is already full.
214233 b.mu.RLock()
234+ defer b.mu.RUnlock()
235+
215236 select {
216237 case <-b.done:
217− b.mu.RUnlock()
218238 return
219239 default:
220240 }
241+
221242 event := Event[T]{Type: t, Payload: payload}
222243 timeout := b.mustDeliverTimeout
223− // Snapshot the subscribers so the bounded-blocking sends below run
224− // without holding b.mu. Holding the read lock across a blocking send
225− // would stall Subscribe/Shutdown for up to N×timeout under saturation.
226− subs := make([]chan Event[T], 0, len(b.subs))
227244 for sub := range b.subs {
228− subs = append(subs, sub)
229− }
230− b.mu.RUnlock()
231−
232− for _, sub := range subs {
233245 if b.mustDeliver(ctx, sub, event, timeout) {
234246 // Context cancelled; stop delivering to the remaining subs.
235247 return
@@ -239,12 +251,10 @@ func (b *Broker[T]) PublishMustDeliver(ctx context.Context, t EventType, payload
239251
240252// mustDeliver performs one bounded-blocking send. It reports whether the
241253// context was cancelled (so the caller stops delivering to remaining
242−// subscribers). Because sends happen without holding b.mu, the channel may
243−// be closed concurrently by Shutdown or an unsubscribe; sending on a closed
244−// channel panics, so we recover and treat that subscriber as gone.
254+// subscribers). The caller holds b.mu.RLock, and every subscriber-channel
255+// close happens under b.mu's write lock, so the channel cannot be closed
256+// concurrently with this send.
245257func (b *Broker[T]) mustDeliver(ctx context.Context, sub chan Event[T], event Event[T], timeout time.Duration) (ctxDone bool) {
246− defer func() { _ = recover() }()
247−
248258 // Fast path: non-blocking send.
249259 select {
250260 case sub <- event:
internal/pubsub/broker_test.go+35
@@ -57,6 +57,41 @@ func TestPublishMustDeliverDuringShutdown(t *testing.T) {
5757 wg.Wait()
5858}
5959
60+// TestPublishMustDeliverDuringUnsubscribe ensures a send can't race a
61+// per-subscriber teardown: each subscriber is cancelled individually while
62+// PublishMustDeliver is delivering to it. Run under -race, this fails if the
63+// broker ever sends on a channel a teardown goroutine is concurrently closing.
64+func TestPublishMustDeliverDuringUnsubscribe(t *testing.T) {
65+ t.Parallel()
66+ b := NewBrokerWithOptions[int](1)
67+ b.SetMustDeliverTimeout(time.Millisecond)
68+ defer b.Shutdown()
69+
70+ var wg sync.WaitGroup
71+ wg.Add(1)
72+ go func() {
73+ defer wg.Done()
74+ for range 200 {
75+ b.PublishMustDeliver(context.Background(), CreatedEvent, 1)
76+ }
77+ }()
78+
79+ for range 8 {
80+ wg.Add(1)
81+ go func() {
82+ defer wg.Done()
83+ // Per-subscriber context: cancelling it tears the subscriber
84+ // down (removing + closing its channel) concurrently with the
85+ // publisher above. Never drained, so its buffer saturates and
86+ // sends block, widening the race window.
87+ ctx, cancel := context.WithCancel(context.Background())
88+ b.Subscribe(ctx)
89+ cancel()
90+ }()
91+ }
92+ wg.Wait()
93+}
94+
6095// TestSubscribeGoroutineExitsOnShutdown ensures the per-subscriber goroutine
6196// unblocks on Shutdown even when its context outlives the broker.
6297func TestSubscribeGoroutineExitsOnShutdown(t *testing.T) {
internal/server/proto.go+13−3
@@ -3,7 +3,6 @@ package server
33import (
44 "encoding/json"
55 "errors"
6− "fmt"
76 "net/http"
87
98 "github.com/charmbracelet/crush/internal/backend"
@@ -306,7 +305,12 @@ func (c *controllerV1) handleGetWorkspaceEvents(w http.ResponseWriter, r *http.R
306305 continue
307306 }
308307
309− fmt.Fprintf(w, "data: %s\n\n", data)
308+ // Write the SSE frame in three chunks to avoid the
309+ // []byte->string copy that a "%s"-formatted write would
310+ // incur on the (potentially large) marshaled payload.
311+ _, _ = w.Write([]byte("data: "))
312+ _, _ = w.Write(data)
313+ _, _ = w.Write([]byte("\n\n"))
310314 flusher.Flush()
311315 }
312316 }
@@ -382,11 +386,17 @@ func (c *controllerV1) handleGetWorkspaceSessions(w http.ResponseWriter, r *http
382386 return
383387 }
384388 ws, _ := c.backend.GetWorkspace(id)
389+ // Snapshot the client->session attachment counts once instead of
390+ // re-scanning every client for each session (O(sessions x clients)).
391+ var attachedCounts map[string]int
392+ if ws != nil {
393+ attachedCounts = ws.AttachedClientCountsBySession()
394+ }
385395 result := make([]proto.Session, len(sessions))
386396 for i, s := range sessions {
387397 result[i] = sessionToProto(s)
388398 result[i].IsBusy = isSessionBusy(ws, s.ID)
389− result[i].AttachedClients = attachedClients(ws, s.ID)
399+ result[i].AttachedClients = attachedCounts[s.ID]
390400 }
391401 jsonEncode(w, result)
392402}
internal/session/session.go+13−18
@@ -27,7 +27,7 @@ const (
2727// HashID returns the XXH3 hash of a session ID (UUID) as a hex string.
2828func HashID(id string) string {
2929 h := xxh3.New()
30− h.WriteString(id)
30+ _, _ = h.WriteString(id)
3131 return fmt.Sprintf("%x", h.Sum(nil))
3232}
3333
@@ -223,29 +223,35 @@ func (s *service) Save(ctx context.Context, session Session) (Session, error) {
223223// UpdateTitleAndUsage updates only the title and usage fields atomically.
224224// This is safer than fetching, modifying, and saving the entire session.
225225func (s *service) UpdateTitleAndUsage(ctx context.Context, sessionID, title string, promptTokens, completionTokens int64, cost float64) error {
226− if err := s.q.UpdateSessionTitleAndUsage(ctx, db.UpdateSessionTitleAndUsageParams{
226+ dbSession, err := s.q.UpdateSessionTitleAndUsage(ctx, db.UpdateSessionTitleAndUsageParams{
227227 ID: sessionID,
228228 Title: title,
229229 PromptTokens: promptTokens,
230230 CompletionTokens: completionTokens,
231231 Cost: cost,
232− }); err != nil {
232+ })
233+ if err != nil {
233234 return err
234235 }
235− s.publishSessionUpdate(ctx, sessionID)
236+ session := s.fromDBItem(dbSession)
237+ s.applyEstimatedUsageState(&session)
238+ s.Publish(pubsub.UpdatedEvent, session)
236239 return nil
237240}
238241
239242// Rename updates only the title of a session without touching updated_at or
240243// usage fields.
241244func (s *service) Rename(ctx context.Context, id string, title string) error {
242− if err := s.q.RenameSession(ctx, db.RenameSessionParams{
245+ dbSession, err := s.q.RenameSession(ctx, db.RenameSessionParams{
243246 ID: id,
244247 Title: title,
245− }); err != nil {
248+ })
249+ if err != nil {
246250 return err
247251 }
248− s.publishSessionUpdate(ctx, id)
252+ session := s.fromDBItem(dbSession)
253+ s.applyEstimatedUsageState(&session)
254+ s.Publish(pubsub.UpdatedEvent, session)
249255 return nil
250256}
251257
@@ -262,17 +268,6 @@ func (s *service) List(ctx context.Context) ([]Session, error) {
262268 return sessions, nil
263269}
264270
265−// publishSessionUpdate re-fetches a session and publishes an UpdatedEvent so
266−// that UI subscribers reflect title or usage changes.
267−func (s *service) publishSessionUpdate(ctx context.Context, sessionID string) {
268− session, err := s.Get(ctx, sessionID)
269− if err != nil {
270− slog.Error("Failed to re-fetch session for event publish", "error", err, "sessionID", sessionID)
271− return
272− }
273− s.Publish(pubsub.UpdatedEvent, session)
274−}
275−
276271func (s *service) applyEstimatedUsageState(session *Session) {
277272 s.estimatedUsageMu.RLock()
278273 session.EstimatedUsage = s.estimatedUsage[session.ID]
internal/shell/background.go+1−1
@@ -185,7 +185,7 @@ func (m *BackgroundShellManager) Cleanup() int {
185185 }
186186
187187 for _, id := range toRemove {
188− m.Remove(id)
188+ _ = m.Remove(id)
189189 }
190190
191191 return len(toRemove)
internal/skills/embed.go+1−1
@@ -32,7 +32,7 @@ func DiscoverBuiltinWithStates() ([]*Skill, []*SkillState) {
3232 var discovered []*Skill
3333 var states []*SkillState
3434
35− fs.WalkDir(builtinFS, "builtin", func(path string, d fs.DirEntry, err error) error {
35+ _ = fs.WalkDir(builtinFS, "builtin", func(path string, d fs.DirEntry, err error) error {
3636 if err != nil {
3737 return nil
3838 }
internal/ui/attachments/attachments.go+2−2
@@ -132,8 +132,8 @@ func (r *Renderer) Render(attachments []message.Attachment, deleting bool, width
132132 )
133133 }
134134
135− if i == fits && len(attachments) > i {
136− chips = append(chips, lipgloss.NewStyle().Width(maxItemWidth).Render(fmt.Sprintf("%d more…", len(attachments)-fits)))
135+ if i == fits && len(attachments) > i+1 {
136+ chips = append(chips, lipgloss.NewStyle().Width(maxItemWidth).Render(fmt.Sprintf("%d more…", len(attachments)-fits-1)))
137137 break
138138 }
139139 }
internal/ui/chat/agent.go+53−22
@@ -2,6 +2,7 @@ package chat
22
33import (
44 "encoding/json"
5+ "fmt"
56 "strings"
67
78 tea "charm.land/bubbletea/v2"
@@ -24,6 +25,18 @@ type NestedToolContainer interface {
2425 AddNestedTool(tool ToolMessageItem)
2526}
2627
28+// collapsedNestedHint is the affordance shown under a collapsed sub-agent
29+// card, indicating its nested tool calls can be revealed with space.
30+const collapsedNestedHint = " ▸ space to expand"
31+
32+// toolCountLabel renders a "N tools" summary for a sub-agent header line.
33+func toolCountLabel(n int) string {
34+ if n == 1 {
35+ return "1 tool"
36+ }
37+ return fmt.Sprintf("%d tools", n)
38+}
39+
2740// AgentToolMessageItem is a message item that represents an agent tool call.
2841type AgentToolMessageItem struct {
2942 *baseToolMessageItem
@@ -44,7 +57,7 @@ func NewAgentToolMessageItem(
4457 canceled bool,
4558) *AgentToolMessageItem {
4659 t := &AgentToolMessageItem{}
47− t.baseToolMessageItem = newBaseToolMessageItem(sty, toolCall, result, &AgentToolRenderContext{agent: t}, canceled)
60+ t.baseToolMessageItem = newBaseToolMessageItem(sty, toolCall, result, &AgentToolRenderContext{agent: t}, canceled, "")
4861 // For the agent tool we keep spinning until the tool call is finished.
4962 t.spinningFunc = func(state SpinningState) bool {
5063 return !state.HasResult() && !state.IsCanceled()
@@ -139,6 +152,10 @@ func (r *AgentToolRenderContext) RenderTool(sty *styles.Styles, width int, opts
139152 }
140153
141154 header := toolHeader(sty, opts.Status, "Agent", cappedWidth, opts)
155+ nestedCount := len(r.agent.nestedTools)
156+ if nestedCount > 0 {
157+ header += " " + sty.Tool.ParamMain.Render(toolCountLabel(nestedCount))
158+ }
142159 if opts.Compact {
143160 return header
144161 }
@@ -164,17 +181,22 @@ func (r *AgentToolRenderContext) RenderTool(sty *styles.Styles, width int, opts
164181 ),
165182 )
166183
167− // Build tree with nested tool calls.
168− childTools := tree.Root(header)
169−
170− for _, nestedTool := range r.agent.nestedTools {
171− childView := nestedTool.Render(remainingWidth)
172− childTools.Child(childView)
173− }
174−
175− // Build parts.
184+ // Nested tool calls are collapsed by default to keep the conversation
185+ // readable; press space to expand the full call tree.
176186 var parts []string
177− parts = append(parts, childTools.Enumerator(roundedEnumerator(2, taskTagWidth-5)).String())
187+ if opts.ExpandedContent {
188+ childTools := tree.Root(header)
189+ for _, nestedTool := range r.agent.nestedTools {
190+ childView := nestedTool.Render(remainingWidth)
191+ childTools.Child(childView)
192+ }
193+ parts = append(parts, childTools.Enumerator(roundedEnumerator(2, taskTagWidth-5)).String())
194+ } else {
195+ parts = append(parts, header)
196+ if nestedCount > 0 {
197+ parts = append(parts, sty.Tool.AgentPrompt.Render(collapsedNestedHint))
198+ }
199+ }
178200
179201 // Show animation if still running.
180202 if !opts.HasResult() && !opts.IsCanceled() {
@@ -216,7 +238,7 @@ func NewAgenticFetchToolMessageItem(
216238 canceled bool,
217239) *AgenticFetchToolMessageItem {
218240 t := &AgenticFetchToolMessageItem{}
219− t.baseToolMessageItem = newBaseToolMessageItem(sty, toolCall, result, &AgenticFetchToolRenderContext{fetch: t}, canceled)
241+ t.baseToolMessageItem = newBaseToolMessageItem(sty, toolCall, result, &AgenticFetchToolRenderContext{fetch: t}, canceled, "")
220242 // For the agentic fetch tool we keep spinning until the tool call is finished.
221243 t.spinningFunc = func(state SpinningState) bool {
222244 return !state.HasResult() && !state.IsCanceled()
@@ -308,6 +330,10 @@ func (r *AgenticFetchToolRenderContext) RenderTool(sty *styles.Styles, width int
308330 }
309331
310332 header := toolHeader(sty, opts.Status, "Agentic Fetch", cappedWidth, opts, toolParams...)
333+ nestedCount := len(r.fetch.nestedTools)
334+ if nestedCount > 0 {
335+ header += " " + sty.Tool.ParamMain.Render(toolCountLabel(nestedCount))
336+ }
311337 if opts.Compact {
312338 return header
313339 }
@@ -333,17 +359,22 @@ func (r *AgenticFetchToolRenderContext) RenderTool(sty *styles.Styles, width int
333359 ),
334360 )
335361
336− // Build tree with nested tool calls.
337− childTools := tree.Root(header)
338−
339− for _, nestedTool := range r.fetch.nestedTools {
340− childView := nestedTool.Render(remainingWidth)
341− childTools.Child(childView)
342− }
343−
344− // Build parts.
362+ // Nested tool calls are collapsed by default to keep the conversation
363+ // readable; press space to expand the full call tree.
345364 var parts []string
346− parts = append(parts, childTools.Enumerator(roundedEnumerator(2, promptTagWidth-5)).String())
365+ if opts.ExpandedContent {
366+ childTools := tree.Root(header)
367+ for _, nestedTool := range r.fetch.nestedTools {
368+ childView := nestedTool.Render(remainingWidth)
369+ childTools.Child(childView)
370+ }
371+ parts = append(parts, childTools.Enumerator(roundedEnumerator(2, promptTagWidth-5)).String())
372+ } else {
373+ parts = append(parts, header)
374+ if nestedCount > 0 {
375+ parts = append(parts, sty.Tool.AgentPrompt.Render(collapsedNestedHint))
376+ }
377+ }
347378
348379 // Show animation if still running.
349380 if !opts.HasResult() && !opts.IsCanceled() {
internal/ui/chat/assistant.go+195−79
@@ -1,9 +1,7 @@
11package chat
22
33import (
4− "encoding/binary"
54 "fmt"
6− "hash/fnv"
75 "strings"
86
97 tea "charm.land/bubbletea/v2"
@@ -25,7 +23,7 @@ const assistantMessageTruncateFormat = "… (%d lines hidden) [click or space to
2523// promote the view to a full expansion. The promotion is wired through
2624// the existing ToggleExpanded path (click / space) — F5 deliberately
2725// does not add a new keybinding.
28−const assistantMessageTailWindowFormat = "… %d earlier lines hidden [click or space for full view]"
26+const assistantMessageTailWindowFormat = "… (%d earlier lines hidden) [click or space to expand]"
2927
3028// maxCollapsedThinkingHeight defines the maximum height of the thinking
3129const maxCollapsedThinkingHeight = 10
@@ -93,11 +91,47 @@ func (s *assistantSection) reset() {
9391 *s = assistantSection{}
9492}
9593
96−// fnv64 hashes a single string with FNV-64.
94+// FNV-64a constants. We fold bytes into a plain uint64 accumulator
95+// rather than allocating a fnv.New64a per call: the returned
96+// hash.Hash64 escapes to the heap, which is wasteful on the per-render
97+// hashing hot path. The algorithm (offset basis, prime, xor-then-multiply)
98+// is identical to hash/fnv, so hashes are byte-for-byte the same.
99+const (
100+ fnvOffset64 = 14695981039346656037
101+ fnvPrime64 = 1099511628211
102+)
103+
104+// fnvAddString folds s into an in-progress FNV-64a hash.
105+func fnvAddString(h uint64, s string) uint64 {
106+ for i := 0; i < len(s); i++ {
107+ h ^= uint64(s[i])
108+ h *= fnvPrime64
109+ }
110+ return h
111+}
112+
113+// fnvAddBytes folds b into an in-progress FNV-64a hash.
114+func fnvAddBytes(h uint64, b []byte) uint64 {
115+ for _, c := range b {
116+ h ^= uint64(c)
117+ h *= fnvPrime64
118+ }
119+ return h
120+}
121+
122+// fnvAddU64 folds v's 8 little-endian bytes into an in-progress hash,
123+// matching binary.LittleEndian.PutUint64 followed by a Write.
124+func fnvAddU64(h, v uint64) uint64 {
125+ for i := 0; i < 8; i++ {
126+ h ^= uint64(byte(v >> (8 * i)))
127+ h *= fnvPrime64
128+ }
129+ return h
130+}
131+
132+// fnv64 hashes a single string with FNV-64a.
97133func fnv64(s string) uint64 {
98− h := fnv.New64a()
99− _, _ = h.Write([]byte(s))
100− return h.Sum64()
134+ return fnvAddString(fnvOffset64, s)
101135}
102136
103137// fnvFields hashes a list of byte fields with length-prefix framing
@@ -106,14 +140,41 @@ func fnv64(s string) uint64 {
106140// boundary between two fields). Each field is preceded by its
107141// length encoded as 8 bytes little-endian.
108142func fnvFields(fields ...[]byte) uint64 {
109− h := fnv.New64a()
110− var lenBuf [8]byte
143+ h := uint64(fnvOffset64)
111144 for _, f := range fields {
112− binary.LittleEndian.PutUint64(lenBuf[:], uint64(len(f)))
113− _, _ = h.Write(lenBuf[:])
114− _, _ = h.Write(f)
145+ h = fnvAddU64(h, uint64(len(f)))
146+ h = fnvAddBytes(h, f)
147+ }
148+ return h
149+}
150+
151+// assistantRenderKeys bundles the per-render cache keys and tool-call
152+// count computed once at the top of Render/RawRender and threaded
153+// through the render path, so each section's source text is hashed only
154+// once and ToolCalls() is materialized only once per render.
155+type assistantRenderKeys struct {
156+ thinkSrc, thinkExtra uint64
157+ contentSrc, contentExtra uint64
158+ errSrc, errExtra uint64
159+ toolCallCount int
160+}
161+
162+// renderKeys computes the per-render keys once. It calls ToolCalls()
163+// exactly once and reuses its length everywhere the render path needs it.
164+func (a *AssistantMessageItem) renderKeys() assistantRenderKeys {
165+ toolCallCount := len(a.message.ToolCalls())
166+ thinkSrc, thinkExtra := a.thinkingKey(toolCallCount)
167+ contentSrc, contentExtra := a.contentKey()
168+ errSrc, errExtra := a.errorKey()
169+ return assistantRenderKeys{
170+ thinkSrc: thinkSrc,
171+ thinkExtra: thinkExtra,
172+ contentSrc: contentSrc,
173+ contentExtra: contentExtra,
174+ errSrc: errSrc,
175+ errExtra: errExtra,
176+ toolCallCount: toolCallCount,
115177 }
116− return h.Sum64()
117178}
118179
119180// AssistantMessageItem represents an assistant message in the chat UI.
@@ -208,23 +269,36 @@ func (a *AssistantMessageItem) ID() string {
208269
209270// RawRender implements [MessageItem].
210271func (a *AssistantMessageItem) RawRender(width int) string {
272+ return a.rawRender(width, a.renderKeys())
273+}
274+
275+// rawRenderBody renders the assistant message body (thinking / content /
276+// error sections) WITHOUT the spinner suffix. The body is stable across
277+// animation ticks — only the spinner changes — so Render caches its
278+// prefixed form and reuses it while re-rendering just the spinner.
279+func (a *AssistantMessageItem) rawRenderBody(width int, keys assistantRenderKeys) string {
211280 cappedWidth := cappedMessageWidth(width)
281+ content, height := a.renderMessageContent(cappedWidth, keys)
282+ return a.renderHighlighted(content, cappedWidth, height)
283+}
212284
213− var spinner string
214− if a.isSpinning() {
215− spinner = a.renderSpinning()
285+// rawRender renders the item body plus, when spinning, the spinner suffix.
286+// It is the reference full render; Render reproduces its output byte-for-byte
287+// via a cached body + freshly-prefixed spinner (validated in
288+// assistant_render_test.go).
289+func (a *AssistantMessageItem) rawRender(width int, keys assistantRenderKeys) string {
290+ body := a.rawRenderBody(width, keys)
291+ if !a.isSpinningWithToolCalls(keys.toolCallCount) {
292+ return body
216293 }
217−
218− content, height := a.renderMessageContent(cappedWidth)
219− highlightedContent := a.renderHighlighted(content, cappedWidth, height)
220− if spinner != "" {
221− if highlightedContent != "" {
222− highlightedContent += "\n\n"
223− }
224− return highlightedContent + spinner
294+ spinner := a.renderSpinning()
295+ if spinner == "" {
296+ return body
225297 }
226−
227− return highlightedContent
298+ if body != "" {
299+ return body + "\n\n" + spinner
300+ }
301+ return spinner
228302}
229303
230304// Render implements MessageItem.
@@ -243,22 +317,60 @@ func (a *AssistantMessageItem) Render(width int) string {
243317 // drop. Bypass the cache while spinning (RawRender's spinner
244318 // suffix changes every animation frame) or while a highlight
245319 // range is active (selection drag).
246− useCache := !a.isSpinning() && !a.isHighlighted()
320+ keys := a.renderKeys()
321+ spinning := a.isSpinningWithToolCalls(keys.toolCallCount)
247322 cappedWidth := cappedMessageWidth(width)
248− key := a.prefixCacheKey(cappedWidth)
323+ key := a.prefixCacheKey(cappedWidth, keys)
324+
325+ // Only render the style actually used; rendering both wastes work
326+ // (lipgloss.Render is not free) when one is discarded.
327+ var prefix string
328+ if a.focused {
329+ prefix = a.sty.Messages.AssistantFocused.Render()
330+ } else {
331+ prefix = a.sty.Messages.AssistantBlurred.Render()
332+ }
333+
334+ // Resolve the prefixed body. Its cache key excludes the spinner frame,
335+ // so it stays valid across animation ticks — the whole point of the
336+ // decoupling: prefix the (potentially long) thinking body once per
337+ // content change instead of on every 20fps spinner tick. Highlighting
338+ // mutates the body itself, so it bypasses the cache.
339+ useCache := !a.isHighlighted()
340+ prefixedBody, ok := "", false
249341 if useCache {
250− if cached, ok := a.getCachedPrefixedRender(width, key); ok {
251− return cached
342+ prefixedBody, ok = a.getCachedPrefixedRender(width, key)
343+ }
344+ bodyEmpty := false
345+ if !ok {
346+ body := a.rawRenderBody(width, keys)
347+ bodyEmpty = body == ""
348+ prefixedBody = prefixLines(prefix, body)
349+ // Cache only a non-empty body: an empty body prefixes to the bare
350+ // prefix and is cheap to recompute, and the cache treats "" as a
351+ // miss, so caching it would be indistinguishable from no entry.
352+ if useCache && !bodyEmpty {
353+ a.setCachedPrefixedRender(prefixedBody, width, key)
252354 }
253355 }
254− focused := a.sty.Messages.AssistantFocused.Render()
255− blurred := a.sty.Messages.AssistantBlurred.Render()
256− prefix := blurred
257− if a.focused {
258− prefix = focused
356+ // A cache hit implies a non-empty body (empty bodies are never cached),
357+ // so bodyEmpty stays false on the hit path.
358+
359+ if !spinning {
360+ return prefixedBody
259361 }
260− rendered := a.RawRender(width)
261− lines := strings.Split(rendered, "\n")
362+ spinner := a.renderSpinning()
363+ if spinner == "" {
364+ return prefixedBody
365+ }
366+ return assembleSpinningRender(prefix, prefixedBody, bodyEmpty, prefixLines(prefix, spinner))
367+}
368+
369+// prefixLines prepends prefix to every line of s, matching the per-line
370+// focus/selection prefix that Render applies (done manually rather than via
371+// lipgloss.Render, whose wrapping logic is costly for long messages).
372+func prefixLines(prefix, s string) string {
373+ lines := strings.Split(s, "\n")
262374 var sb strings.Builder
263375 for i, line := range lines {
264376 if i > 0 {
@@ -267,11 +379,20 @@ func (a *AssistantMessageItem) Render(width int) string {
267379 sb.WriteString(prefix)
268380 sb.WriteString(line)
269381 }
270− out := sb.String()
271− if useCache {
272− a.setCachedPrefixedRender(out, width, key)
382+ return sb.String()
383+}
384+
385+// assembleSpinningRender reconstructs the prefixed body+spinner output
386+// byte-for-byte identically to prefixLines(prefix, body+"\n\n"+spinner),
387+// but from the separately-prefixed (and body-cached) parts. When the body is
388+// empty the reference render is the spinner alone; otherwise the "\n\n"
389+// separator becomes one prefixed empty line between body and spinner. This
390+// exact identity is validated in assistant_render_test.go.
391+func assembleSpinningRender(prefix, prefixedBody string, bodyEmpty bool, prefixedSpinner string) string {
392+ if bodyEmpty {
393+ return prefixedSpinner
273394 }
274− return out
395+ return prefixedBody + "\n" + prefix + "\n" + prefixedSpinner
275396}
276397
277398// prefixCacheKey builds the F3 prefixed-render cache key. We pack the
@@ -283,27 +404,17 @@ func (a *AssistantMessageItem) Render(width int) string {
283404// folded in too because it controls the composition of
284405// renderMessageContent (e.g. appending the constant "Canceled"
285406// string) — that decision lives outside any section's own hash.
286−func (a *AssistantMessageItem) prefixCacheKey(cappedWidth int) uint64 {
287− thinkSrc, thinkExtra := a.thinkingKey()
288− contentSrc, contentExtra := a.contentKey()
289− errSrc, errExtra := a.errorKey()
290− h := fnv.New64a()
291− var buf [8]byte
292− writeU64 := func(v uint64) {
293− for i := range 8 {
294− buf[i] = byte(v >> (8 * i))
295− }
296− _, _ = h.Write(buf[:])
297− }
298− writeU64(uint64(cappedWidth))
299− writeU64(thinkSrc)
300− writeU64(thinkExtra)
301− writeU64(contentSrc)
302− writeU64(contentExtra)
303− writeU64(errSrc)
304− writeU64(errExtra)
305− writeU64(a.compositionKey())
306− fingerprint := h.Sum64()
407+func (a *AssistantMessageItem) prefixCacheKey(cappedWidth int, keys assistantRenderKeys) uint64 {
408+ h := uint64(fnvOffset64)
409+ h = fnvAddU64(h, uint64(cappedWidth))
410+ h = fnvAddU64(h, keys.thinkSrc)
411+ h = fnvAddU64(h, keys.thinkExtra)
412+ h = fnvAddU64(h, keys.contentSrc)
413+ h = fnvAddU64(h, keys.contentExtra)
414+ h = fnvAddU64(h, keys.errSrc)
415+ h = fnvAddU64(h, keys.errExtra)
416+ h = fnvAddU64(h, a.compositionKey())
417+ fingerprint := h
307418 var focusBit uint64
308419 if a.focused {
309420 focusBit = 1
@@ -332,20 +443,20 @@ func (a *AssistantMessageItem) compositionKey() uint64 {
332443// content, and finish reason. Each section is served from its own cache;
333444// only the section whose source text or extras changed since the last
334445// render is recomputed.
335−func (a *AssistantMessageItem) renderMessageContent(width int) (string, int) {
446+func (a *AssistantMessageItem) renderMessageContent(width int, keys assistantRenderKeys) (string, int) {
336447 var messageParts []string
337448 thinking := strings.TrimSpace(a.message.ReasoningContent().Thinking)
338449 content := strings.TrimSpace(a.message.Content().Text)
339450
340451 if thinking != "" {
341− messageParts = append(messageParts, a.cachedThinking(width))
452+ messageParts = append(messageParts, a.cachedThinking(width, keys))
342453 }
343454
344455 if content != "" {
345456 if thinking != "" {
346457 messageParts = append(messageParts, "")
347458 }
348− messageParts = append(messageParts, a.cachedContent(width))
459+ messageParts = append(messageParts, a.cachedContent(width, keys))
349460 }
350461
351462 if a.message.IsFinished() {
@@ -353,7 +464,7 @@ func (a *AssistantMessageItem) renderMessageContent(width int) (string, int) {
353464 case message.FinishReasonCanceled:
354465 messageParts = append(messageParts, a.sty.Messages.AssistantCanceled.Render("Canceled"))
355466 case message.FinishReasonError:
356− messageParts = append(messageParts, a.cachedError(width))
467+ messageParts = append(messageParts, a.cachedError(width, keys))
357468 }
358469 }
359470
@@ -366,11 +477,11 @@ func (a *AssistantMessageItem) renderMessageContent(width int) (string, int) {
366477// thinking text that affects the rendered output: the view mode
367478// (collapsed / tail-window / full) and the footer state (which
368479// depends on IsThinking, ToolCalls, and ThinkingDuration).
369−func (a *AssistantMessageItem) thinkingKey() (uint64, uint64) {
480+func (a *AssistantMessageItem) thinkingKey(toolCallCount int) (uint64, uint64) {
370481 thinking := a.message.ReasoningContent().Thinking
371482 srcHash := fnv64(thinking)
372483
373− showFooter := !a.message.IsThinking() || len(a.message.ToolCalls()) > 0
484+ showFooter := !a.message.IsThinking() || toolCallCount > 0
374485 var durationStr string
375486 if showFooter {
376487 duration := a.message.ThinkingDuration()
@@ -417,20 +528,20 @@ func (a *AssistantMessageItem) errorKey() (uint64, uint64) {
417528// caching it on miss. The thinking-box height (used for click target
418529// detection) is preserved across hits via assistantSection.aux so the
419530// cached path never desyncs click detection.
420−func (a *AssistantMessageItem) cachedThinking(width int) string {
421− srcHash, extra := a.thinkingKey()
531+func (a *AssistantMessageItem) cachedThinking(width int, keys assistantRenderKeys) string {
532+ srcHash, extra := keys.thinkSrc, keys.thinkExtra
422533 if a.thinkingSec.hit(width, srcHash, extra) {
423534 a.thinkingBoxHeight = a.thinkingSec.aux
424535 return a.thinkingSec.out
425536 }
426− out := a.renderThinking(a.message.ReasoningContent().Thinking, width)
537+ out := a.renderThinking(a.message.ReasoningContent().Thinking, width, keys.toolCallCount)
427538 a.thinkingSec.store(width, srcHash, extra, out, a.thinkingBoxHeight)
428539 return out
429540}
430541
431542// cachedContent returns the rendered content section.
432−func (a *AssistantMessageItem) cachedContent(width int) string {
433− srcHash, extra := a.contentKey()
543+func (a *AssistantMessageItem) cachedContent(width int, keys assistantRenderKeys) string {
544+ srcHash, extra := keys.contentSrc, keys.contentExtra
434545 if a.contentSec.hit(width, srcHash, extra) {
435546 return a.contentSec.out
436547 }
@@ -440,8 +551,8 @@ func (a *AssistantMessageItem) cachedContent(width int) string {
440551}
441552
442553// cachedError returns the rendered error section.
443−func (a *AssistantMessageItem) cachedError(width int) string {
444− srcHash, extra := a.errorKey()
554+func (a *AssistantMessageItem) cachedError(width int, keys assistantRenderKeys) string {
555+ srcHash, extra := keys.errSrc, keys.errExtra
445556 if a.errorSec.hit(width, srcHash, extra) {
446557 return a.errorSec.out
447558 }
@@ -457,7 +568,7 @@ func (a *AssistantMessageItem) cachedError(width int) string {
457568// boundary problem §4.4 of the design note flags. The bordered
458569// ThinkingBox style is applied on top of the (already-windowed)
459570// lines so the visual box matches what the user sees today.
460−func (a *AssistantMessageItem) renderThinking(thinking string, width int) string {
571+func (a *AssistantMessageItem) renderThinking(thinking string, width int, toolCallCount int) string {
461572 renderer := common.QuietMarkdownRenderer(a.sty, width)
462573
463574 // Cap the raw text handed to glamour while the block is windowed.
@@ -509,7 +620,7 @@ func (a *AssistantMessageItem) renderThinking(thinking string, width int) string
509620
510621 var footer string
511622 // if thinking is done add the thought for footer
512− if !a.message.IsThinking() || len(a.message.ToolCalls()) > 0 {
623+ if !a.message.IsThinking() || toolCallCount > 0 {
513624 duration := a.message.ThinkingDuration()
514625 if duration.String() != "0s" {
515626 footer = a.sty.Messages.ThinkingFooterTitle.Render("Thought for ") +
@@ -647,11 +758,16 @@ func (a *AssistantMessageItem) renderError(width int) string {
647758
648759// isSpinning returns true if the assistant message is still generating.
649760func (a *AssistantMessageItem) isSpinning() bool {
761+ return a.isSpinningWithToolCalls(len(a.message.ToolCalls()))
762+}
763+
764+// isSpinningWithToolCalls is isSpinning given an already-computed
765+// tool-call count, so the render path avoids re-materializing ToolCalls().
766+func (a *AssistantMessageItem) isSpinningWithToolCalls(toolCallCount int) bool {
650767 isThinking := a.message.IsThinking()
651768 isFinished := a.message.IsFinished()
652769 hasContent := strings.TrimSpace(a.message.Content().Text) != ""
653− hasToolCalls := len(a.message.ToolCalls()) > 0
654− return (isThinking || !isFinished) && !hasContent && !hasToolCalls
770+ return (isThinking || !isFinished) && !hasContent && toolCallCount == 0
655771}
656772
657773// SetMessage is used to update the underlying message. Only the
internal/ui/chat/assistant_render_test.gonew file+78
@@ -0,0 +1,78 @@
1+package chat
2+
3+import (
4+ "strings"
5+ "testing"
6+)
7+
8+// combineBodySpinner replicates rawRender's spinning combine: an empty body
9+// yields the spinner alone, otherwise the two are joined by a blank line.
10+func combineBodySpinner(body, spinner string) string {
11+ if body != "" {
12+ return body + "\n\n" + spinner
13+ }
14+ return spinner
15+}
16+
17+// TestAssembleSpinningRender_ByteIdentical proves the decoupled Render path
18+// (cache the prefixed body, prefix the spinner separately, reassemble) is
19+// byte-for-byte identical to the old path of prefixing the full
20+// body+spinner string in one pass. If this ever diverges, the spinner
21+// decoupling would visibly corrupt assistant rendering.
22+func TestAssembleSpinningRender_ByteIdentical(t *testing.T) {
23+ t.Parallel()
24+ prefixes := []string{"", "P", "▏ ", "\x1b[38;5;1m│\x1b[0m "}
25+ bodies := []string{
26+ "",
27+ "single line",
28+ "line1\nline2\nline3",
29+ "has\n\ninternal blank",
30+ "trailing\n",
31+ }
32+ spinners := []string{
33+ "spin",
34+ "spin1\nspin2",
35+ "⠋ Thinking",
36+ }
37+ for _, prefix := range prefixes {
38+ for _, body := range bodies {
39+ for _, spinner := range spinners {
40+ want := prefixLines(prefix, combineBodySpinner(body, spinner))
41+ got := assembleSpinningRender(
42+ prefix,
43+ prefixLines(prefix, body),
44+ body == "",
45+ prefixLines(prefix, spinner),
46+ )
47+ if got != want {
48+ t.Errorf("prefix=%q body=%q spinner=%q\n got=%q\nwant=%q",
49+ prefix, body, spinner, got, want)
50+ }
51+ }
52+ }
53+ }
54+}
55+
56+// TestPrefixLines matches the original inline per-line prefix loop.
57+func TestPrefixLines(t *testing.T) {
58+ t.Parallel()
59+ cases := []struct{ prefix, in, want string }{
60+ {"P", "", "P"},
61+ {"P", "a", "Pa"},
62+ {"P", "a\nb", "Pa\nPb"},
63+ {"P", "a\n\nb", "Pa\nP\nPb"},
64+ {"", "a\nb", "a\nb"},
65+ {"P", "trailing\n", "Ptrailing\nP"},
66+ }
67+ for _, c := range cases {
68+ if got := prefixLines(c.prefix, c.in); got != c.want {
69+ t.Errorf("prefixLines(%q,%q)=%q want %q", c.prefix, c.in, got, c.want)
70+ }
71+ }
72+ // Cross-check against strings.Split semantics for a random-ish sample.
73+ s := "x1\nx2\n\nx3"
74+ want := strings.ReplaceAll("Q"+strings.ReplaceAll(s, "\n", "\nQ"), "\r", "")
75+ if got := prefixLines("Q", s); got != want {
76+ t.Errorf("prefixLines cross-check: got %q want %q", got, want)
77+ }
78+}
internal/ui/chat/assistant_section_cache_test.go+3−3
@@ -149,8 +149,8 @@ func TestAssistantSectionCache_HashKeyDiscrimination(t *testing.T) {
149149 itemA := NewAssistantMessageItem(&sty, msgA).(*AssistantMessageItem)
150150 itemB := NewAssistantMessageItem(&sty, msgB).(*AssistantMessageItem)
151151
152− thinkSrcA, _ := itemA.thinkingKey()
153− thinkSrcB, _ := itemB.thinkingKey()
152+ thinkSrcA, _ := itemA.thinkingKey(0)
153+ thinkSrcB, _ := itemB.thinkingKey(0)
154154 require.NotEqual(t, thinkSrcA, thinkSrcB,
155155 "distinct thinking text must produce distinct FNV-64 source hashes")
156156
@@ -162,7 +162,7 @@ func TestAssistantSectionCache_HashKeyDiscrimination(t *testing.T) {
162162 // Identical source text on a fresh item must produce the same
163163 // hashes — keying invariant for cache hits.
164164 itemAClone := NewAssistantMessageItem(&sty, thinkingMessage("a3", "thinking A", "content A")).(*AssistantMessageItem)
165− thinkSrcAClone, _ := itemAClone.thinkingKey()
165+ thinkSrcAClone, _ := itemAClone.thinkingKey(0)
166166 contentSrcAClone, _ := itemAClone.contentKey()
167167 require.Equal(t, thinkSrcA, thinkSrcAClone)
168168 require.Equal(t, contentSrcA, contentSrcAClone)
internal/ui/chat/bash.go+5−5
@@ -31,7 +31,7 @@ func NewBashToolMessageItem(
3131 result *message.ToolResult,
3232 canceled bool,
3333) ToolMessageItem {
34− return newBaseToolMessageItem(sty, toolCall, result, &BashToolRenderContext{}, canceled)
34+ return newBaseToolMessageItem(sty, toolCall, result, &BashToolRenderContext{}, canceled, "")
3535}
3636
3737// BashToolRenderContext renders bash tool messages.
@@ -116,7 +116,7 @@ func NewJobOutputToolMessageItem(
116116 result *message.ToolResult,
117117 canceled bool,
118118) ToolMessageItem {
119− return newBaseToolMessageItem(sty, toolCall, result, &JobOutputToolRenderContext{}, canceled)
119+ return newBaseToolMessageItem(sty, toolCall, result, &JobOutputToolRenderContext{}, canceled, "")
120120}
121121
122122// JobOutputToolRenderContext renders job_output tool messages.
@@ -131,7 +131,7 @@ func (j *JobOutputToolRenderContext) RenderTool(sty *styles.Styles, width int, o
131131
132132 var params tools.JobOutputParams
133133 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
134− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
134+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
135135 }
136136
137137 var description string
@@ -167,7 +167,7 @@ func NewJobKillToolMessageItem(
167167 result *message.ToolResult,
168168 canceled bool,
169169) ToolMessageItem {
170− return newBaseToolMessageItem(sty, toolCall, result, &JobKillToolRenderContext{}, canceled)
170+ return newBaseToolMessageItem(sty, toolCall, result, &JobKillToolRenderContext{}, canceled, "")
171171}
172172
173173// JobKillToolRenderContext renders job_kill tool messages.
@@ -182,7 +182,7 @@ func (j *JobKillToolRenderContext) RenderTool(sty *styles.Styles, width int, opt
182182
183183 var params tools.JobKillParams
184184 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
185− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
185+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
186186 }
187187
188188 var description string
internal/ui/chat/diagnostics.go+1−1
@@ -27,7 +27,7 @@ func NewDiagnosticsToolMessageItem(
2727 result *message.ToolResult,
2828 canceled bool,
2929) ToolMessageItem {
30− return newBaseToolMessageItem(sty, toolCall, result, &DiagnosticsToolRenderContext{}, canceled)
30+ return newBaseToolMessageItem(sty, toolCall, result, &DiagnosticsToolRenderContext{}, canceled, "")
3131}
3232
3333// DiagnosticsToolRenderContext renders diagnostics tool messages.
internal/ui/chat/docker_mcp.go+4−4
@@ -28,7 +28,7 @@ func NewDockerMCPToolMessageItem(
2828 result *message.ToolResult,
2929 canceled bool,
3030) ToolMessageItem {
31− return newBaseToolMessageItem(sty, toolCall, result, &DockerMCPToolRenderContext{}, canceled)
31+ return newBaseToolMessageItem(sty, toolCall, result, &DockerMCPToolRenderContext{}, canceled, "")
3232}
3333
3434// DockerMCPToolRenderContext renders Docker MCP tool messages.
@@ -138,7 +138,7 @@ func (d *DockerMCPToolRenderContext) RenderTool(sty *styles.Styles, width int, o
138138
139139 // Handle text content.
140140 if opts.Result.Content != "" {
141− body := renderToolResultTextContent(sty, opts.Result.Content, toolResultContentWidths{Body: bodyWidth, Diff: cappedWidth}, opts.ExpandedContent)
141+ body := renderToolResultTextContent(sty, opts.Result.Content, toolResultContentWidths{Body: bodyWidth, Diff: cappedWidth}, opts.ExpandedContent, opts.DiffTool)
142142 parts = append(parts, body)
143143 }
144144
@@ -225,7 +225,7 @@ func (d *DockerMCPToolRenderContext) makeHeader(sty *styles.Styles, tool string,
225225
226226func (d *DockerMCPToolRenderContext) formatToolName(sty *styles.Styles, tool string) string {
227227 mainTool := "Docker MCP"
228− action := tool
228+ var action string
229229 actionStyle := sty.Tool.MCPToolName
230230 switch tool {
231231 case "mcp-exec":
@@ -254,7 +254,7 @@ func (d *DockerMCPToolRenderContext) formatToolName(sty *styles.Styles, tool str
254254}
255255
256256func (d *DockerMCPToolRenderContext) makeCompactHeader(sty *styles.Styles, tool string, width int, params ...string) string {
257− action := tool
257+ var action string
258258 switch tool {
259259 case "mcp-exec":
260260 action = "exec"
internal/ui/chat/fetch.go+8−8
@@ -26,7 +26,7 @@ func NewFetchToolMessageItem(
2626 result *message.ToolResult,
2727 canceled bool,
2828) ToolMessageItem {
29− return newBaseToolMessageItem(sty, toolCall, result, &FetchToolRenderContext{}, canceled)
29+ return newBaseToolMessageItem(sty, toolCall, result, &FetchToolRenderContext{}, canceled, "")
3030}
3131
3232// FetchToolRenderContext renders fetch tool messages.
@@ -41,7 +41,7 @@ func (f *FetchToolRenderContext) RenderTool(sty *styles.Styles, width int, opts
4141
4242 var params tools.FetchParams
4343 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
44− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
44+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
4545 }
4646
4747 toolParams := []string{params.URL}
@@ -101,7 +101,7 @@ func NewWebFetchToolMessageItem(
101101 result *message.ToolResult,
102102 canceled bool,
103103) ToolMessageItem {
104− return newBaseToolMessageItem(sty, toolCall, result, &WebFetchToolRenderContext{}, canceled)
104+ return newBaseToolMessageItem(sty, toolCall, result, &WebFetchToolRenderContext{}, canceled, "")
105105}
106106
107107// WebFetchToolRenderContext renders web_fetch tool messages.
@@ -111,16 +111,16 @@ type WebFetchToolRenderContext struct{}
111111func (w *WebFetchToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *ToolRenderOpts) string {
112112 cappedWidth := cappedMessageWidth(width)
113113 if opts.IsPending() {
114− return pendingTool(sty, "Fetch", opts.Anim, opts.Compact)
114+ return pendingTool(sty, "Web Fetch", opts.Anim, opts.Compact)
115115 }
116116
117117 var params tools.WebFetchParams
118118 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
119− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
119+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
120120 }
121121
122122 toolParams := []string{params.URL}
123− header := toolHeader(sty, opts.Status, "Fetch", cappedWidth, opts, toolParams...)
123+ header := toolHeader(sty, opts.Status, "Web Fetch", cappedWidth, opts, toolParams...)
124124 if opts.Compact {
125125 return header
126126 }
@@ -155,7 +155,7 @@ func NewWebSearchToolMessageItem(
155155 result *message.ToolResult,
156156 canceled bool,
157157) ToolMessageItem {
158− return newBaseToolMessageItem(sty, toolCall, result, &WebSearchToolRenderContext{}, canceled)
158+ return newBaseToolMessageItem(sty, toolCall, result, &WebSearchToolRenderContext{}, canceled, "")
159159}
160160
161161// WebSearchToolRenderContext renders web_search tool messages.
@@ -170,7 +170,7 @@ func (w *WebSearchToolRenderContext) RenderTool(sty *styles.Styles, width int, o
170170
171171 var params tools.WebSearchParams
172172 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
173− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
173+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
174174 }
175175
176176 toolParams := []string{params.Query}
internal/ui/chat/file.go+17−17
@@ -29,7 +29,7 @@ func NewViewToolMessageItem(
2929 result *message.ToolResult,
3030 canceled bool,
3131) ToolMessageItem {
32− return newBaseToolMessageItem(sty, toolCall, result, &ViewToolRenderContext{}, canceled)
32+ return newBaseToolMessageItem(sty, toolCall, result, &ViewToolRenderContext{}, canceled, "")
3333}
3434
3535// ViewToolRenderContext renders view tool messages.
@@ -44,7 +44,7 @@ func (v *ViewToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *
4444
4545 var params tools.ViewParams
4646 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
47− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
47+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
4848 }
4949
5050 file := fsext.PrettyPath(params.FilePath)
@@ -115,7 +115,7 @@ func NewWriteToolMessageItem(
115115 result *message.ToolResult,
116116 canceled bool,
117117) ToolMessageItem {
118− return newBaseToolMessageItem(sty, toolCall, result, &WriteToolRenderContext{}, canceled)
118+ return newBaseToolMessageItem(sty, toolCall, result, &WriteToolRenderContext{}, canceled, "")
119119}
120120
121121// WriteToolRenderContext renders write tool messages.
@@ -130,7 +130,7 @@ func (w *WriteToolRenderContext) RenderTool(sty *styles.Styles, width int, opts
130130
131131 var params tools.WriteParams
132132 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
133− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
133+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
134134 }
135135
136136 file := fsext.PrettyPath(params.FilePath)
@@ -150,11 +150,11 @@ func (w *WriteToolRenderContext) RenderTool(sty *styles.Styles, width int, opts
150150 if opts.Result.IsError {
151151 var meta tools.WriteResponseMetadata
152152 if err := json.Unmarshal([]byte(opts.Result.Metadata), &meta); err == nil && meta.Diff != "" {
153− errLine := toolErrorContent(sty, opts.Result, cappedWidth)
154− diff := toolOutputDiffContentFromUnified(sty, meta.Diff, cappedWidth, opts.ExpandedContent)
153+ errLine := toolErrorContent(sty, opts.Result, cappedWidth, opts.ExpandedContent)
154+ diff := toolOutputDiffContentFromUnified(sty, meta.Diff, cappedWidth, opts.ExpandedContent, opts.DiffTool)
155155 return strings.Join([]string{header, "", errLine, "", diff}, "\n")
156156 }
157− return joinToolParts(header, toolErrorContent(sty, opts.Result, cappedWidth))
157+ return joinToolParts(header, toolErrorContent(sty, opts.Result, cappedWidth, opts.ExpandedContent))
158158 }
159159
160160 // Render code content with syntax highlighting.
@@ -184,7 +184,7 @@ func NewEditToolMessageItem(
184184 result *message.ToolResult,
185185 canceled bool,
186186) ToolMessageItem {
187− return newBaseToolMessageItem(sty, toolCall, result, &EditToolRenderContext{}, canceled)
187+ return newBaseToolMessageItem(sty, toolCall, result, &EditToolRenderContext{}, canceled, "")
188188}
189189
190190// EditToolRenderContext renders edit tool messages.
@@ -199,7 +199,7 @@ func (e *EditToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *
199199
200200 var params tools.EditParams
201201 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
202− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, width)
202+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, width, false)
203203 }
204204
205205 file := fsext.PrettyPath(params.FilePath)
@@ -223,11 +223,11 @@ func (e *EditToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *
223223 return joinToolParts(header, body)
224224 }
225225
226− diff := toolOutputDiffContent(sty, file, meta.OldContent, meta.NewContent, width, opts.ExpandedContent)
226+ diff := toolOutputDiffContent(sty, file, meta.OldContent, meta.NewContent, width, opts.ExpandedContent, opts.DiffTool)
227227
228228 // On error (e.g. denied permission), show error above the diff.
229229 if opts.Result.IsError {
230− errLine := toolErrorContent(sty, opts.Result, width)
230+ errLine := toolErrorContent(sty, opts.Result, width, opts.ExpandedContent)
231231 return strings.Join([]string{header, "", errLine, "", diff}, "\n")
232232 }
233233
@@ -252,7 +252,7 @@ func NewMultiEditToolMessageItem(
252252 result *message.ToolResult,
253253 canceled bool,
254254) ToolMessageItem {
255− return newBaseToolMessageItem(sty, toolCall, result, &MultiEditToolRenderContext{}, canceled)
255+ return newBaseToolMessageItem(sty, toolCall, result, &MultiEditToolRenderContext{}, canceled, "")
256256}
257257
258258// MultiEditToolRenderContext renders multi-edit tool messages.
@@ -267,7 +267,7 @@ func (m *MultiEditToolRenderContext) RenderTool(sty *styles.Styles, width int, o
267267
268268 var params tools.MultiEditParams
269269 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
270− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, width)
270+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, width, false)
271271 }
272272
273273 file := fsext.PrettyPath(params.FilePath)
@@ -297,11 +297,11 @@ func (m *MultiEditToolRenderContext) RenderTool(sty *styles.Styles, width int, o
297297 }
298298
299299 // Render diff with optional failed edits note.
300− diff := toolOutputMultiEditDiffContent(sty, file, meta, len(params.Edits), width, opts.ExpandedContent)
300+ diff := toolOutputMultiEditDiffContent(sty, file, meta, len(params.Edits), width, opts.ExpandedContent, opts.DiffTool)
301301
302302 // On error (e.g. denied permission), show error above the diff.
303303 if opts.Result.IsError {
304− errLine := toolErrorContent(sty, opts.Result, width)
304+ errLine := toolErrorContent(sty, opts.Result, width, opts.ExpandedContent)
305305 return strings.Join([]string{header, "", errLine, "", diff}, "\n")
306306 }
307307
@@ -326,7 +326,7 @@ func NewDownloadToolMessageItem(
326326 result *message.ToolResult,
327327 canceled bool,
328328) ToolMessageItem {
329− return newBaseToolMessageItem(sty, toolCall, result, &DownloadToolRenderContext{}, canceled)
329+ return newBaseToolMessageItem(sty, toolCall, result, &DownloadToolRenderContext{}, canceled, "")
330330}
331331
332332// DownloadToolRenderContext renders download tool messages.
@@ -341,7 +341,7 @@ func (d *DownloadToolRenderContext) RenderTool(sty *styles.Styles, width int, op
341341
342342 var params tools.DownloadParams
343343 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
344− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
344+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
345345 }
346346
347347 toolParams := []string{params.URL}
internal/ui/chat/generic.go+3−3
@@ -22,7 +22,7 @@ func NewGenericToolMessageItem(
2222 result *message.ToolResult,
2323 canceled bool,
2424) ToolMessageItem {
25− return newBaseToolMessageItem(sty, toolCall, result, &GenericToolRenderContext{}, canceled)
25+ return newBaseToolMessageItem(sty, toolCall, result, &GenericToolRenderContext{}, canceled, "")
2626}
2727
2828// GenericToolRenderContext renders unknown/generic tool messages.
@@ -39,7 +39,7 @@ func (g *GenericToolRenderContext) RenderTool(sty *styles.Styles, width int, opt
3939
4040 var params map[string]any
4141 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
42− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
42+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
4343 }
4444
4545 var toolParams []string
@@ -68,6 +68,6 @@ func (g *GenericToolRenderContext) RenderTool(sty *styles.Styles, width int, opt
6868 return joinToolParts(header, body)
6969 }
7070
71− body := renderToolResultTextContent(sty, opts.Result.Content, toolResultContentWidths{Body: bodyWidth, Diff: cappedWidth}, opts.ExpandedContent)
71+ body := renderToolResultTextContent(sty, opts.Result.Content, toolResultContentWidths{Body: bodyWidth, Diff: cappedWidth}, opts.ExpandedContent, opts.DiffTool)
7272 return joinToolParts(header, body)
7373}
internal/ui/chat/incremental_glamour_test.go−2
@@ -737,8 +737,6 @@ func TestStreamingMarkdown_LongThinkingWithLists(t *testing.T) {
737737 "final streaming output must match a fresh full render visually")
738738}
739739
740−
741−
742740// -----------------------------------------------------------------------
743741// T5 / T6 / T7: anywhere-in-prefix hazards (B1 / B2 / B3 from the
744742// F8 round-2 review). For each hazard we drive every progressive
internal/ui/chat/lsp_restart.go+1−1
@@ -22,7 +22,7 @@ func NewLSPRestartToolMessageItem(
2222 result *message.ToolResult,
2323 canceled bool,
2424) ToolMessageItem {
25− return newBaseToolMessageItem(sty, toolCall, result, &LSPRestartToolRenderContext{}, canceled)
25+ return newBaseToolMessageItem(sty, toolCall, result, &LSPRestartToolRenderContext{}, canceled, "")
2626}
2727
2828// LSPRestartToolRenderContext renders lsprestart tool messages.
internal/ui/chat/mcp.go+4−4
@@ -23,7 +23,7 @@ func NewMCPToolMessageItem(
2323 result *message.ToolResult,
2424 canceled bool,
2525) ToolMessageItem {
26− return newBaseToolMessageItem(sty, toolCall, result, &MCPToolRenderContext{}, canceled)
26+ return newBaseToolMessageItem(sty, toolCall, result, &MCPToolRenderContext{}, canceled, "")
2727}
2828
2929// MCPToolRenderContext renders bash tool messages.
@@ -34,7 +34,7 @@ func (b *MCPToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *T
3434 cappedWidth := cappedMessageWidth(width)
3535 toolNameParts := strings.SplitN(opts.ToolCall.Name, "_", 3)
3636 if len(toolNameParts) != 3 {
37− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid tool name"}, cappedWidth)
37+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid tool name"}, cappedWidth, false)
3838 }
3939 mcpName := humanizedToolName(toolNameParts[1])
4040 toolName := humanizedToolName(toolNameParts[2])
@@ -50,7 +50,7 @@ func (b *MCPToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *T
5050
5151 var params map[string]any
5252 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
53− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
53+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
5454 }
5555
5656 var toolParams []string
@@ -73,6 +73,6 @@ func (b *MCPToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *T
7373 }
7474
7575 bodyWidth := cappedWidth - toolBodyLeftPaddingTotal
76− body := renderToolResultTextContent(sty, opts.Result.Content, toolResultContentWidths{Body: bodyWidth, Diff: cappedWidth}, opts.ExpandedContent)
76+ body := renderToolResultTextContent(sty, opts.Result.Content, toolResultContentWidths{Body: bodyWidth, Diff: cappedWidth}, opts.ExpandedContent, opts.DiffTool)
7777 return joinToolParts(header, body)
7878}
internal/ui/chat/messages.go+2−1
@@ -364,7 +364,7 @@ func cappedMessageWidth(availableWidth int) int {
364364//
365365// For assistant messages with tool calls, pass a toolResults map to link results.
366366// Use BuildToolResultMap to create this map from all messages in a session.
367−func ExtractMessageItems(sty *styles.Styles, msg *message.Message, toolResults map[string]message.ToolResult) []MessageItem {
367+func ExtractMessageItems(sty *styles.Styles, msg *message.Message, toolResults map[string]message.ToolResult, diffTool string) []MessageItem {
368368 switch msg.Role {
369369 case message.User:
370370 // Reconstruct shell command items from ShellCommand parts.
@@ -401,6 +401,7 @@ func ExtractMessageItems(sty *styles.Styles, msg *message.Message, toolResults m
401401 tc,
402402 result,
403403 msg.FinishReason() == message.FinishReasonCanceled,
404+ diffTool,
404405 ))
405406 }
406407 return items
internal/ui/chat/references.go+1−1
@@ -23,7 +23,7 @@ func NewReferencesToolMessageItem(
2323 result *message.ToolResult,
2424 canceled bool,
2525) ToolMessageItem {
26− return newBaseToolMessageItem(sty, toolCall, result, &ReferencesToolRenderContext{}, canceled)
26+ return newBaseToolMessageItem(sty, toolCall, result, &ReferencesToolRenderContext{}, canceled, "")
2727}
2828
2929// ReferencesToolRenderContext renders references tool messages.
internal/ui/chat/search.go+8−8
@@ -27,7 +27,7 @@ func NewGlobToolMessageItem(
2727 result *message.ToolResult,
2828 canceled bool,
2929) ToolMessageItem {
30− return newBaseToolMessageItem(sty, toolCall, result, &GlobToolRenderContext{}, canceled)
30+ return newBaseToolMessageItem(sty, toolCall, result, &GlobToolRenderContext{}, canceled, "")
3131}
3232
3333// GlobToolRenderContext renders glob tool messages.
@@ -42,7 +42,7 @@ func (g *GlobToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *
4242
4343 var params tools.GlobParams
4444 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
45− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
45+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
4646 }
4747
4848 toolParams := []string{params.Pattern}
@@ -86,7 +86,7 @@ func NewGrepToolMessageItem(
8686 result *message.ToolResult,
8787 canceled bool,
8888) ToolMessageItem {
89− return newBaseToolMessageItem(sty, toolCall, result, &GrepToolRenderContext{}, canceled)
89+ return newBaseToolMessageItem(sty, toolCall, result, &GrepToolRenderContext{}, canceled, "")
9090}
9191
9292// GrepToolRenderContext renders grep tool messages.
@@ -101,7 +101,7 @@ func (g *GrepToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *
101101
102102 var params tools.GrepParams
103103 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
104− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
104+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
105105 }
106106
107107 toolParams := []string{params.Pattern}
@@ -151,7 +151,7 @@ func NewLSToolMessageItem(
151151 result *message.ToolResult,
152152 canceled bool,
153153) ToolMessageItem {
154− return newBaseToolMessageItem(sty, toolCall, result, &LSToolRenderContext{}, canceled)
154+ return newBaseToolMessageItem(sty, toolCall, result, &LSToolRenderContext{}, canceled, "")
155155}
156156
157157// LSToolRenderContext renders ls tool messages.
@@ -166,7 +166,7 @@ func (l *LSToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *To
166166
167167 var params tools.LSParams
168168 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
169− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
169+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
170170 }
171171
172172 path := params.Path
@@ -211,7 +211,7 @@ func NewSourcegraphToolMessageItem(
211211 result *message.ToolResult,
212212 canceled bool,
213213) ToolMessageItem {
214− return newBaseToolMessageItem(sty, toolCall, result, &SourcegraphToolRenderContext{}, canceled)
214+ return newBaseToolMessageItem(sty, toolCall, result, &SourcegraphToolRenderContext{}, canceled, "")
215215}
216216
217217// SourcegraphToolRenderContext renders sourcegraph tool messages.
@@ -226,7 +226,7 @@ func (s *SourcegraphToolRenderContext) RenderTool(sty *styles.Styles, width int,
226226
227227 var params tools.SourcegraphParams
228228 if err := json.Unmarshal([]byte(opts.ToolCall.Input), ¶ms); err != nil {
229− return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth)
229+ return toolErrorContent(sty, &message.ToolResult{Content: "Invalid parameters"}, cappedWidth, false)
230230 }
231231
232232 toolParams := []string{params.Query}
internal/ui/chat/shell.go+85−32
@@ -42,6 +42,21 @@ type ShellItem struct {
4242 sty *styles.Styles
4343 pending bool
4444 anim *anim.Anim
45+
46+ // xOffset-independent render cache. The expensive part of RawRender
47+ // (ANSI-reset trim, RemapANSI16, split, per-line width) does not
48+ // depend on the horizontal scroll offset, yet hscroll/highlight
49+ // Bump() forces a full re-render on every keystroke. Cache the
50+ // prepared display lines keyed by the inputs that actually affect
51+ // them, and reapply only the xOffset windowing per render.
52+ shellCacheValid bool
53+ shellCacheOutput string
54+ shellCacheExpanded bool
55+ shellCacheWidth int
56+ shellCachePending bool
57+ shellCacheLines []string
58+ shellCacheTruncated int
59+ shellCacheMaxWidth int
4560}
4661
4762var (
@@ -181,6 +196,14 @@ func (s *ShellItem) ScrollHorizontal(delta int) {
181196 s.Bump()
182197}
183198
199+// clearCache drops the base render cache and the xOffset-independent
200+// output cache. The latter embeds the current theme's remapped ANSI
201+// colors (via RemapANSI16), so a style change must re-run the remap.
202+func (s *ShellItem) clearCache() {
203+ s.cachedMessageItem.clearCache()
204+ s.shellCacheValid = false
205+}
206+
184207// ToggleExpanded toggles the expanded state and invalidates the cache.
185208func (s *ShellItem) ToggleExpanded() bool {
186209 s.expandedContent = !s.expandedContent
@@ -188,33 +211,19 @@ func (s *ShellItem) ToggleExpanded() bool {
188211 return s.expandedContent
189212}
190213
191−func (s *ShellItem) RawRender(width int) string {
192− cappedWidth := cappedMessageWidth(width)
193−
194− cmd := strings.ReplaceAll(s.command, "\n", " ")
195− cmd = strings.ReplaceAll(cmd, "\t", " ")
196−
197− var prompt string
198− if s.focused {
199− prompt = s.sty.Messages.ShellPrompt.Render("$")
200− } else {
201− prompt = s.sty.Messages.ShellPromptBlurred.Render("$")
202− }
203−
204− highlighted := s.sty.Messages.ShellCommand.Render(cmd)
205− header := prompt + " " + highlighted
206−
207− if s.pending {
208− if s.output == "" {
209− // Nothing streamed yet: show the spinner under the header.
210− return header + "\n" + s.anim.Render()
211− }
212− } else if s.exitCode != 0 {
213− header += " " + s.sty.Messages.ShellExitCode.Render(fmt.Sprintf("(exit %d)", s.exitCode))
214− }
215−
216− if s.output == "" {
217− return header
214+// prepareOutput computes the xOffset-independent render intermediate:
215+// the trimmed, ANSI-remapped, split-and-truncated display lines plus the
216+// max-line-width clamp value. The result is cached and only recomputed
217+// when the output, expansion, capped width, or pending state change, so a
218+// horizontal-scroll keystroke (which Bumps the list cache) no longer
219+// re-runs the ANSI trim, RemapANSI16, split, and per-line width scan.
220+func (s *ShellItem) prepareOutput(cappedWidth int) (displayLines []string, truncatedCount, maxLineWidth int) {
221+ if s.shellCacheValid &&
222+ s.shellCacheOutput == s.output &&
223+ s.shellCacheExpanded == s.expandedContent &&
224+ s.shellCacheWidth == cappedWidth &&
225+ s.shellCachePending == s.pending {
226+ return s.shellCacheLines, s.shellCacheTruncated, s.shellCacheMaxWidth
218227 }
219228
220229 // Remap raw ANSI 16-color codes onto legible Charmtone colors so
@@ -243,8 +252,8 @@ func (s *ShellItem) RawRender(width int) string {
243252 maxLines = len(lines)
244253 }
245254
246− displayLines := lines
247− truncatedCount := 0
255+ displayLines = lines
256+ truncatedCount = 0
248257 if len(lines) > maxLines {
249258 if s.pending {
250259 // Show the most recent lines while still running.
@@ -263,7 +272,51 @@ func (s *ShellItem) RawRender(width int) string {
263272 maxW = w
264273 }
265274 }
266− s.maxLineWidth = max(0, maxW-cappedWidth)
275+ maxLineWidth = max(0, maxW-cappedWidth)
276+
277+ s.shellCacheValid = true
278+ s.shellCacheOutput = s.output
279+ s.shellCacheExpanded = s.expandedContent
280+ s.shellCacheWidth = cappedWidth
281+ s.shellCachePending = s.pending
282+ s.shellCacheLines = displayLines
283+ s.shellCacheTruncated = truncatedCount
284+ s.shellCacheMaxWidth = maxLineWidth
285+
286+ return displayLines, truncatedCount, maxLineWidth
287+}
288+
289+func (s *ShellItem) RawRender(width int) string {
290+ cappedWidth := cappedMessageWidth(width)
291+
292+ cmd := strings.ReplaceAll(s.command, "\n", " ")
293+ cmd = strings.ReplaceAll(cmd, "\t", " ")
294+
295+ var prompt string
296+ if s.focused {
297+ prompt = s.sty.Messages.ShellPrompt.Render("$")
298+ } else {
299+ prompt = s.sty.Messages.ShellPromptBlurred.Render("$")
300+ }
301+
302+ highlighted := s.sty.Messages.ShellCommand.Render(cmd)
303+ header := prompt + " " + highlighted
304+
305+ if s.pending {
306+ if s.output == "" {
307+ // Nothing streamed yet: show the spinner under the header.
308+ return header + "\n" + s.anim.Render()
309+ }
310+ } else if s.exitCode != 0 {
311+ header += " " + s.sty.Messages.ShellExitCode.Render(fmt.Sprintf("(exit %d)", s.exitCode))
312+ }
313+
314+ if s.output == "" {
315+ return header
316+ }
317+
318+ displayLines, truncatedCount, maxLineWidth := s.prepareOutput(cappedWidth)
319+ s.maxLineWidth = maxLineWidth
267320
268321 var body strings.Builder
269322
@@ -271,7 +324,7 @@ func (s *ShellItem) RawRender(width int) string {
271324 // the "more lines" notice before the output.
272325 if truncatedCount > 0 && s.pending {
273326 body.WriteString(s.sty.Messages.ShellTruncation.Render(
274− fmt.Sprintf("… %d earlier lines", truncatedCount),
327+ fmt.Sprintf(assistantMessageTailWindowFormat, truncatedCount),
275328 ))
276329 body.WriteString("\n")
277330 }
@@ -289,7 +342,7 @@ func (s *ShellItem) RawRender(width int) string {
289342 // When finished, hidden lines are below, so show the notice after.
290343 if truncatedCount > 0 && !s.pending && !s.expandedContent {
291344 body.WriteString(s.sty.Messages.ShellTruncation.Render(
292− fmt.Sprintf("… %d more lines", truncatedCount),
345+ fmt.Sprintf(assistantMessageTruncateFormat, truncatedCount),
293346 ))
294347 return header + "\n" + body.String()
295348 }
internal/ui/chat/streaming_markdown.go+1−4
@@ -327,10 +327,7 @@ func scanSafeBoundaries(content string) []int {
327327 // A list closes when a blank line is followed by a
328328 // non-marker line at indent < listBaseIndent+2 (not
329329 // a continuation paragraph).
330− listClosesHere := false
331− if listDepth > 0 && blankPending && !isMarker && indent < listBaseIndent+2 {
332− listClosesHere = true
333− }
330+ listClosesHere := listDepth > 0 && blankPending && !isMarker && indent < listBaseIndent+2
334331
335332 // Non-blank line. If a blank line preceded, this is a
336333 // boundary candidate at offset `off`. Evaluate BEFORE
internal/ui/chat/todos.go+1−1
@@ -31,7 +31,7 @@ func NewTodosToolMessageItem(
3131 result *message.ToolResult,
3232 canceled bool,
3333) ToolMessageItem {
34− return newBaseToolMessageItem(sty, toolCall, result, &TodosToolRenderContext{}, canceled)
34+ return newBaseToolMessageItem(sty, toolCall, result, &TodosToolRenderContext{}, canceled, "")
3535}
3636
3737// TodosToolRenderContext renders todos tool messages.
internal/ui/chat/tool_result_content.go+2−2
@@ -41,7 +41,7 @@ func looksLikeMarkdown(content string) bool {
4141 return false
4242}
4343
44−func renderToolResultTextContent(sty *styles.Styles, content string, widths toolResultContentWidths, expanded bool) string {
44+func renderToolResultTextContent(sty *styles.Styles, content string, widths toolResultContentWidths, expanded bool, diffTool string) string {
4545 var result json.RawMessage
4646 if err := json.Unmarshal([]byte(content), &result); err == nil {
4747 prettyResult, err := json.MarshalIndent(result, "", " ")
@@ -51,7 +51,7 @@ func renderToolResultTextContent(sty *styles.Styles, content string, widths tool
5151 return sty.Tool.Body.Render(toolOutputPlainContent(sty, content, widths.Body, expanded))
5252 }
5353 if diffdetect.IsUnifiedDiff(content) {
54− return toolOutputDiffContentFromUnified(sty, content, widths.Diff, expanded)
54+ return toolOutputDiffContentFromUnified(sty, content, widths.Diff, expanded, diffTool)
5555 }
5656 if looksLikeMarkdown(content) {
5757 return sty.Tool.Body.Render(toolOutputCodeContent(sty, "result.md", content, 0, widths.Body, expanded))
internal/ui/chat/tool_result_content_test.go+5−5
@@ -72,7 +72,7 @@ func TestRenderToolResultTextContent(t *testing.T) {
7272 t.Fatalf("json.MarshalIndent() error = %v", err)
7373 }
7474 expected := styPtr.Tool.Body.Render(toolOutputCodeContent(styPtr, "result.json", string(prettyResult), 0, widths.Body, false))
75− got := renderToolResultTextContent(styPtr, content, widths, false)
75+ got := renderToolResultTextContent(styPtr, content, widths, false, "")
7676 if got != expected {
7777 t.Fatal("renderToolResultTextContent() did not choose JSON rendering")
7878 }
@@ -87,8 +87,8 @@ func TestRenderToolResultTextContent(t *testing.T) {
8787-# Old
8888+# New
8989`
90− expected := toolOutputDiffContentFromUnified(styPtr, content, widths.Diff, false)
91− got := renderToolResultTextContent(styPtr, content, widths, false)
90+ expected := toolOutputDiffContentFromUnified(styPtr, content, widths.Diff, false, "")
91+ got := renderToolResultTextContent(styPtr, content, widths, false, "")
9292 if got != expected {
9393 t.Fatal("renderToolResultTextContent() did not choose diff rendering")
9494 }
@@ -98,7 +98,7 @@ func TestRenderToolResultTextContent(t *testing.T) {
9898 t.Parallel()
9999 content := "# Title\n\nBody"
100100 expected := styPtr.Tool.Body.Render(toolOutputCodeContent(styPtr, "result.md", content, 0, widths.Body, false))
101− got := renderToolResultTextContent(styPtr, content, widths, false)
101+ got := renderToolResultTextContent(styPtr, content, widths, false, "")
102102 if got != expected {
103103 t.Fatal("renderToolResultTextContent() did not choose markdown rendering")
104104 }
@@ -108,7 +108,7 @@ func TestRenderToolResultTextContent(t *testing.T) {
108108 t.Parallel()
109109 content := "plain text"
110110 expected := styPtr.Tool.Body.Render(toolOutputPlainContent(styPtr, content, widths.Body, false))
111− got := renderToolResultTextContent(styPtr, content, widths, false)
111+ got := renderToolResultTextContent(styPtr, content, widths, false, "")
112112 if got != expected {
113113 t.Fatal("renderToolResultTextContent() did not choose plain rendering")
114114 }
internal/ui/chat/tools.go+119−52
@@ -19,6 +19,7 @@ import (
1919 "github.com/charmbracelet/crush/internal/stringext"
2020 "github.com/charmbracelet/crush/internal/ui/anim"
2121 "github.com/charmbracelet/crush/internal/ui/common"
22+ "github.com/charmbracelet/crush/internal/ui/difftastic"
2223 "github.com/charmbracelet/crush/internal/ui/list"
2324 "github.com/charmbracelet/crush/internal/ui/styles"
2425 "github.com/charmbracelet/x/ansi"
@@ -27,6 +28,11 @@ import (
2728// responseContextHeight limits the number of lines displayed in tool output.
2829const responseContextHeight = 10
2930
31+// diffContextHeight limits the number of lines displayed in code-edit
32+// diffs before truncation. Diffs get a larger default cap than plain
33+// tool output so most of a change is visible without expanding.
34+const diffContextHeight = 30
35+
3036// toolBodyLeftPaddingTotal represents the padding that should be applied to each tool body
3137const toolBodyLeftPaddingTotal = 2
3238
@@ -52,6 +58,7 @@ type ToolMessageItem interface {
5258 SetMessageID(id string)
5359 SetStatus(status ToolStatus)
5460 Status() ToolStatus
61+ SetDiffTool(tool string)
5562}
5663
5764// Compactable is an interface for tool items that can render in a compacted mode.
@@ -86,7 +93,7 @@ type DefaultToolRenderContext struct{}
8693
8794// RenderTool implements the [ToolRenderer] interface.
8895func (d *DefaultToolRenderContext) RenderTool(sty *styles.Styles, width int, opts *ToolRenderOpts) string {
89− return "TODO: Implement Tool Renderer For: " + opts.ToolCall.Name
96+ return sty.Messages.AssistantBlurred.Render(fmt.Sprintf("Unknown tool: %s", opts.ToolCall.Name))
9097}
9198
9299// ToolRenderOpts contains the data needed to render a tool call.
@@ -98,6 +105,10 @@ type ToolRenderOpts struct {
98105 Compact bool
99106 IsSpinning bool
100107 Status ToolStatus
108+ // DiffTool selects the external diff renderer for edit/multi-edit diffs.
109+ // "builtin" (the default) uses the in-process renderer; "difftastic"
110+ // shells out to the difft binary.
111+ DiffTool string
101112}
102113
103114// IsPending returns true if the tool call is still pending (not finished and
@@ -158,6 +169,8 @@ type baseToolMessageItem struct {
158169 sty *styles.Styles
159170 anim *anim.Anim
160171 expandedContent bool
172+ // diffTool selects the external diff renderer for edit/multi-edit diffs.
173+ diffTool string
161174}
162175
163176var _ Expandable = (*baseToolMessageItem)(nil)
@@ -169,6 +182,7 @@ func newBaseToolMessageItem(
169182 result *message.ToolResult,
170183 toolRenderer ToolRenderer,
171184 canceled bool,
185+ diffTool string,
172186) *baseToolMessageItem {
173187 // we only do full width for diffs (as far as I know)
174188 hasCappedWidth := toolCall.Name != tools.EditToolName && toolCall.Name != tools.MultiEditToolName
@@ -190,6 +204,7 @@ func newBaseToolMessageItem(
190204 result: result,
191205 status: status,
192206 hasCappedWidth: hasCappedWidth,
207+ diffTool: diffTool,
193208 }
194209 t.anim = anim.New(anim.Settings{
195210 ID: toolCall.ID,
@@ -214,6 +229,7 @@ func NewToolMessageItem(
214229 toolCall message.ToolCall,
215230 result *message.ToolResult,
216231 canceled bool,
232+ diffTool string,
217233) ToolMessageItem {
218234 var item ToolMessageItem
219235 switch toolCall.Name {
@@ -268,6 +284,7 @@ func NewToolMessageItem(
268284 item = NewGenericToolMessageItem(sty, toolCall, result, canceled)
269285 }
270286 }
287+ item.SetDiffTool(diffTool)
271288 item.SetMessageID(messageID)
272289 return item
273290}
@@ -282,6 +299,16 @@ func (t *baseToolMessageItem) SetCompact(compact bool) {
282299 t.Bump()
283300}
284301
302+// SetDiffTool sets the external diff tool preference and invalidates the cache.
303+func (t *baseToolMessageItem) SetDiffTool(tool string) {
304+ if t.diffTool == tool {
305+ return
306+ }
307+ t.diffTool = tool
308+ t.clearCache()
309+ t.Bump()
310+}
311+
285312// ID returns the unique identifier for this tool message item.
286313func (t *baseToolMessageItem) ID() string {
287314 return t.toolCall.ID
@@ -333,6 +360,7 @@ func (t *baseToolMessageItem) RawRender(width int) string {
333360 Compact: t.isCompact,
334361 IsSpinning: t.isSpinning(),
335362 Status: t.computeStatus(),
363+ DiffTool: t.diffTool,
336364 })
337365
338366 // Prepend hook indicator if hooks ran for this tool call.
@@ -528,7 +556,7 @@ func toolEarlyStateContent(sty *styles.Styles, opts *ToolRenderOpts, width int)
528556 var msg string
529557 switch opts.Status {
530558 case ToolStatusError:
531− msg = toolErrorContent(sty, opts.Result, width)
559+ msg = toolErrorContent(sty, opts.Result, width, opts.ExpandedContent)
532560 case ToolStatusCanceled:
533561 msg = sty.Tool.StateCancelled.Render("Canceled.")
534562 case ToolStatusAwaitingPermission:
@@ -542,21 +570,42 @@ func toolEarlyStateContent(sty *styles.Styles, opts *ToolRenderOpts, width int)
542570}
543571
544572// toolErrorContent formats an error message with an ERROR or WARN tag.
545−func toolErrorContent(sty *styles.Styles, result *message.ToolResult, width int) string {
573+//
574+// When collapsed it shows a single truncated line plus a hidden-line
575+// notice; when expanded it renders the full message wrapped to width,
576+// preserving newlines, so multi-line failures (stack traces, compiler
577+// output, edit-failure messages) stay actionable. This mirrors the
578+// assistant-level error renderer's wrapped Details.
579+func toolErrorContent(sty *styles.Styles, result *message.ToolResult, width int, expanded bool) string {
546580 if result == nil {
547581 return ""
548582 }
549− errContent := strings.ReplaceAll(result.Content, "\n", " ")
550− if strings.Contains(errContent, "User denied permission") {
551− deniedTag := sty.Tool.WarnTag.Render("WARN")
552− deniedTagWidth := lipgloss.Width(deniedTag)
553− errContent = ansi.Truncate(errContent, width-deniedTagWidth-3, "…")
554− return fmt.Sprintf("%s %s", deniedTag, sty.Tool.WarnMessage.Render(errContent))
583+ content := strings.TrimRight(result.Content, "\n")
584+
585+ tag := sty.Tool.ErrorTag.Render("ERROR")
586+ msgStyle := sty.Tool.ErrorMessage
587+ if strings.Contains(content, "User denied permission") {
588+ tag = sty.Tool.WarnTag.Render("WARN")
589+ msgStyle = sty.Tool.WarnMessage
590+ }
591+ tagWidth := lipgloss.Width(tag)
592+ msgWidth := max(1, width-tagWidth-1)
593+
594+ if !expanded {
595+ oneLine := ansi.Truncate(strings.ReplaceAll(content, "\n", " "), msgWidth, "…")
596+ out := fmt.Sprintf("%s %s", tag, msgStyle.Render(oneLine))
597+ if hidden := strings.Count(content, "\n"); hidden > 0 {
598+ out += "\n" + sty.Tool.ContentTruncation.
599+ Width(width).
600+ Render(fmt.Sprintf(assistantMessageTruncateFormat, hidden))
601+ }
602+ return out
555603 }
556− errTag := sty.Tool.ErrorTag.Render("ERROR")
557− tagWidth := lipgloss.Width(errTag)
558− errContent = ansi.Truncate(errContent, width-tagWidth-3, "…")
559− return fmt.Sprintf("%s %s", errTag, sty.Tool.ErrorMessage.Render(errContent))
604+
605+ // Expanded: wrap the full message to width, preserving newlines,
606+ // and align continuation lines under the message column.
607+ wrapped := msgStyle.Width(msgWidth).Render(content)
608+ return lipgloss.JoinHorizontal(lipgloss.Top, tag+" ", wrapped)
560609}
561610
562611// toolIcon returns the status icon for a tool call.
@@ -942,18 +991,33 @@ func formatSize(bytes int) string {
942991 )
943992 switch {
944993 case bytes >= mb:
945− return fmt.Sprintf("%.1f MB", float64(bytes)/float64(mb))
994+ result := fmt.Sprintf("%.1f MB", float64(bytes)/float64(mb))
995+ if strings.HasSuffix(result, ".0 MB") {
996+ result = strings.Replace(result, ".0 MB", " MB", 1)
997+ }
998+ return result
946999 case bytes >= kb:
947− return fmt.Sprintf("%.1f KB", float64(bytes)/float64(kb))
1000+ result := fmt.Sprintf("%.1f KB", float64(bytes)/float64(kb))
1001+ if strings.HasSuffix(result, ".0 KB") {
1002+ result = strings.Replace(result, ".0 KB", " KB", 1)
1003+ }
1004+ return result
9481005 default:
9491006 return fmt.Sprintf("%d B", bytes)
9501007 }
9511008}
9521009
9531010// toolOutputDiffContent renders a diff between old and new content.
954−func toolOutputDiffContent(sty *styles.Styles, file, oldContent, newContent string, width int, expanded bool) string {
1011+func toolOutputDiffContent(sty *styles.Styles, file, oldContent, newContent string, width int, expanded bool, diffTool string) string {
9551012 bodyWidth := width - toolBodyLeftPaddingTotal
9561013
1014+ // Try difftastic if enabled. Fall back to builtin on any failure.
1015+ if diffTool == "difftastic" {
1016+ if out, err := difftastic.RenderDiff(file, oldContent, newContent, bodyWidth); err == nil && out != "" {
1017+ return sty.Tool.Body.Render(truncateDiff(sty, out, bodyWidth, expanded))
1018+ }
1019+ }
1020+
9571021 formatter := common.DiffFormatter(sty).
9581022 Before(file, oldContent).
9591023 After(file, newContent).
@@ -965,22 +1029,7 @@ func toolOutputDiffContent(sty *styles.Styles, file, oldContent, newContent stri
9651029 }
9661030
9671031 formatted := formatter.String()
968− lines := strings.Split(formatted, "\n")
969−
970− // Truncate if needed.
971− maxLines := responseContextHeight
972− if expanded {
973− maxLines = len(lines)
974− }
975−
976− if len(lines) > maxLines && !expanded {
977− truncMsg := sty.Tool.DiffTruncation.
978− Width(bodyWidth).
979− Render(fmt.Sprintf(assistantMessageTruncateFormat, len(lines)-maxLines))
980− formatted = strings.Join(lines[:maxLines], "\n") + "\n" + truncMsg
981− }
982−
983− return sty.Tool.Body.Render(formatted)
1032+ return sty.Tool.Body.Render(truncateDiff(sty, formatted, bodyWidth, expanded))
9841033}
9851034
9861035// formatTimeout converts timeout seconds to a duration string (e.g., "30s").
@@ -1001,9 +1050,24 @@ func formatNonZero(value int) string {
10011050}
10021051
10031052// toolOutputMultiEditDiffContent renders a diff with optional failed edits note.
1004−func toolOutputMultiEditDiffContent(sty *styles.Styles, file string, meta tools.MultiEditResponseMetadata, totalEdits, width int, expanded bool) string {
1053+func toolOutputMultiEditDiffContent(sty *styles.Styles, file string, meta tools.MultiEditResponseMetadata, totalEdits, width int, expanded bool, diffTool string) string {
10051054 bodyWidth := width - toolBodyLeftPaddingTotal
10061055
1056+ // Try difftastic if enabled. Fall back to builtin on any failure.
1057+ if diffTool == "difftastic" {
1058+ if out, err := difftastic.RenderDiff(file, meta.OldContent, meta.NewContent, bodyWidth); err == nil && out != "" {
1059+ formatted := truncateDiff(sty, out, bodyWidth, expanded)
1060+ // Add failed edits note if any exist.
1061+ if len(meta.EditsFailed) > 0 {
1062+ noteTag := sty.Tool.NoteTag.Render("Note")
1063+ noteMsg := fmt.Sprintf("%d of %d edits succeeded", meta.EditsApplied, totalEdits)
1064+ note := fmt.Sprintf("%s %s", noteTag, sty.Tool.NoteMessage.Render(noteMsg))
1065+ formatted = formatted + "\n\n" + note
1066+ }
1067+ return sty.Tool.Body.Render(formatted)
1068+ }
1069+ }
1070+
10071071 formatter := common.DiffFormatter(sty).
10081072 Before(file, meta.OldContent).
10091073 After(file, meta.NewContent).
@@ -1015,20 +1079,7 @@ func toolOutputMultiEditDiffContent(sty *styles.Styles, file string, meta tools.
10151079 }
10161080
10171081 formatted := formatter.String()
1018− lines := strings.Split(formatted, "\n")
1019−
1020− // Truncate if needed.
1021− maxLines := responseContextHeight
1022− if expanded {
1023− maxLines = len(lines)
1024− }
1025−
1026− if len(lines) > maxLines && !expanded {
1027− truncMsg := sty.Tool.DiffTruncation.
1028− Width(bodyWidth).
1029− Render(fmt.Sprintf(assistantMessageTruncateFormat, len(lines)-maxLines))
1030− formatted = truncMsg + "\n" + strings.Join(lines[:maxLines], "\n")
1031− }
1082+ formatted = truncateDiff(sty, formatted, bodyWidth, expanded)
10321083
10331084 // Add failed edits note if any exist.
10341085 if len(meta.EditsFailed) > 0 {
@@ -1041,6 +1092,22 @@ func toolOutputMultiEditDiffContent(sty *styles.Styles, file string, meta tools.
10411092 return sty.Tool.Body.Render(formatted)
10421093}
10431094
1095+// truncateDiff truncates diff output to diffContextHeight lines unless expanded.
1096+func truncateDiff(sty *styles.Styles, content string, bodyWidth int, expanded bool) string {
1097+ lines := strings.Split(content, "\n")
1098+ maxLines := diffContextHeight
1099+ if expanded {
1100+ maxLines = len(lines)
1101+ }
1102+ if len(lines) > maxLines && !expanded {
1103+ truncMsg := sty.Tool.DiffTruncation.
1104+ Width(bodyWidth).
1105+ Render(fmt.Sprintf(assistantMessageTruncateFormat, len(lines)-maxLines))
1106+ return strings.Join(lines[:maxLines], "\n") + "\n" + truncMsg
1107+ }
1108+ return content
1109+}
1110+
10441111// roundedEnumerator creates a tree enumerator with rounded corners.
10451112func roundedEnumerator(lPadding, width int) tree.Enumerator {
10461113 if width == 0 {
@@ -1341,7 +1408,7 @@ func (t *baseToolMessageItem) formatBashResultForCopy() string {
13411408
13421409 var meta tools.BashResponseMetadata
13431410 if t.result.Metadata != "" {
1344− json.Unmarshal([]byte(t.result.Metadata), &meta)
1411+ _ = json.Unmarshal([]byte(t.result.Metadata), &meta)
13451412 }
13461413
13471414 output := meta.Output
@@ -1364,7 +1431,7 @@ func (t *baseToolMessageItem) formatViewResultForCopy() string {
13641431
13651432 var meta tools.ViewResponseMetadata
13661433 if t.result.Metadata != "" {
1367− json.Unmarshal([]byte(t.result.Metadata), &meta)
1434+ _ = json.Unmarshal([]byte(t.result.Metadata), &meta)
13681435 }
13691436
13701437 if meta.Content == "" {
@@ -1435,7 +1502,7 @@ func (t *baseToolMessageItem) formatEditResultForCopy() string {
14351502 }
14361503
14371504 var params tools.EditParams
1438− json.Unmarshal([]byte(t.toolCall.Input), ¶ms)
1505+ _ = json.Unmarshal([]byte(t.toolCall.Input), ¶ms)
14391506
14401507 var result strings.Builder
14411508
@@ -1470,7 +1537,7 @@ func (t *baseToolMessageItem) formatMultiEditResultForCopy() string {
14701537 }
14711538
14721539 var params tools.MultiEditParams
1473− json.Unmarshal([]byte(t.toolCall.Input), ¶ms)
1540+ _ = json.Unmarshal([]byte(t.toolCall.Input), ¶ms)
14741541
14751542 var result strings.Builder
14761543 if meta.OldContent != "" || meta.NewContent != "" {
@@ -1661,7 +1728,7 @@ func prettifyToolName(name string) string {
16611728 case tools.AgenticFetchToolName:
16621729 return "Agentic Fetch"
16631730 case tools.WebFetchToolName:
1664− return "Fetch"
1731+ return "Web Fetch"
16651732 case tools.WebSearchToolName:
16661733 return "Search"
16671734 case tools.GlobToolName:
internal/ui/chat/unified_diff.go+13−14
@@ -1,11 +1,11 @@
11package chat
22
33import (
4− "fmt"
54 "strings"
65
76 "github.com/charmbracelet/crush/internal/diffdetect"
87 "github.com/charmbracelet/crush/internal/ui/common"
8+ "github.com/charmbracelet/crush/internal/ui/difftastic"
99 "github.com/charmbracelet/crush/internal/ui/styles"
1010)
1111
@@ -130,13 +130,23 @@ func parseUnifiedDiff(content string) []parsedDiffFile {
130130 return result
131131}
132132
133−func toolOutputDiffContentFromUnified(sty *styles.Styles, content string, width int, expanded bool) string {
133+func toolOutputDiffContentFromUnified(sty *styles.Styles, content string, width int, expanded bool, diffTool string) string {
134134 files := parseUnifiedDiff(content)
135135 if len(files) == 0 {
136136 bodyWidth := width - toolBodyLeftPaddingTotal
137137 return sty.Tool.Body.Render(toolOutputCodeContent(sty, "result.diff", content, 0, bodyWidth, expanded))
138138 }
139139 bodyWidth := width - toolBodyLeftPaddingTotal
140+
141+ // Try difftastic if enabled and there's a single file diff. Fall back to
142+ // builtin on any failure or when multiple files are involved.
143+ if diffTool == "difftastic" && len(files) == 1 {
144+ f := files[0]
145+ if out, err := difftastic.RenderDiff(f.path, f.before, f.after, bodyWidth); err == nil && out != "" {
146+ return sty.Tool.Body.Render(truncateDiff(sty, out, bodyWidth, expanded))
147+ }
148+ }
149+
140150 var blocks []string
141151 for i, f := range files {
142152 formatter := common.DiffFormatter(sty).
@@ -156,16 +166,5 @@ func toolOutputDiffContentFromUnified(sty *styles.Styles, content string, width
156166 blocks = append(blocks, formatted)
157167 }
158168 combined := strings.Join(blocks, "\n")
159− lines := strings.Split(combined, "\n")
160− maxLines := responseContextHeight
161− if expanded {
162− maxLines = len(lines)
163− }
164− if len(lines) > maxLines && !expanded {
165− truncMsg := sty.Tool.DiffTruncation.
166− Width(bodyWidth).
167− Render(fmt.Sprintf(assistantMessageTruncateFormat, len(lines)-maxLines))
168− combined = strings.Join(lines[:maxLines], "\n") + "\n" + truncMsg
169− }
170− return sty.Tool.Body.Render(combined)
169+ return sty.Tool.Body.Render(truncateDiff(sty, combined, bodyWidth, expanded))
171170}
internal/ui/chat/version_bump_test.go+10−10
@@ -131,7 +131,7 @@ func TestBaseToolMessageItem_MutatorsBumpVersion(t *testing.T) {
131131
132132 sty := styles.CharmtonePantera()
133133 tc := message.ToolCall{ID: "tc1", Name: "bash", Input: "{}", Finished: false}
134− item := NewToolMessageItem(&sty, "msg", tc, nil, false)
134+ item := NewToolMessageItem(&sty, "msg", tc, nil, false, "")
135135
136136 v := item.(versionedItem)
137137
@@ -283,7 +283,7 @@ func TestAgentToolMessageItem_NestedToolMutatorsBumpVersion(t *testing.T) {
283283
284284 mkChild := func(id string) ToolMessageItem {
285285 tc := message.ToolCall{ID: id, Name: "bash", Input: `{}`, Finished: false}
286− return NewToolMessageItem(&sty, "msg", tc, nil, false)
286+ return NewToolMessageItem(&sty, "msg", tc, nil, false, "")
287287 }
288288
289289 // AddNestedTool always bumps.
@@ -320,7 +320,7 @@ func TestAgenticFetchToolMessageItem_NestedToolMutatorsBumpVersion(t *testing.T)
320320
321321 mkChild := func(id string) ToolMessageItem {
322322 tc := message.ToolCall{ID: id, Name: "fetch", Input: `{}`, Finished: false}
323− return NewToolMessageItem(&sty, "msg", tc, nil, false)
323+ return NewToolMessageItem(&sty, "msg", tc, nil, false, "")
324324 }
325325
326326 requireBump(t, "AddNestedTool", item, func() {
@@ -357,7 +357,7 @@ func TestAgentToolMessageItem_NestedChildInPlaceMutationBumpsParent(t *testing.T
357357 item := NewAgentToolMessageItem(&sty, parent, nil, false)
358358
359359 childTC := message.ToolCall{ID: "c1", Name: "bash", Input: `{}`, Finished: false}
360− child := NewToolMessageItem(&sty, "msg", childTC, nil, false)
360+ child := NewToolMessageItem(&sty, "msg", childTC, nil, false, "")
361361 item.AddNestedTool(child)
362362
363363 v0 := item.Version()
@@ -386,7 +386,7 @@ func TestAgenticFetchToolMessageItem_NestedChildInPlaceMutationBumpsParent(t *te
386386 item := NewAgenticFetchToolMessageItem(&sty, parent, nil, false)
387387
388388 childTC := message.ToolCall{ID: "c1", Name: "fetch", Input: `{}`, Finished: false}
389− child := NewToolMessageItem(&sty, "msg", childTC, nil, false)
389+ child := NewToolMessageItem(&sty, "msg", childTC, nil, false, "")
390390 item.AddNestedTool(child)
391391
392392 v0 := item.Version()
@@ -427,7 +427,7 @@ func TestBaseToolMessageItem_AnimateBumpsVersion(t *testing.T) {
427427
428428 sty := styles.CharmtonePantera()
429429 tc := message.ToolCall{ID: "tc-spin", Name: "bash", Input: "{}", Finished: false}
430− item := NewToolMessageItem(&sty, "msg", tc, nil, false)
430+ item := NewToolMessageItem(&sty, "msg", tc, nil, false, "")
431431 v := item.(versionedItem)
432432 a, ok := item.(Animatable)
433433 require.True(t, ok, "base tool message item must implement Animatable")
@@ -475,7 +475,7 @@ func TestAgentToolMessageItem_AnimateBumpsVersion(t *testing.T) {
475475 parent := NewAgentToolMessageItem(&sty, parentTC, nil, false)
476476
477477 childTC := message.ToolCall{ID: "agent-child", Name: "bash", Input: `{}`, Finished: false}
478− child := NewToolMessageItem(&sty, "msg", childTC, nil, false)
478+ child := NewToolMessageItem(&sty, "msg", childTC, nil, false, "")
479479 parent.AddNestedTool(child)
480480
481481 // Spinning + parent's own ID → parent bumps.
@@ -520,7 +520,7 @@ func TestAgenticFetchToolMessageItem_AnimateBumpsVersion(t *testing.T) {
520520 parent := NewAgenticFetchToolMessageItem(&sty, parentTC, nil, false)
521521
522522 childTC := message.ToolCall{ID: "fetch-child", Name: "fetch", Input: `{}`, Finished: false}
523− child := NewToolMessageItem(&sty, "msg", childTC, nil, false)
523+ child := NewToolMessageItem(&sty, "msg", childTC, nil, false, "")
524524 parent.AddNestedTool(child)
525525
526526 requireBump(t, "Animate[spinning,parent ID]", parent, func() {
@@ -551,7 +551,7 @@ func TestBaseToolMessageItem_FinishedTransition(t *testing.T) {
551551
552552 sty := styles.CharmtonePantera()
553553 tc := message.ToolCall{ID: "tc-fin", Name: "bash", Input: "{}", Finished: false}
554− item := NewToolMessageItem(&sty, "msg", tc, nil, false)
554+ item := NewToolMessageItem(&sty, "msg", tc, nil, false, "")
555555 require.False(t, item.Finished(), "running tool must not be Finished()")
556556
557557 tcFinished := tc
@@ -562,6 +562,6 @@ func TestBaseToolMessageItem_FinishedTransition(t *testing.T) {
562562
563563 // Canceled tool with no result is also Finished.
564564 tcCanceled := message.ToolCall{ID: "tc-cancel", Name: "bash", Input: "{}", Finished: false}
565− canceled := NewToolMessageItem(&sty, "msg", tcCanceled, nil, true)
565+ canceled := NewToolMessageItem(&sty, "msg", tcCanceled, nil, true, "")
566566 require.True(t, canceled.Finished(), "canceled tool must be Finished()")
567567}
internal/ui/common/capabilities.go−12
@@ -1,7 +1,6 @@
11package common
22
33import (
4− "slices"
54 "strings"
65
76 tea "charm.land/bubbletea/v2"
@@ -29,8 +28,6 @@ type Capabilities struct {
2928 // KittyGraphics indicates whether the terminal supports the Kitty graphics
3029 // protocol.
3130 KittyGraphics bool
32− // SixelGraphics indicates whether the terminal supports Sixel graphics.
33− SixelGraphics bool
3431 // Env is the terminal environment variables.
3532 Env uv.Environ
3633 // TerminalVersion is the terminal version string.
@@ -56,10 +53,6 @@ func (c *Capabilities) Update(msg any) {
5653 c.PixelY = m.Height
5754 case uv.KittyGraphicsEvent:
5855 c.KittyGraphics = true
59− case uv.PrimaryDeviceAttributesEvent:
60− if slices.Contains(m, 4) {
61− c.SixelGraphics = true
62− }
6356 case tea.TerminalVersionMsg:
6457 c.TerminalVersion = m.Name
6558 case tea.ModeReportMsg:
@@ -108,11 +101,6 @@ func (c Capabilities) SupportsKittyGraphics() bool {
108101 return c.KittyGraphics
109102}
110103
111−// SupportsSixelGraphics returns true if the terminal supports Sixel graphics.
112−func (c Capabilities) SupportsSixelGraphics() bool {
113− return c.SixelGraphics
114−}
115−
116104// CellSize returns the size of a single terminal cell in pixels.
117105func (c Capabilities) CellSize() (width, height int) {
118106 if c.Columns == 0 || c.Rows == 0 {
internal/ui/common/diff.go+20−1
@@ -1,16 +1,35 @@
11package common
22
33import (
4+ "sync"
5+
46 "github.com/alecthomas/chroma/v2"
57 "github.com/charmbracelet/crush/internal/ui/diffview"
68 "github.com/charmbracelet/crush/internal/ui/styles"
79)
810
11+// diffStyleCache memoizes the *chroma.Style built for a given theme. Building
12+// the style (MustNewStyle) parses colors for every entry and was previously
13+// done on every DiffFormatter call. The Styles struct is mutated in place on
14+// theme change, so we key on the theme's content fingerprint rather than its
15+// pointer identity.
16+var diffStyleCache sync.Map // map[uint64]*chroma.Style
17+
918// DiffFormatter returns a diff formatter with the given styles that can be
1019// used to format diff outputs.
1120func DiffFormatter(s *styles.Styles) *diffview.DiffView {
1221 formatDiff := diffview.New()
13− style := chroma.MustNewStyle("crush", s.ChromaTheme())
22+
23+ theme := s.ChromaTheme()
24+ key := chromaStyleKey(theme, nil)
25+ var style *chroma.Style
26+ if cached, ok := diffStyleCache.Load(key); ok {
27+ style = cached.(*chroma.Style)
28+ } else {
29+ style = chroma.MustNewStyle("crush", theme)
30+ diffStyleCache.Store(key, style)
31+ }
32+
1433 diff := formatDiff.ChromaStyle(style).Style(s.Diff).TabWidth(4)
1534 return diff
1635}
internal/ui/common/elements.go+3
@@ -115,6 +115,9 @@ func formatTokensAndCost(t *styles.Styles, tokens, contextWindow int64, cost flo
115115 if contextWindow > 0 {
116116 percentage = (float64(tokens) / float64(contextWindow)) * 100
117117 }
118+ if percentage > 100 {
119+ percentage = 100
120+ }
118121
119122 formattedCost := t.ModelInfo.Cost.Render(fmt.Sprintf("$%.2f", cost))
120123
internal/ui/common/highlight.go+7−5
@@ -38,12 +38,14 @@ func chromaStyleKey(theme chroma.StyleEntries, bg color.Color) uint64 {
3838 h.Write([]byte(theme[chroma.TokenType(tt)]))
3939 h.Write([]byte{0})
4040 }
41− r, g, b, a := bg.RGBA()
4241 var buf [8]byte
43− buf[0] = byte(r >> 8)
44− buf[1] = byte(g >> 8)
45− buf[2] = byte(b >> 8)
46− buf[3] = byte(a >> 8)
42+ if bg != nil {
43+ r, g, b, a := bg.RGBA()
44+ buf[0] = byte(r >> 8)
45+ buf[1] = byte(g >> 8)
46+ buf[2] = byte(b >> 8)
47+ buf[3] = byte(a >> 8)
48+ }
4749 h.Write(buf[:4])
4850 return h.Sum64()
4951}
internal/ui/completions/completions.go+6−4
@@ -230,11 +230,13 @@ func (c *Completions) applyNamePriorityFilter(query string) {
230230 }
231231
232232 c.list.SetItems(c.allItems...)
233+ // SetFilter computes the filtered set (a single fuzzy pass) and stores it
234+ // in the list; read it back instead of recomputing via FilteredItems.
233235 c.list.SetFilter(query)
234− raw := c.list.FilteredItems()
235− filtered := make([]list.FilterableItem, 0, len(raw))
236− for _, item := range raw {
237− filterable, ok := item.(list.FilterableItem)
236+ n := c.list.Len()
237+ filtered := make([]list.FilterableItem, 0, n)
238+ for i := range n {
239+ filterable, ok := c.list.ItemAt(i).(list.FilterableItem)
238240 if !ok {
239241 continue
240242 }
internal/ui/dialog/actions.go+3
@@ -102,6 +102,9 @@ type (
102102type (
103103 ActionChangeAPIKeyState struct {
104104 State APIKeyInputState
105+ // Reason is an optional human-readable explanation, set when
106+ // transitioning to APIKeyInputStateError.
107+ Reason string
105108 }
106109)
107110
internal/ui/dialog/api_key_input.go+54−7
@@ -40,8 +40,9 @@ type APIKeyInput struct {
4040 model config.SelectedModel
4141 modelType config.SelectedModelType
4242
43− width int
44− state APIKeyInputState
43+ width int
44+ state APIKeyInputState
45+ errMsg string // reason for the last verification failure
4546
4647 keyMap struct {
4748 Submit key.Binding
@@ -91,7 +92,7 @@ func NewAPIKeyInput(
9192
9293 m.keyMap.Submit = key.NewBinding(
9394 key.WithKeys("enter", "ctrl+y"),
94− key.WithHelp("enter", "submit"),
95+ key.WithHelp("enter", "confirm"),
9596 )
9697 m.keyMap.Close = CloseKey
9798
@@ -110,8 +111,11 @@ func (m *APIKeyInput) HandleMsg(msg tea.Msg) Action {
110111 m.state = msg.State
111112 switch m.state {
112113 case APIKeyInputStateVerifying:
114+ m.errMsg = ""
113115 cmd := tea.Batch(m.spinner.Tick, m.verifyAPIKey)
114116 return ActionCmd{cmd}
117+ case APIKeyInputStateError:
118+ m.errMsg = msg.Reason
115119 }
116120 case spinner.TickMsg:
117121 switch m.state {
@@ -169,14 +173,23 @@ func (m *APIKeyInput) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
169173
170174 m.input.Prompt = m.spinner.View()
171175
172− content := strings.Join([]string{
176+ lines := []string{
173177 m.headerView(),
174178 inputStyle.Render(m.inputView()),
179+ }
180+ if m.state == APIKeyInputStateError && m.errMsg != "" {
181+ errStyle := textStyle.
182+ Foreground(charmtone.Cherry).
183+ Width(m.width - dialogStyle.GetHorizontalFrameSize())
184+ lines = append(lines, errStyle.Render(m.errMsg))
185+ }
186+ lines = append(lines,
175187 textStyle.Render("This will be written in your global configuration:"),
176188 textStyle.Render(config.GlobalConfigData()),
177189 "",
178190 helpStyle.Render(m.help.View(m)),
179− }, "\n")
191+ )
192+ content := strings.Join(lines, "\n")
180193
181194 cur := m.Cursor()
182195
@@ -301,9 +314,43 @@ func (m *APIKeyInput) verifyAPIKey() tea.Msg {
301314 }
302315
303316 if err == nil {
304− return ActionChangeAPIKeyState{APIKeyInputStateVerified}
317+ return ActionChangeAPIKeyState{State: APIKeyInputStateVerified}
318+ }
319+ return ActionChangeAPIKeyState{
320+ State: APIKeyInputStateError,
321+ Reason: apiKeyErrorReason(err),
322+ }
323+}
324+
325+// apiKeyErrorReason maps a TestConnection error to a concise, user-facing
326+// explanation. Common cases (auth, permission, network) get a friendly hint;
327+// anything else falls back to the raw error message.
328+func apiKeyErrorReason(err error) string {
329+ if err == nil {
330+ return ""
331+ }
332+ msg := strings.TrimSpace(err.Error())
333+ low := strings.ToLower(msg)
334+ switch {
335+ case strings.Contains(low, "401"),
336+ strings.Contains(low, "unauthorized"),
337+ strings.Contains(low, "invalid api key"),
338+ strings.Contains(low, "invalid_api_key"),
339+ strings.Contains(low, "authentication"):
340+ return "Authentication failed — the key was rejected (401)."
341+ case strings.Contains(low, "403"),
342+ strings.Contains(low, "forbidden"):
343+ return "Access forbidden (403) — the key may lack permissions."
344+ case strings.Contains(low, "no such host"),
345+ strings.Contains(low, "timeout"),
346+ strings.Contains(low, "timed out"),
347+ strings.Contains(low, "connection refused"),
348+ strings.Contains(low, "network"),
349+ strings.Contains(low, "dial tcp"):
350+ return "Network error — could not reach the provider."
351+ default:
352+ return msg
305353 }
306− return ActionChangeAPIKeyState{APIKeyInputStateError}
307354}
308355
309356func (m *APIKeyInput) saveKeyAndContinue() Action {
internal/ui/dialog/arguments.go+20−11
@@ -23,6 +23,21 @@ import (
2323// ArgumentsID is the identifier for the arguments dialog.
2424const ArgumentsID = "arguments"
2525
26+// argumentTitleCaser title-cases argument labels. It is stateless and safe to
27+// reuse, so it is kept package-level to avoid rebuilding it on every Draw.
28+var argumentTitleCaser = cases.Title(language.English)
29+
30+// prettyArgumentLabel converts an argument title into a human-friendly label.
31+func prettyArgumentLabel(title string) string {
32+ title = strings.ReplaceAll(title, "_", " ")
33+ title = strings.ReplaceAll(title, "-", " ")
34+ titleParts := strings.Fields(title)
35+ for i, part := range titleParts {
36+ titleParts[i] = argumentTitleCaser.String(strings.ToLower(part))
37+ }
38+ return strings.Join(titleParts, " ")
39+}
40+
2641// Dialog sizing for arguments.
2742const (
2843 maxInputWidth = 120
@@ -36,6 +51,7 @@ type Arguments struct {
3651 com *common.Common
3752 title string
3853 arguments []commands.Argument
54+ labels []string // pretty labels, precomputed from argument titles
3955 inputs []textinput.Model
4056 focused int
4157 spinner spinner.Model
@@ -88,7 +104,9 @@ func NewArguments(com *common.Common, title, description string, arguments []com
88104
89105 // Create input fields for each argument.
90106 a.inputs = make([]textinput.Model, len(arguments))
107+ a.labels = make([]string, len(arguments))
91108 for i, arg := range arguments {
109+ a.labels[i] = prettyArgumentLabel(arg.Title)
92110 input := textinput.New()
93111 input.SetVirtualCursor(false)
94112 input.SetStyles(com.Styles.TextInput)
@@ -262,20 +280,12 @@ func (a *Arguments) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
262280 dialogContentStyle := s.Dialog.Arguments.Content
263281 possibleWidth := area.Dx() - s.Dialog.View.GetHorizontalFrameSize() - dialogContentStyle.GetHorizontalFrameSize()
264282 // Build fields with label and input.
265− caser := cases.Title(language.English)
266−
267283 var fields []string
268284 for i, arg := range a.arguments {
269285 isFocused := i == a.focused
270286
271− // Try to pretty up the title for the label.
272− title := strings.ReplaceAll(arg.Title, "_", " ")
273− title = strings.ReplaceAll(title, "-", " ")
274− titleParts := strings.Fields(title)
275− for i, part := range titleParts {
276− titleParts[i] = caser.String(strings.ToLower(part))
277− }
278− labelText := strings.Join(titleParts, " ")
287+ // Label was pretty-printed once at construction.
288+ labelText := a.labels[i]
279289
280290 markRequiredStyle := s.Dialog.Arguments.InputRequiredMarkBlurred
281291
@@ -305,7 +315,6 @@ func (a *Arguments) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
305315 renderedFields := lipgloss.JoinVertical(lipgloss.Left, fields...)
306316
307317 // Anchor width to the longest field, capped at maxInputWidth.
308− const scrollbarWidth = 1
309318 width := lipgloss.Width(renderedFields)
310319 height := lipgloss.Height(renderedFields)
311320
internal/ui/dialog/commands.go+48−163
@@ -2,7 +2,6 @@ package dialog
22
33import (
44 "os"
5− "strings"
65
76 "charm.land/bubbles/v2/help"
87 "charm.land/bubbles/v2/key"
@@ -13,29 +12,16 @@ import (
1312 "github.com/charmbracelet/crush/internal/config"
1413 "github.com/charmbracelet/crush/internal/ui/common"
1514 "github.com/charmbracelet/crush/internal/ui/list"
16− "github.com/charmbracelet/crush/internal/ui/styles"
1715 uv "github.com/charmbracelet/ultraviolet"
1816)
1917
2018// CommandsID is the identifier for the commands dialog.
2119const CommandsID = "commands"
2220
23−// CommandType represents the type of commands being displayed.
24−type CommandType uint
25−
26−// String returns the string representation of the CommandType.
27−func (c CommandType) String() string { return []string{"System", "User", "MCP"}[c] }
28−
2921const (
3022 sidebarCompactModeBreakpoint = 120
3123)
3224
33−const (
34− SystemCommands CommandType = iota
35− UserCommands
36− MCPPrompts
37−)
38−
3925// Commands represents a dialog that shows available commands.
4026type dockerMCPAvailabilityCheckedMsg struct {
4127 available bool
@@ -48,8 +34,6 @@ type Commands struct {
4834 UpDown,
4935 Next,
5036 Previous,
51− Tab,
52− ShiftTab,
5337 Close key.Binding
5438 }
5539
@@ -57,7 +41,6 @@ type Commands struct {
5741 hasSession bool
5842 hasTodos bool
5943 hasQueue bool
60− selected CommandType
6144
6245 spinner spinner.Model
6346 loading bool
@@ -81,7 +64,6 @@ var _ Dialog = (*Commands)(nil)
8164func NewCommands(com *common.Common, sessionID string, hasSession, hasTodos, hasQueue bool, customCommands []commands.CustomCommand, mcpPrompts []commands.MCPPrompt) (*Commands, error) {
8265 c := &Commands{
8366 com: com,
84− selected: SystemCommands,
8567 sessionID: sessionID,
8668 hasSession: hasSession,
8769 hasTodos: hasTodos,
@@ -98,6 +80,8 @@ func NewCommands(com *common.Common, sessionID string, hasSession, hasTodos, has
9880 c.list = list.NewFilterableList()
9981 c.list.Focus()
10082 c.list.SetSelected(0)
83+ c.list.SetEmptyMessage("No commands")
84+ c.list.SetFilterEmptyMessage("No matches")
10185
10286 c.input = textinput.New()
10387 c.input.SetVirtualCursor(false)
@@ -121,14 +105,6 @@ func NewCommands(com *common.Common, sessionID string, hasSession, hasTodos, has
121105 key.WithKeys("up", "ctrl+p"),
122106 key.WithHelp("↑", "previous item"),
123107 )
124− c.keyMap.Tab = key.NewBinding(
125− key.WithKeys("tab"),
126− key.WithHelp("tab", "switch selection"),
127− )
128− c.keyMap.ShiftTab = key.NewBinding(
129− key.WithKeys("shift+tab"),
130− key.WithHelp("shift+tab", "switch selection prev"),
131− )
132108 closeKey := CloseKey
133109 closeKey.SetHelp("esc", "cancel")
134110 c.keyMap.Close = closeKey
@@ -138,7 +114,7 @@ func NewCommands(com *common.Common, sessionID string, hasSession, hasTodos, has
138114 }
139115
140116 // Set initial commands
141− c.setCommandItems(c.selected)
117+ c.setCommandItems()
142118
143119 s := spinner.New()
144120 s.Spinner = spinner.Dot
@@ -159,9 +135,7 @@ func (c *Commands) HandleMsg(msg tea.Msg) Action {
159135 case dockerMCPAvailabilityCheckedMsg:
160136 c.dockerMCPAvailable = &msg.available
161137 c.dockerMCPCheckInFlight = false
162− if c.selected == SystemCommands {
163− c.setCommandItems(c.selected)
164− }
138+ c.setCommandItems()
165139 return nil
166140 case spinner.TickMsg:
167141 if c.loading {
@@ -195,16 +169,6 @@ func (c *Commands) HandleMsg(msg tea.Msg) Action {
195169 return item.Action()
196170 }
197171 }
198− case key.Matches(msg, c.keyMap.Tab):
199− if len(c.customCommands) > 0 || len(c.mcpPrompts) > 0 {
200− c.selected = c.nextCommandType()
201− c.setCommandItems(c.selected)
202− }
203− case key.Matches(msg, c.keyMap.ShiftTab):
204− if len(c.customCommands) > 0 || len(c.mcpPrompts) > 0 {
205− c.selected = c.previousCommandType()
206− c.setCommandItems(c.selected)
207− }
208172 default:
209173 var cmd tea.Cmd
210174 for _, item := range c.list.FilteredItems() {
@@ -244,43 +208,16 @@ func (c *Commands) Cursor() *tea.Cursor {
244208 return InputCursor(c.com.Styles, c.input.Cursor())
245209}
246210
247−// commandsRadioView generates the command type selector radio buttons.
248−func commandsRadioView(sty *styles.Styles, selected CommandType, hasUserCmds bool, hasMCPPrompts bool) string {
249− if !hasUserCmds && !hasMCPPrompts {
250− return ""
251− }
252−
253− selectedFn := func(t CommandType) string {
254− if t == selected {
255− return sty.Radio.On.Padding(0, 1).Render() + sty.Radio.Label.Render(t.String())
256− }
257− return sty.Radio.Off.Padding(0, 1).Render() + sty.Radio.Label.Render(t.String())
258− }
259−
260− parts := []string{
261− selectedFn(SystemCommands),
262− }
263−
264− if hasUserCmds {
265− parts = append(parts, selectedFn(UserCommands))
266− }
267− if hasMCPPrompts {
268− parts = append(parts, selectedFn(MCPPrompts))
269− }
270−
271− return strings.Join(parts, " ")
272−}
273−
274211// Draw implements [Dialog].
275212func (c *Commands) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
276213 t := c.com.Styles
277214 width := max(0, min(defaultDialogMaxWidth, area.Dx()-t.Dialog.View.GetHorizontalBorderSize()))
278215 height := max(0, min(defaultDialogHeight, area.Dy()-t.Dialog.View.GetVerticalBorderSize()))
279− if area.Dx() != c.windowWidth && c.selected == SystemCommands {
216+ if area.Dx() != c.windowWidth {
280217 c.windowWidth = area.Dx()
281− // since some items in the list depend on width (e.g. toggle sidebar command),
282− // we need to reset the command items when width changes
283− c.setCommandItems(c.selected)
218+ // Since some items in the list depend on width (e.g. toggle sidebar
219+ // command), we need to reset the command items when width changes.
220+ c.setCommandItems()
284221 }
285222
286223 innerWidth := width - c.com.Styles.Dialog.View.GetHorizontalFrameSize()
@@ -296,7 +233,6 @@ func (c *Commands) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
296233
297234 rc := NewRenderContext(t, width)
298235 rc.Title = "Commands"
299− rc.TitleInfo = commandsRadioView(t, c.selected, len(c.customCommands) > 0, len(c.mcpPrompts) > 0)
300236 inputView := t.Dialog.InputPrompt.Render(c.input.View())
301237 rc.AddPart(inputView)
302238 listView := t.Dialog.List.Height(c.list.Height()).Render(c.list.Render())
@@ -317,7 +253,6 @@ func (c *Commands) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
317253// ShortHelp implements [help.KeyMap].
318254func (c *Commands) ShortHelp() []key.Binding {
319255 return []key.Binding{
320− c.keyMap.Tab,
321256 c.keyMap.UpDown,
322257 c.keyMap.Select,
323258 c.keyMap.Close,
@@ -327,96 +262,50 @@ func (c *Commands) ShortHelp() []key.Binding {
327262// FullHelp implements [help.KeyMap].
328263func (c *Commands) FullHelp() [][]key.Binding {
329264 return [][]key.Binding{
330− {c.keyMap.Select, c.keyMap.Next, c.keyMap.Previous, c.keyMap.Tab},
265+ {c.keyMap.Select, c.keyMap.Next, c.keyMap.Previous},
331266 {c.keyMap.Close},
332267 }
333268}
334269
335−// nextCommandType returns the next command type in the cycle.
336−func (c *Commands) nextCommandType() CommandType {
337− switch c.selected {
338− case SystemCommands:
339− if len(c.customCommands) > 0 {
340− return UserCommands
341− }
342− if len(c.mcpPrompts) > 0 {
343− return MCPPrompts
344− }
345− fallthrough
346− case UserCommands:
347− if len(c.mcpPrompts) > 0 {
348− return MCPPrompts
349− }
350− fallthrough
351− case MCPPrompts:
352− return SystemCommands
353− default:
354− return SystemCommands
270+// setCommandItems sets the command items, combining system, user, and MCP
271+// prompt commands into a single unified list.
272+func (c *Commands) setCommandItems() {
273+ commandItems := []list.FilterableItem{}
274+
275+ // System commands.
276+ for _, cmd := range c.defaultCommands() {
277+ commandItems = append(commandItems, cmd)
355278 }
356−}
357279
358−// previousCommandType returns the previous command type in the cycle.
359−func (c *Commands) previousCommandType() CommandType {
360− switch c.selected {
361− case SystemCommands:
362− if len(c.mcpPrompts) > 0 {
363− return MCPPrompts
364− }
365− if len(c.customCommands) > 0 {
366− return UserCommands
280+ // User (custom) commands.
281+ for _, cmd := range c.customCommands {
282+ var action Action
283+ if cmd.Skill != nil {
284+ action = ActionAttachSkill{ID: cmd.Skill.SkillFilePath, Name: cmd.Skill.Name}
285+ } else {
286+ action = ActionRunCustomCommand{
287+ Content: cmd.Content,
288+ Arguments: cmd.Arguments,
289+ Skill: cmd.Skill,
290+ }
367291 }
368− return SystemCommands
369− case UserCommands:
370− return SystemCommands
371− case MCPPrompts:
372− if len(c.customCommands) > 0 {
373− return UserCommands
292+ item := NewCommandItem(c.com.Styles, "custom_"+cmd.ID, cmd.Name, "", action)
293+ if cmd.Skill != nil {
294+ item = item.WithDescription(cmd.Skill.Description)
374295 }
375− return SystemCommands
376− default:
377− return SystemCommands
296+ commandItems = append(commandItems, item)
378297 }
379−}
380−
381−// setCommandItems sets the command items based on the specified command type.
382−func (c *Commands) setCommandItems(commandType CommandType) {
383− c.selected = commandType
384298
385− commandItems := []list.FilterableItem{}
386− switch c.selected {
387− case SystemCommands:
388− for _, cmd := range c.defaultCommands() {
389− commandItems = append(commandItems, cmd)
390− }
391− case UserCommands:
392− for _, cmd := range c.customCommands {
393− var action Action
394− if cmd.Skill != nil {
395− action = ActionAttachSkill{ID: cmd.Skill.SkillFilePath, Name: cmd.Skill.Name}
396− } else {
397− action = ActionRunCustomCommand{
398− Content: cmd.Content,
399− Arguments: cmd.Arguments,
400− Skill: cmd.Skill,
401− }
402− }
403− item := NewCommandItem(c.com.Styles, "custom_"+cmd.ID, cmd.Name, "", action)
404− if cmd.Skill != nil {
405− item = item.WithDescription(cmd.Skill.Description)
406− }
407− commandItems = append(commandItems, item)
408− }
409− case MCPPrompts:
410− for _, cmd := range c.mcpPrompts {
411− action := ActionRunMCPPrompt{
412− Title: cmd.Title,
413− Description: cmd.Description,
414− PromptID: cmd.PromptID,
415− ClientID: cmd.ClientID,
416− Arguments: cmd.Arguments,
417− }
418− commandItems = append(commandItems, NewCommandItem(c.com.Styles, "mcp_"+cmd.ID, cmd.PromptID, "", action))
299+ // MCP prompts.
300+ for _, cmd := range c.mcpPrompts {
301+ action := ActionRunMCPPrompt{
302+ Title: cmd.Title,
303+ Description: cmd.Description,
304+ PromptID: cmd.PromptID,
305+ ClientID: cmd.ClientID,
306+ Arguments: cmd.Arguments,
419307 }
308+ commandItems = append(commandItems, NewCommandItem(c.com.Styles, "mcp_"+cmd.ID, cmd.PromptID, "", action))
420309 }
421310
422311 c.list.SetItems(commandItems...)
@@ -481,9 +370,9 @@ func (c *Commands) defaultCommands() []*CommandItem {
481370
482371 // Add external editor command if $EDITOR is available.
483372 //
484− // TODO: Use [tea.EnvMsg] to get environment variable instead of os.Getenv;
485− // because os.Getenv does IO is breaks the TEA paradigm and is generally an
486− // antipattern.
373+ // TODO: Use [tea.EnvMsg] to get environment variables instead of os.Getenv;
374+ // reading the environment directly bypasses the TEA message system and is
375+ // generally an antipattern.
487376 if os.Getenv("EDITOR") != "" {
488377 commands = append(commands, NewCommandItem(c.com.Styles, "open_external_editor", "Open External Editor", "ctrl+o", ActionExternalEditor{}))
489378 }
@@ -537,20 +426,16 @@ func (c *Commands) defaultCommands() []*CommandItem {
537426 return commands
538427}
539428
540−// SetCustomCommands sets the custom commands and refreshes the view if user commands are currently displayed.
429+// SetCustomCommands sets the custom commands and refreshes the view.
541430func (c *Commands) SetCustomCommands(customCommands []commands.CustomCommand) {
542431 c.customCommands = customCommands
543− if c.selected == UserCommands {
544− c.setCommandItems(c.selected)
545− }
432+ c.setCommandItems()
546433}
547434
548−// SetMCPPrompts sets the MCP prompts and refreshes the view if MCP prompts are currently displayed.
435+// SetMCPPrompts sets the MCP prompts and refreshes the view.
549436func (c *Commands) SetMCPPrompts(mcpPrompts []commands.MCPPrompt) {
550437 c.mcpPrompts = mcpPrompts
551− if c.selected == MCPPrompts {
552− c.setCommandItems(c.selected)
553− }
438+ c.setCommandItems()
554439}
555440
556441// StartLoading implements [LoadingDialog].
internal/ui/dialog/commands_item.go+6−6
@@ -124,13 +124,13 @@ func (c *CommandItem) Render(width int) string {
124124 descStyle = c.t.Dialog.SelectedItem
125125 }
126126 contentWidth := max(0, width-descStyle.GetHorizontalFrameSize()+1)
127− description := ansi.Truncate(strings.TrimSpace(c.description), contentWidth, "...")
127+ // Indent the description to align with the marker/title text.
128+ indent := strings.Repeat(" ", listItemMarkerWidth)
129+ textWidth := max(0, contentWidth-listItemMarkerWidth)
130+ description := ansi.Truncate(strings.TrimSpace(c.description), textWidth, "…")
128131 descVisWidth := lipgloss.Width(description)
129− gap := strings.Repeat(" ", max(0, contentWidth-descVisWidth))
130− if description == "" {
131− description = " "
132− }
133− rendered = lipgloss.JoinVertical(lipgloss.Left, rendered, descStyle.Render(description+gap))
132+ gap := strings.Repeat(" ", max(0, textWidth-descVisWidth))
133+ rendered = lipgloss.JoinVertical(lipgloss.Left, rendered, descStyle.Render(indent+description+gap))
134134 }
135135 return rendered
136136}
internal/ui/dialog/dialog.go+1−1
@@ -25,7 +25,7 @@ const (
2525// CloseKey is the default key binding to close dialogs.
2626var CloseKey = key.NewBinding(
2727 key.WithKeys("esc", "alt+esc"),
28− key.WithHelp("esc", "exit"),
28+ key.WithHelp("esc", "cancel"),
2929)
3030
3131// Action represents an action taken in a dialog after handling a message.
internal/ui/dialog/filepicker.go+11−2
@@ -14,10 +14,12 @@ import (
1414 "charm.land/bubbles/v2/key"
1515 tea "charm.land/bubbletea/v2"
1616 "charm.land/lipgloss/v2"
17+ "github.com/charmbracelet/crush/internal/fsext"
1718 "github.com/charmbracelet/crush/internal/home"
1819 "github.com/charmbracelet/crush/internal/ui/common"
1920 fimage "github.com/charmbracelet/crush/internal/ui/image"
2021 uv "github.com/charmbracelet/ultraviolet"
22+ "github.com/charmbracelet/x/ansi"
2123)
2224
2325// FilePickerID is the identifier for the FilePicker dialog.
@@ -69,7 +71,7 @@ func NewFilePicker(com *common.Common) (*FilePicker, tea.Cmd) {
6971
7072 f.km.Select = key.NewBinding(
7173 key.WithKeys("enter"),
72− key.WithHelp("enter", "accept"),
74+ key.WithHelp("enter", "confirm"),
7375 )
7476 f.km.Down = key.NewBinding(
7577 key.WithKeys("down", "j"),
@@ -93,7 +95,7 @@ func NewFilePicker(com *common.Common) (*FilePicker, tea.Cmd) {
9395 )
9496 f.km.Close = key.NewBinding(
9597 key.WithKeys("esc", "alt+esc"),
96− key.WithHelp("esc", "close/exit"),
98+ key.WithHelp("esc", "cancel"),
9799 )
98100
99101 fp := filepicker.New()
@@ -241,8 +243,15 @@ func (f *FilePicker) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
241243 rc := NewRenderContext(t, width)
242244 rc.Gap = 1
243245 rc.Title = "Add Image"
246+ // Make the image-only restriction visible instead of silently no-oping.
247+ rc.TitleInfo = t.Dialog.SecondaryText.Render(" Images only: jpg, png")
244248 rc.Help = f.help.View(f)
245249
250+ // Breadcrumb: show the (truncated) current directory so users know where
251+ // they are while navigating.
252+ currentDir := ansi.Truncate(fsext.PrettyPath(f.fp.CurrentDirectory), innerWidth, "…")
253+ rc.AddPart(t.Dialog.SecondaryText.Render(currentDir))
254+
246255 imgPreview := t.Dialog.ImagePreview.Align(lipgloss.Center).Width(innerWidth).Render(f.imagePreview(imgPrevWidth, imgPrevHeight))
247256 rc.AddPart(imgPreview)
248257
internal/ui/dialog/models.go+2
@@ -110,6 +110,8 @@ func NewModels(com *common.Common, isOnboarding bool) (*Models, error) {
110110 m.list = NewModelsList(t)
111111 m.list.Focus()
112112 m.list.SetSelected(0)
113+ m.list.SetEmptyMessage("No models")
114+ m.list.SetFilterEmptyMessage("No matches")
113115
114116 m.input = textinput.New()
115117 m.input.SetVirtualCursor(false)
internal/ui/dialog/models_list.go+52−56
@@ -1,9 +1,6 @@
11package dialog
22
33import (
4− "fmt"
5− "slices"
6− "sort"
74 "strings"
85
96 "github.com/charmbracelet/crush/internal/ui/list"
@@ -17,6 +14,11 @@ type ModelsList struct {
1714 groups []ModelGroup
1815 query string
1916 t *styles.Styles
17+
18+ // emptyMessage is shown when there are no items and no active filter.
19+ emptyMessage string
20+ // filterEmptyMessage is shown when a filter is active but matches nothing.
21+ filterEmptyMessage string
2022}
2123
2224// NewModelsList creates a new list suitable for model items and groups.
@@ -190,58 +192,56 @@ func (f *ModelsList) VisibleItems() []list.Item {
190192 return items
191193 }
192194
193− filterableItems := make([]list.FilterableItem, 0, f.Len())
195+ // Build the match text once across all items (O(N) rather than O(N*G)).
196+ // Each entry is prefixed with its group's lowercased title, exactly as the
197+ // previous per-group code matched against.
198+ names := make([]string, 0, f.Len())
194199 for _, g := range f.groups {
200+ prefix := strings.ToLower(g.Title) + " "
195201 for _, item := range g.Items {
196− filterableItems = append(filterableItems, item)
202+ names = append(names, prefix+item.Filter())
197203 }
198204 }
199205
206+ // Single fuzzy pass, then bucket matches back to their group by index.
207+ matches := fuzzy.Find(query, names)
208+ matched := make([]*fuzzy.Match, len(names))
209+ for i := range matches {
210+ matched[matches[i].Index] = &matches[i]
211+ }
212+
200213 items := []list.Item{}
201− visitedGroups := map[int]bool{}
202214
203− // Reconstruct groups with matched items
204− // Find which group this item belongs to
205− for gi, g := range f.groups {
215+ // Reconstruct groups with matched items, preserving original group and
216+ // within-group item order.
217+ idx := 0
218+ for _, g := range f.groups {
219+ prefixLen := len(strings.ToLower(g.Title) + " ")
206220 addedCount := 0
207− name := strings.ToLower(g.Title) + " "
208−
209− names := make([]string, len(filterableItems))
210− for i, item := range filterableItems {
211− ms := item.(*ModelItem)
212− names[i] = fmt.Sprintf("%s%s", name, ms.Filter())
213− }
214−
215− matches := fuzzy.Find(query, names)
216−
217− // Sort by original index to preserve order within the group
218− sort.SliceStable(matches, func(i, j int) bool {
219− return matches[i].Index < matches[j].Index
220− })
221−
222− for _, match := range matches {
223− item := filterableItems[match.Index].(*ModelItem)
224− idxs := []int{}
225− for _, idx := range match.MatchedIndexes {
226− // Adjusts removing provider name highlights
227− if idx < len(name) {
228− continue
221+ for _, item := range g.Items {
222+ if m := matched[idx]; m != nil {
223+ idxs := []int{}
224+ for _, mIdx := range m.MatchedIndexes {
225+ // Adjusts removing provider name highlights
226+ if mIdx < prefixLen {
227+ continue
228+ }
229+ idxs = append(idxs, mIdx-prefixLen)
229230 }
230− idxs = append(idxs, idx-len(name))
231− }
232231
233− match.MatchedIndexes = idxs
234− if slices.Contains(g.Items, item) {
235− if !visitedGroups[gi] {
232+ match := *m
233+ match.MatchedIndexes = idxs
234+ if addedCount == 0 {
236235 // Add section header
236+ g := g
237237 items = append(items, &g)
238− visitedGroups[gi] = true
239238 }
240239 // Add the matched item
241240 item.SetMatch(match)
242241 items = append(items, item)
243242 addedCount++
244243 }
244+ idx++
245245 }
246246 if addedCount > 0 {
247247 // Add a space separator after each provider section
@@ -252,28 +252,24 @@ func (f *ModelsList) VisibleItems() []list.Item {
252252 return items
253253}
254254
255−// Render renders the filterable list.
256−func (f *ModelsList) Render() string {
257− return f.List.Render()
255+// SetEmptyMessage sets the placeholder shown when the list has no items and
256+// no filter is active.
257+func (f *ModelsList) SetEmptyMessage(msg string) {
258+ f.emptyMessage = msg
258259}
259260
260−type modelGroups []ModelGroup
261−
262−func (m modelGroups) Len() int {
263− n := 0
264− for _, g := range m {
265− n += len(g.Items)
266− }
267− return n
261+// SetFilterEmptyMessage sets the placeholder shown when a filter is active but
262+// yields no matches.
263+func (f *ModelsList) SetFilterEmptyMessage(msg string) {
264+ f.filterEmptyMessage = msg
268265}
269266
270−func (m modelGroups) String(i int) string {
271− count := 0
272− for _, g := range m {
273− if i < count+len(g.Items) {
274− return g.Items[i-count].Filter()
275− }
276− count += len(g.Items)
267+// Render renders the filterable list.
268+func (f *ModelsList) Render() string {
269+ if f.query != "" && f.filterEmptyMessage != "" {
270+ f.List.SetEmptyMessage(f.filterEmptyMessage)
271+ } else {
272+ f.List.SetEmptyMessage(f.emptyMessage)
277273 }
278− return ""
274+ return f.List.Render()
279275}
internal/ui/dialog/oauth.go−2
@@ -1,7 +1,6 @@
11package dialog
22
33import (
4− "context"
54 "fmt"
65 "strings"
76
@@ -66,7 +65,6 @@ type OAuth struct {
6665 expiresIn int
6766 interval int
6867 token *oauth.Token
69− cancelFunc context.CancelFunc
7068}
7169
7270var _ Dialog = (*OAuth)(nil)
internal/ui/dialog/permissions.go+84−21
@@ -15,6 +15,7 @@ import (
1515 "github.com/charmbracelet/crush/internal/permission"
1616 "github.com/charmbracelet/crush/internal/stringext"
1717 "github.com/charmbracelet/crush/internal/ui/common"
18+ "github.com/charmbracelet/crush/internal/ui/diffview"
1819 "github.com/charmbracelet/crush/internal/ui/styles"
1920 uv "github.com/charmbracelet/ultraviolet"
2021)
@@ -55,10 +56,8 @@ const (
5556
5657// Permissions represents a dialog for permission requests.
5758type Permissions struct {
58− com *common.Common
59− windowWidth int // Terminal window dimensions.
60− windowHeight int
61− fullscreen bool // true when dialog is fullscreen
59+ com *common.Common
60+ fullscreen bool // true when dialog is fullscreen
6261
6362 permission permission.PermissionRequest
6463 selectedOption int // 0: Allow, 1: Allow for session, 2: Deny
@@ -73,6 +72,13 @@ type Permissions struct {
7372 diffXOffset int // horizontal scroll offset for diff view
7473 unifiedDiffContent string
7574 splitDiffContent string
75+ // diffView is a persistent diff renderer, reused across scrolls/width
76+ // changes so its syntax and diff caches are preserved.
77+ diffView *diffview.DiffView
78+
79+ // Cached non-diff content, invalidated by viewportDirty or a width change.
80+ cachedContent string
81+ cachedContentWidth int
7682
7783 help help.Model
7884 keyMap permissionsKeyMap
@@ -127,7 +133,7 @@ func defaultPermissionsKeyMap() permissionsKeyMap {
127133 key.WithKeys("d", "D"),
128134 key.WithHelp("d", "deny"),
129135 ),
130− Close: CloseKey,
136+ Close: denyCloseKey(),
131137 ToggleDiffMode: key.NewBinding(
132138 key.WithKeys("t"),
133139 key.WithHelp("t", "toggle diff view"),
@@ -163,6 +169,15 @@ func defaultPermissionsKeyMap() permissionsKeyMap {
163169 }
164170}
165171
172+// denyCloseKey returns the close binding for the permissions dialog. It
173+// mirrors [CloseKey] but its help label reads "deny" because pressing esc
174+// rejects the permission request rather than merely dismissing the dialog.
175+func denyCloseKey() key.Binding {
176+ k := CloseKey
177+ k.SetHelp("esc", "deny")
178+ return k
179+}
180+
166181var _ Dialog = (*Permissions)(nil)
167182
168183// PermissionsOption configures the permissions dialog.
@@ -197,9 +212,11 @@ func NewPermissions(com *common.Common, perm permission.PermissionRequest, opts
197212 }
198213
199214 p := &Permissions{
200− com: com,
201− permission: perm,
202− selectedOption: 0,
215+ com: com,
216+ permission: perm,
217+ // Default to Deny (index 2) so that confirming with enter does not
218+ // grant the most permissive choice. See renderButtons for ordering.
219+ selectedOption: 2,
203220 viewport: vp,
204221 help: h,
205222 keyMap: km,
@@ -438,7 +455,11 @@ func (p *Permissions) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
438455 if content != "" {
439456 parts = append(parts, "", content)
440457 }
441− parts = append(parts, "", buttons, "", helpView)
458+ parts = append(parts, "", buttons)
459+ if hint := p.renderButtonHint(contentWidth); hint != "" {
460+ parts = append(parts, hint)
461+ }
462+ parts = append(parts, "", helpView)
442463
443464 innerContent := lipgloss.JoinVertical(lipgloss.Left, parts...)
444465 DrawCenterCursor(scr, area, dialogStyle.Render(innerContent), nil)
@@ -527,28 +548,44 @@ func prettyName(name string) string {
527548}
528549
529550func (p *Permissions) renderContent(width int) string {
551+ // Diff views manage their own caching (see renderDiff).
530552 switch p.permission.ToolName {
531− case tools.BashToolName:
532− return p.renderBashContent(width)
533553 case tools.EditToolName:
534554 return p.renderEditContent(width)
535555 case tools.WriteToolName:
536556 return p.renderWriteContent(width)
537557 case tools.MultiEditToolName:
538558 return p.renderMultiEditContent(width)
559+ }
560+
561+ // Non-diff content is cached the same way the diff is: recompute only when
562+ // the viewport is dirty or the width changed. This avoids re-running JSON
563+ // (un)marshalling, syntax highlighting and wrapping on every frame.
564+ if !p.viewportDirty && width == p.cachedContentWidth {
565+ return p.cachedContent
566+ }
567+
568+ var content string
569+ switch p.permission.ToolName {
570+ case tools.BashToolName:
571+ content = p.renderBashContent(width)
539572 case tools.DownloadToolName:
540− return p.renderDownloadContent(width)
573+ content = p.renderDownloadContent(width)
541574 case tools.FetchToolName:
542− return p.renderFetchContent(width)
575+ content = p.renderFetchContent(width)
543576 case tools.AgenticFetchToolName:
544− return p.renderAgenticFetchContent(width)
577+ content = p.renderAgenticFetchContent(width)
545578 case tools.ViewToolName:
546− return p.renderViewContent(width)
579+ content = p.renderViewContent(width)
547580 case tools.LSToolName:
548− return p.renderLSContent(width)
581+ content = p.renderLSContent(width)
549582 default:
550− return p.renderDefaultContent(width)
583+ content = p.renderDefaultContent(width)
551584 }
585+
586+ p.cachedContent = content
587+ p.cachedContentWidth = width
588+ return content
552589}
553590
554591func (p *Permissions) renderBashContent(width int) string {
@@ -593,9 +630,17 @@ func (p *Permissions) renderDiff(filePath, oldContent, newContent string, conten
593630 }
594631
595632 isSplitMode := p.isSplitMode()
596− formatter := common.DiffFormatter(p.com.Styles).
597− Before(fsext.PrettyPath(filePath), oldContent).
598− After(fsext.PrettyPath(filePath), newContent).
633+
634+ // Build the diff view once. Its content never changes for the lifetime of
635+ // the dialog, so reusing it across scrolls and width changes preserves the
636+ // syntax/diff caches; only XOffset/Width/layout are updated per render.
637+ if p.diffView == nil {
638+ p.diffView = common.DiffFormatter(p.com.Styles).
639+ Before(fsext.PrettyPath(filePath), oldContent).
640+ After(fsext.PrettyPath(filePath), newContent)
641+ }
642+
643+ formatter := p.diffView.
599644 XOffset(p.diffXOffset).
600645 Width(contentWidth)
601646
@@ -662,7 +707,7 @@ func (p *Permissions) renderViewContent(width int) string {
662707 if params.Offset > 0 {
663708 content += fmt.Sprintf("\nStarting from line: %d", params.Offset+1)
664709 }
665− if params.Limit > 0 && params.Limit != 2000 {
710+ if params.Limit > 0 && params.Limit != tools.DefaultReadLimit {
666711 content += fmt.Sprintf("\nLines to read: %d", params.Limit)
667712 }
668713
@@ -758,6 +803,24 @@ func (p *Permissions) renderButtons(contentWidth int) string {
758803 Render(content)
759804}
760805
806+// renderButtonHint renders a dim one-line description of the currently
807+// highlighted button so the consequence of the selection is explicit.
808+func (p *Permissions) renderButtonHint(contentWidth int) string {
809+ var msg string
810+ switch p.selectedOption {
811+ case 0:
812+ msg = "Allow this action once"
813+ case 1:
814+ msg = "Auto-allow this tool for the rest of the session"
815+ default:
816+ msg = "Reject and tell the agent"
817+ }
818+ return p.com.Styles.Dialog.SecondaryText.
819+ Width(contentWidth).
820+ Align(lipgloss.Right).
821+ Render(msg)
822+}
823+
761824func (p *Permissions) canScroll() bool {
762825 if p.hasDiffView() {
763826 // Diff views can always scroll.
internal/ui/dialog/permissions_test.go+7−6
@@ -54,22 +54,23 @@ func TestPermissions_NavigationCyclesOptions(t *testing.T) {
5454 t.Parallel()
5555
5656 p := newTestPermissions(t)
57+ // The dialog defaults to Deny (index 2) so enter does not grant the most
58+ // permissive choice.
59+ require.Equal(t, 2, p.selectedOption)
60+
61+ // Tab cycles forward (wraps to 0).
62+ p.HandleMsg(tea.KeyPressMsg{Code: tea.KeyTab})
5763 require.Equal(t, 0, p.selectedOption)
5864
59− // Tab cycles forward.
6065 p.HandleMsg(tea.KeyPressMsg{Code: tea.KeyTab})
6166 require.Equal(t, 1, p.selectedOption)
6267
6368 p.HandleMsg(tea.KeyPressMsg{Code: tea.KeyTab})
6469 require.Equal(t, 2, p.selectedOption)
6570
66− // Wrap around.
67− p.HandleMsg(tea.KeyPressMsg{Code: tea.KeyTab})
68− require.Equal(t, 0, p.selectedOption)
69−
7071 // Left cycles backward.
7172 p.HandleMsg(keyMsg('h'))
72− require.Equal(t, 2, p.selectedOption)
73+ require.Equal(t, 1, p.selectedOption)
7374}
7475
7576// TestPermissions_EnterConfirmsSelection verifies that enter confirms the
internal/ui/dialog/sessions.go+16−11
@@ -61,7 +61,7 @@ func NewSessions(com *common.Common, selectedSessionID string) (*Session, error)
6161 s := new(Session)
6262 s.sessionsMode = sessionsModeNormal
6363 s.com = com
64− sessions, err := com.Workspace.ListSessions(context.TODO())
64+ sessions, err := com.Workspace.ListSessions(context.Background())
6565 if err != nil {
6666 return nil, err
6767 }
@@ -81,6 +81,8 @@ func NewSessions(com *common.Common, selectedSessionID string) (*Session, error)
8181 s.list = list.NewFilterableList(sessionItems(com.Styles, sessionsModeNormal, sessions...)...)
8282 s.list.Focus()
8383 s.list.SetSelected(s.selectedSessionInx)
84+ s.list.SetEmptyMessage("No sessions yet")
85+ s.list.SetFilterEmptyMessage("No matches")
8486
8587 s.input = textinput.New()
8688 s.input.SetVirtualCursor(false)
@@ -89,8 +91,8 @@ func NewSessions(com *common.Common, selectedSessionID string) (*Session, error)
8991 s.input.Focus()
9092
9193 s.keyMap.Select = key.NewBinding(
92− key.WithKeys("enter", "tab", "ctrl+y"),
93− key.WithHelp("enter", "choose"),
94+ key.WithKeys("enter", "ctrl+y"),
95+ key.WithHelp("enter", "confirm"),
9496 )
9597 s.keyMap.Next = key.NewBinding(
9698 key.WithKeys("down", "ctrl+n"),
@@ -121,7 +123,7 @@ func NewSessions(com *common.Common, selectedSessionID string) (*Session, error)
121123 key.WithHelp("esc", "cancel"),
122124 )
123125 s.keyMap.ConfirmDelete = key.NewBinding(
124− key.WithKeys("y"),
126+ key.WithKeys("y", "enter"),
125127 key.WithHelp("y", "delete"),
126128 )
127129 s.keyMap.CancelDelete = key.NewBinding(
@@ -204,8 +206,9 @@ func (s *Session) HandleMsg(msg tea.Msg) Action {
204206 s.list.ScrollToSelected()
205207 case key.Matches(msg, s.keyMap.Select):
206208 if item := s.list.SelectedItem(); item != nil {
207− sessionItem := item.(*SessionItem)
208− return ActionSelectSession{sessionItem.Session}
209+ if sessionItem, ok := item.(*SessionItem); ok {
210+ return ActionSelectSession{sessionItem.Session}
211+ }
209212 }
210213 default:
211214 var cmd tea.Cmd
@@ -327,7 +330,9 @@ func (s *Session) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
327330
328331func (s *Session) selectedSessionItem() *SessionItem {
329332 if item := s.list.SelectedItem(); item != nil {
330− return item.(*SessionItem)
333+ if sessionItem, ok := item.(*SessionItem); ok {
334+ return sessionItem
335+ }
331336 }
332337 return nil
333338}
@@ -356,7 +361,7 @@ func (s *Session) removeSession(id string) {
356361
357362func (s *Session) deleteSessionCmd(id string) tea.Cmd {
358363 return func() tea.Msg {
359− err := s.com.Workspace.DeleteSession(context.TODO(), id)
364+ err := s.com.Workspace.DeleteSession(context.Background(), id)
360365 if err != nil {
361366 return util.NewErrorMsg(err)
362367 }
@@ -382,9 +387,9 @@ func (s *Session) confirmRenameSession() Action {
382387}
383388
384389func (s *Session) updateSession(session session.Session) {
385− for existingID, sess := range s.sessions {
390+ for i, sess := range s.sessions {
386391 if sess.ID == session.ID {
387− s.sessions[existingID] = session
392+ s.sessions[i] = session
388393 break
389394 }
390395 }
@@ -392,7 +397,7 @@ func (s *Session) updateSession(session session.Session) {
392397
393398func (s *Session) updateSessionCmd(session session.Session) tea.Cmd {
394399 return func() tea.Msg {
395− _, err := s.com.Workspace.SaveSession(context.TODO(), session)
400+ _, err := s.com.Workspace.SaveSession(context.Background(), session)
396401 if err != nil {
397402 return util.NewErrorMsg(err)
398403 }
internal/ui/dialog/sessions_item.go+12−2
@@ -140,6 +140,14 @@ type ListItemStyles struct {
140140 InfoTextFocused lipgloss.Style
141141}
142142
143+// listItemMarker is a leading glyph prepended to the focused list row so
144+// selection is conveyed by shape (not background color alone). Non-focused
145+// rows are padded with equivalent leading spaces to keep text aligned.
146+const (
147+ listItemMarker = "▍ "
148+ listItemMarkerWidth = 2
149+)
150+
143151func renderItem(t ListItemStyles, title string, info string, focused bool, width int, cache map[int]string, m *fuzzy.Match) string {
144152 if cache == nil {
145153 cache = make(map[int]string)
@@ -151,13 +159,15 @@ func renderItem(t ListItemStyles, title string, info string, focused bool, width
151159 }
152160
153161 style := t.ItemBlurred
162+ marker := strings.Repeat(" ", listItemMarkerWidth)
154163 if focused {
155164 style = t.ItemFocused
165+ marker = listItemMarker
156166 }
157167
158168 var infoText string
159169 var infoWidth int
160− lineWidth := width
170+ lineWidth := max(0, width-listItemMarkerWidth)
161171 if len(info) > 0 {
162172 infoText = fmt.Sprintf(" %s ", info)
163173 if focused {
@@ -202,7 +212,7 @@ func renderItem(t ListItemStyles, title string, info string, focused bool, width
202212 content = strings.Join(parts, "")
203213 }
204214
205− content = style.Render(content + gap + infoText)
215+ content = style.Render(marker + content + gap + infoText)
206216 cache[width] = content
207217 return content
208218}
internal/ui/difftastic/difftastic.gonew file+60
@@ -0,0 +1,60 @@
1+// Package difftastic provides a syntax-aware structural diff renderer by
2+// shelling out to the difftastic binary (https://github.com/Wilfred/difftastic).
3+package difftastic
4+
5+import (
6+ "context"
7+ "fmt"
8+ "os"
9+ "os/exec"
10+ "path/filepath"
11+ "strconv"
12+ "strings"
13+)
14+
15+// RenderDiff runs difftastic on before/after content and returns ANSI-colored
16+// output. Returns empty string and a nil error if difft is not available so
17+// callers can fall back to the builtin renderer.
18+func RenderDiff(filePath, before, after string, width int) (string, error) {
19+ if _, err := exec.LookPath("difft"); err != nil {
20+ return "", nil
21+ }
22+
23+ dir, err := os.MkdirTemp("", "crush-difftastic-*")
24+ if err != nil {
25+ return "", fmt.Errorf("failed to create temp directory: %w", err)
26+ }
27+ defer os.RemoveAll(dir)
28+
29+ ext := filepath.Ext(filePath)
30+ oldPath := filepath.Join(dir, "old"+ext)
31+ newPath := filepath.Join(dir, "new"+ext)
32+
33+ if err := os.WriteFile(oldPath, []byte(before), 0o644); err != nil {
34+ return "", fmt.Errorf("failed to write before content: %w", err)
35+ }
36+ if err := os.WriteFile(newPath, []byte(after), 0o644); err != nil {
37+ return "", fmt.Errorf("failed to write after content: %w", err)
38+ }
39+
40+ args := []string{
41+ "--color=always",
42+ "--display=inline",
43+ "--width=" + strconv.Itoa(width),
44+ oldPath,
45+ newPath,
46+ }
47+
48+ cmd := exec.CommandContext(context.Background(), "difft", args...)
49+ output, err := cmd.CombinedOutput()
50+ if err != nil {
51+ // difftastic returns non-zero exit code when differences are found.
52+ // The output is still valid, so return it rather than the error.
53+ if len(output) > 0 {
54+ return string(output), nil
55+ }
56+ return "", fmt.Errorf("failed to run difftastic: %w", err)
57+ }
58+
59+ return strings.TrimRight(string(output), "\n"), nil
60+}
internal/ui/diffview/diffview.go+2−2
@@ -791,8 +791,8 @@ func (dv *DiffView) createSyntaxCacheKey(source string, bgColor color.Color) str
791791
792792 // Create a hash of the content + color to use as cache key
793793 h := xxh3.New()
794− h.Write([]byte(source))
795− h.Write([]byte(colorStr))
794+ _, _ = h.Write([]byte(source))
795+ _, _ = h.Write([]byte(colorStr))
796796 return fmt.Sprintf("%x", h.Sum(nil))
797797}
798798
internal/ui/diffview/diffview_test.go−8
@@ -329,11 +329,3 @@ func assertLineWidth(t *testing.T, expected int, output string) {
329329 t.Errorf("expected output width to be == %d, got %d", expected, lineWidth)
330330 }
331331}
332−
333−func assertHeight(t *testing.T, expected int, output string) {
334− output = strings.TrimSuffix(output, "\n")
335− lines := strings.Count(output, "\n") + 1
336− if lines != expected {
337− t.Errorf("expected output height to be == %d, got %d", expected, lines)
338− }
339−}
internal/ui/diffview/style.go+46−44
@@ -1,10 +1,52 @@
11package diffview
22
33import (
4+ "image/color"
5+
46 "charm.land/lipgloss/v2"
57 "github.com/charmbracelet/x/exp/charmtone"
68)
79
10+// Diff insert/delete backgrounds are derived by washing a semantic accent
11+// (green for inserts, red for deletes) over the base background. Keeping the
12+// derivation here gives both DefaultDarkStyle/DefaultLightStyle and the styles
13+// package's palette-driven theme a single source of truth, rather than several
14+// copies of the same hardcoded hex.
15+const (
16+ diffCodeTint = 0.10 // symbol/code background wash strength.
17+ diffLineNumTint = 0.07 // line-number background wash (slightly darker).
18+)
19+
20+// BlendBg washes accent over base by ratio in [0,1], returning a subtle tint.
21+// It is the shared basis for diff insert/delete backgrounds.
22+func BlendBg(base, accent color.Color, ratio float64) color.Color {
23+ br, bg, bb, _ := base.RGBA()
24+ ar, ag, ab, _ := accent.RGBA()
25+ lerp := func(a, b uint32) uint8 {
26+ return uint8(float64(a>>8)*(1-ratio) + float64(b>>8)*ratio + 0.5)
27+ }
28+ return color.RGBA{R: lerp(br, ar), G: lerp(bg, ag), B: lerp(bb, ab), A: 0xff}
29+}
30+
31+// ChangeLineStyle builds an insert- or delete-line style from semantic colors:
32+// accent drives the symbol/line-number foreground and the background wash over
33+// base, while codeFg colors the code text (pass nil to leave it unset).
34+func ChangeLineStyle(accent, base, codeFg color.Color) LineStyle {
35+ code := lipgloss.NewStyle().Background(BlendBg(base, accent, diffCodeTint))
36+ if codeFg != nil {
37+ code = code.Foreground(codeFg)
38+ }
39+ return LineStyle{
40+ LineNumber: lipgloss.NewStyle().
41+ Foreground(accent).
42+ Background(BlendBg(base, accent, diffLineNumTint)),
43+ Symbol: lipgloss.NewStyle().
44+ Foreground(accent).
45+ Background(BlendBg(base, accent, diffCodeTint)),
46+ Code: code,
47+ }
48+}
49+
850// LineStyle defines the styles for a given line type in the diff view.
951type LineStyle struct {
1052 LineNumber lipgloss.Style
@@ -49,28 +91,8 @@ func DefaultLightStyle() Style {
4991 Foreground(charmtone.Pepper).
5092 Background(charmtone.Salt),
5193 },
52− InsertLine: LineStyle{
53− LineNumber: lipgloss.NewStyle().
54− Foreground(charmtone.Turtle).
55− Background(lipgloss.Color("#c8e6c9")),
56− Symbol: lipgloss.NewStyle().
57− Foreground(charmtone.Turtle).
58− Background(lipgloss.Color("#e8f5e9")),
59− Code: lipgloss.NewStyle().
60− Foreground(charmtone.Pepper).
61− Background(lipgloss.Color("#e8f5e9")),
62− },
63− DeleteLine: LineStyle{
64− LineNumber: lipgloss.NewStyle().
65− Foreground(charmtone.Cherry).
66− Background(lipgloss.Color("#ffcdd2")),
67− Symbol: lipgloss.NewStyle().
68− Foreground(charmtone.Cherry).
69− Background(lipgloss.Color("#ffebee")),
70− Code: lipgloss.NewStyle().
71− Foreground(charmtone.Pepper).
72− Background(lipgloss.Color("#ffebee")),
73− },
94+ InsertLine: ChangeLineStyle(charmtone.Turtle, charmtone.Salt, charmtone.Pepper),
95+ DeleteLine: ChangeLineStyle(charmtone.Cherry, charmtone.Salt, charmtone.Pepper),
7496 Filename: LineStyle{
7597 LineNumber: lipgloss.NewStyle().
7698 Foreground(charmtone.Iron).
@@ -107,28 +129,8 @@ func DefaultDarkStyle() Style {
107129 Foreground(charmtone.Salt).
108130 Background(charmtone.Pepper),
109131 },
110− InsertLine: LineStyle{
111− LineNumber: lipgloss.NewStyle().
112− Foreground(charmtone.Turtle).
113− Background(lipgloss.Color("#293229")),
114− Symbol: lipgloss.NewStyle().
115− Foreground(charmtone.Turtle).
116− Background(lipgloss.Color("#303a30")),
117− Code: lipgloss.NewStyle().
118− Foreground(charmtone.Salt).
119− Background(lipgloss.Color("#303a30")),
120− },
121− DeleteLine: LineStyle{
122− LineNumber: lipgloss.NewStyle().
123− Foreground(charmtone.Cherry).
124− Background(lipgloss.Color("#332929")),
125− Symbol: lipgloss.NewStyle().
126− Foreground(charmtone.Cherry).
127− Background(lipgloss.Color("#3a3030")),
128− Code: lipgloss.NewStyle().
129− Foreground(charmtone.Salt).
130− Background(lipgloss.Color("#3a3030")),
131− },
132+ InsertLine: ChangeLineStyle(charmtone.Turtle, charmtone.Pepper, charmtone.Salt),
133+ DeleteLine: ChangeLineStyle(charmtone.Cherry, charmtone.Pepper, charmtone.Salt),
132134 Filename: LineStyle{
133135 LineNumber: lipgloss.NewStyle().
134136 Foreground(charmtone.Smoke).
internal/ui/diffview/testdata/TestDiffView/Split/CustomContextLines/DarkMode.golden+3−3
@@ -3,7 +3,7 @@
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m
55[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m
6−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"strings"[m[m[48;2;48;58;48m [m
6+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"strings"[m[m[48;2;30;50;56m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
99[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
@@ -11,6 +11,6 @@
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1313[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
14−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;198;160;246;48;2;58;48;48mreturn[m[38;2;202;211;245;48;2;58;48;48m [m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[m[48;2;58;48;48m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mstrings[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mToUpper[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;166;218;149;48;2;48;58;48m"Hello, World!"[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
15−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;198;160;246;48;2;48;58;48mreturn[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[m[48;2;48;58;48m [m
14+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;198;160;246;48;2;54;34;48mreturn[m[38;2;202;211;245;48;2;54;34;48m [m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[m[48;2;54;34;48m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mstrings[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mToUpper[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;166;218;149;48;2;30;50;56m"Hello, World!"[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
15+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;198;160;246;48;2;30;50;56mreturn[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[m[48;2;30;50;56m [m
1616[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Split/CustomContextLines/LightMode.golden+3−3
@@ -3,7 +3,7 @@
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
99[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -11,6 +11,6 @@
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1313[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
14−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
14+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Split/Default/DarkMode.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
5−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m 8[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;202;211;245;48;2;58;48;48mfmt[m[38;2;202;211;245;48;2;58;48;48m.[m[38;2;138;173;244;48;2;58;48;48mPrintln[m[38;2;202;211;245;48;2;58;48;48m([m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[38;2;202;211;245;48;2;58;48;48m)[m[m[48;2;58;48;48m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 8[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"Hello, world!"[m[m[48;2;48;58;48m [m
6−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 9[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mfmt[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mPrintln[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
5+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m 8[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;202;211;245;48;2;54;34;48mfmt[m[38;2;202;211;245;48;2;54;34;48m.[m[38;2;138;173;244;48;2;54;34;48mPrintln[m[38;2;202;211;245;48;2;54;34;48m([m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[38;2;202;211;245;48;2;54;34;48m)[m[m[48;2;54;34;48m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 8[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"Hello, world!"[m[m[48;2;30;50;56m [m
6+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 9[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mfmt[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mPrintln[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Split/Default/LightMode.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Split/LargeWidth/DarkMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m
5−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"strings"[m[m[48;2;48;58;48m [m
5+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"strings"[m[m[48;2;30;50;56m [m
66[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
@@ -10,6 +10,6 @@
1010[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
13−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;198;160;246;48;2;58;48;48mreturn[m[38;2;202;211;245;48;2;58;48;48m [m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[m[48;2;58;48;48m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mstrings[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mToUpper[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;166;218;149;48;2;48;58;48m"Hello, World!"[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
14−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;198;160;246;48;2;48;58;48mreturn[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[m[48;2;48;58;48m [m
13+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;198;160;246;48;2;54;34;48mreturn[m[38;2;202;211;245;48;2;54;34;48m [m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[m[48;2;54;34;48m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mstrings[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mToUpper[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;166;218;149;48;2;30;50;56m"Hello, World!"[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
14+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;198;160;246;48;2;30;50;56mreturn[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[m[48;2;30;50;56m [m
1515[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Split/LargeWidth/LightMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Split/MultipleHunks/DarkMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m
5−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"strings"[m[m[48;2;48;58;48m [m
5+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"strings"[m[m[48;2;30;50;56m [m
66[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
@@ -10,6 +10,6 @@
1010[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
13−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;198;160;246;48;2;58;48;48mreturn[m[38;2;202;211;245;48;2;58;48;48m [m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[m[48;2;58;48;48m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mstrings[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mToUpper[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;166;218;149;48;2;48;58;48m"Hello, World!"[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
14−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;198;160;246;48;2;48;58;48mreturn[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[m[48;2;48;58;48m [m
13+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;198;160;246;48;2;54;34;48mreturn[m[38;2;202;211;245;48;2;54;34;48m [m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[m[48;2;54;34;48m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mstrings[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mToUpper[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;166;218;149;48;2;30;50;56m"Hello, World!"[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
14+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;198;160;246;48;2;30;50;56mreturn[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[m[48;2;30;50;56m [m
1515[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Split/MultipleHunks/LightMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Split/Narrow/DarkMode.golden+3−3
@@ -1,4 +1,4 @@
11[48;2;73;73;255m [m[38;2;191;188;200;48;2;73;73;255m…[m[48;2;73;73;255m [m[38;2;191;188;200;48;2;51;49;178m @@ -1,3 +1,3 @@ [m[48;2;51;49;178m [m[48;2;73;73;255m [m[38;2;191;188;200;48;2;73;73;255m…[m[48;2;73;73;255m [m[38;2;191;188;200;48;2;51;49;178m [m[48;2;51;49;178m [m
2−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m1[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48ma[m[m[48;2;58;48;48m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m1[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48md[m[m[48;2;48;58;48m [m
3−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m2[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48mb[m[m[48;2;58;48;48m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m2[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48me[m[m[48;2;48;58;48m [m
4−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m3[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48mc[m[m[48;2;58;48;48m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m3[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48mf[m[m[48;2;48;58;48m [m
2+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m1[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48ma[m[m[48;2;54;34;48m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m1[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56md[m[m[48;2;30;50;56m [m
3+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m2[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48mb[m[m[48;2;54;34;48m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m2[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56me[m[m[48;2;30;50;56m [m
4+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m3[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48mc[m[m[48;2;54;34;48m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m3[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56mf[m[m[48;2;30;50;56m [m
internal/ui/diffview/testdata/TestDiffView/Split/Narrow/LightMode.golden+3−3
@@ -1,4 +1,4 @@
11[48;2;71;118;255m [m[38;2;77;76;87;48;2;71;118;255m…[m[48;2;71;118;255m [m[38;2;96;95;107;48;2;113;154;252m @@ -1,3 +1,3 @@ [m[48;2;113;154;252m [m[48;2;71;118;255m [m[38;2;77;76;87;48;2;71;118;255m…[m[48;2;71;118;255m [m[38;2;96;95;107;48;2;113;154;252m [m[48;2;113;154;252m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m1[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238ma[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m1[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233md[m[m[48;2;232;245;233m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m2[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238mb[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m2[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233me[m[m[48;2;232;245;233m [m
4−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m3[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238mc[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m3[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233mf[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m1[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240ma[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m1[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248md[m[m[48;2;223;243;248m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m2[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240mb[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m2[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248me[m[m[48;2;223;243;248m [m
4+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m3[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240mc[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m3[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248mf[m[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffView/Split/NoLineNumbers/DarkMode.golden+2−2
@@ -2,6 +2,6 @@
22[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
33[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
44[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
5−[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;202;211;245;48;2;58;48;48mfmt[m[38;2;202;211;245;48;2;58;48;48m.[m[38;2;138;173;244;48;2;58;48;48mPrintln[m[38;2;202;211;245;48;2;58;48;48m([m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[38;2;202;211;245;48;2;58;48;48m)[m[m[48;2;58;48;48m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"Hello, world!"[m[m[48;2;48;58;48m [m
6−[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mfmt[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mPrintln[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
5+[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;202;211;245;48;2;54;34;48mfmt[m[38;2;202;211;245;48;2;54;34;48m.[m[38;2;138;173;244;48;2;54;34;48mPrintln[m[38;2;202;211;245;48;2;54;34;48m([m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[38;2;202;211;245;48;2;54;34;48m)[m[m[48;2;54;34;48m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"Hello, world!"[m[m[48;2;30;50;56m [m
6+[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mfmt[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mPrintln[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
77[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Split/NoLineNumbers/LightMode.golden+2−2
@@ -2,6 +2,6 @@
22[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Split/NoSyntaxHighlight/DarkMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m import ([m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m import ([m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m "fmt"[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m "fmt"[m[48;2;32;31;38m [m
5−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m "strings"[m[48;2;48;58;48m [m
5+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m "strings"[m[48;2;30;50;56m [m
66[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m )[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m )[m[48;2;32;31;38m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m func main() {[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m func main() {[m[48;2;32;31;38m [m
@@ -10,6 +10,6 @@
1010[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m }[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m }[m[48;2;32;31;38m [m
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m func getContent() string {[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m func getContent() string {[m[48;2;32;31;38m [m
13−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m return "Hello, world!"[m[48;2;58;48;48m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m content := strings.ToUpper("Hello, World!")[m[48;2;48;58;48m [m
14−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m return content[m[48;2;48;58;48m [m
13+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m return "Hello, world!"[m[48;2;54;34;48m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m content := strings.ToUpper("Hello, World!")[m[48;2;30;50;56m [m
14+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m return content[m[48;2;30;50;56m [m
1515[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m }[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m }[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Split/NoSyntaxHighlight/LightMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m import ([m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m import ([m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m "fmt"[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m "fmt"[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m "strings"[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m "strings"[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m )[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m )[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m func main() {[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m func main() {[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m }[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m }[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m func getContent() string {[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m func getContent() string {[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m return "Hello, world!"[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m content := strings.ToUpper("Hello, World!")[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m return content[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m return "Hello, world!"[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m content := strings.ToUpper("Hello, World!")[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m return content[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m }[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m }[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Split/SmallWidth/DarkMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m
5−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"strings"[m[m[48;2;48;58;48m [m
5+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"strings"[m[m[48;2;30;50;56m [m
66[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
@@ -10,6 +10,6 @@
1010[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetConte…[m[38;2;202;211;245;48;2;32;31;38m[m[38;2;202;211;245;48;2;32;31;38m[m[38;2;237;135;150;48;2;32;31;38m[m[38;2;202;211;245;48;2;32;31;38m[m[38;2;202;211;245;48;2;32;31;38m[m[m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetConte…[m[38;2;202;211;245;48;2;32;31;38m[m[38;2;202;211;245;48;2;32;31;38m[m[38;2;237;135;150;48;2;32;31;38m[m[38;2;202;211;245;48;2;32;31;38m[m[38;2;202;211;245;48;2;32;31;38m[m[m
13−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;198;160;246;48;2;58;48;48mreturn[m[38;2;202;211;245;48;2;58;48;48m [m[38;2;166;218;149;48;2;58;48;48m"H…[m[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:…[m[38;2;202;211;245;48;2;48;58;48m[m[38;2;202;211;245;48;2;48;58;48m[m[38;2;202;211;245;48;2;48;58;48m[m[38;2;138;173;244;48;2;48;58;48m[m[38;2;202;211;245;48;2;48;58;48m[m[38;2;166;218;149;48;2;48;58;48m[m[38;2;202;211;245;48;2;48;58;48m[m[m
14−[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;198;160;246;48;2;48;58;48mreturn[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mco…[m[m
13+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;198;160;246;48;2;54;34;48mreturn[m[38;2;202;211;245;48;2;54;34;48m [m[38;2;166;218;149;48;2;54;34;48m"H…[m[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:…[m[38;2;202;211;245;48;2;30;50;56m[m[38;2;202;211;245;48;2;30;50;56m[m[38;2;202;211;245;48;2;30;50;56m[m[38;2;138;173;244;48;2;30;50;56m[m[38;2;202;211;245;48;2;30;50;56m[m[38;2;166;218;149;48;2;30;50;56m[m[38;2;202;211;245;48;2;30;50;56m[m[m
14+[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;58;57;67m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;198;160;246;48;2;30;50;56mreturn[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mco…[m[m
1515[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Split/SmallWidth/LightMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConte…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConte…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"H…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mco…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"H…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mco…[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Unified/CustomContextLines/DarkMode.golden+4−4
@@ -3,7 +3,7 @@
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m
55[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m
6−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"strings"[m[m[48;2;48;58;48m [m
6+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"strings"[m[m[48;2;30;50;56m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
99[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
@@ -11,7 +11,7 @@
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1313[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
14−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;198;160;246;48;2;58;48;48mreturn[m[38;2;202;211;245;48;2;58;48;48m [m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[m[48;2;58;48;48m [m
15−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mstrings[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mToUpper[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;166;218;149;48;2;48;58;48m"Hello, World!"[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
16−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;198;160;246;48;2;48;58;48mreturn[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[m[48;2;48;58;48m [m
14+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;198;160;246;48;2;54;34;48mreturn[m[38;2;202;211;245;48;2;54;34;48m [m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[m[48;2;54;34;48m [m
15+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mstrings[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mToUpper[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;166;218;149;48;2;30;50;56m"Hello, World!"[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
16+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;198;160;246;48;2;30;50;56mreturn[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[m[48;2;30;50;56m [m
1717[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Unified/CustomContextLines/LightMode.golden+4−4
@@ -3,7 +3,7 @@
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
99[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -11,7 +11,7 @@
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1313[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
14−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
16−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
14+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
16+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1717[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Unified/Default/DarkMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
5−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m 8[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;202;211;245;48;2;58;48;48mfmt[m[38;2;202;211;245;48;2;58;48;48m.[m[38;2;138;173;244;48;2;58;48;48mPrintln[m[38;2;202;211;245;48;2;58;48;48m([m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[38;2;202;211;245;48;2;58;48;48m)[m[m[48;2;58;48;48m [m
6−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 8[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"Hello, world!"[m[m[48;2;48;58;48m [m
7−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 9[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mfmt[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mPrintln[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
5+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m 8[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;202;211;245;48;2;54;34;48mfmt[m[38;2;202;211;245;48;2;54;34;48m.[m[38;2;138;173;244;48;2;54;34;48mPrintln[m[38;2;202;211;245;48;2;54;34;48m([m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[38;2;202;211;245;48;2;54;34;48m)[m[m[48;2;54;34;48m [m
6+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 8[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"Hello, world!"[m[m[48;2;30;50;56m [m
7+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 9[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mfmt[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mPrintln[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Unified/Default/LightMode.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Unified/LargeWidth/DarkMode.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m
5−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"strings"[m[m[48;2;48;58;48m [m
5+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"strings"[m[m[48;2;30;50;56m [m
66[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
@@ -10,7 +10,7 @@
1010[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
13−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;198;160;246;48;2;58;48;48mreturn[m[38;2;202;211;245;48;2;58;48;48m [m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[m[48;2;58;48;48m [m
14−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mstrings[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mToUpper[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;166;218;149;48;2;48;58;48m"Hello, World!"[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
15−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;198;160;246;48;2;48;58;48mreturn[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[m[48;2;48;58;48m [m
13+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;198;160;246;48;2;54;34;48mreturn[m[38;2;202;211;245;48;2;54;34;48m [m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[m[48;2;54;34;48m [m
14+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mstrings[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mToUpper[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;166;218;149;48;2;30;50;56m"Hello, World!"[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
15+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;198;160;246;48;2;30;50;56mreturn[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[m[48;2;30;50;56m [m
1616[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Unified/LargeWidth/LightMode.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Unified/MultipleHunks/DarkMode.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m
5−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"strings"[m[m[48;2;48;58;48m [m
5+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"strings"[m[m[48;2;30;50;56m [m
66[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
@@ -10,7 +10,7 @@
1010[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
13−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;198;160;246;48;2;58;48;48mreturn[m[38;2;202;211;245;48;2;58;48;48m [m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[m[48;2;58;48;48m [m
14−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mstrings[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mToUpper[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;166;218;149;48;2;48;58;48m"Hello, World!"[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
15−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;198;160;246;48;2;48;58;48mreturn[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[m[48;2;48;58;48m [m
13+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;198;160;246;48;2;54;34;48mreturn[m[38;2;202;211;245;48;2;54;34;48m [m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[m[48;2;54;34;48m [m
14+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mstrings[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mToUpper[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;166;218;149;48;2;30;50;56m"Hello, World!"[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
15+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;198;160;246;48;2;30;50;56mreturn[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[m[48;2;30;50;56m [m
1616[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Unified/MultipleHunks/LightMode.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Unified/Narrow/DarkMode.golden+6−6
@@ -1,7 +1,7 @@
11[48;2;73;73;255m [m[38;2;191;188;200;48;2;73;73;255m…[m[48;2;73;73;255m [m[48;2;73;73;255m [m[38;2;191;188;200;48;2;73;73;255m…[m[48;2;73;73;255m [m[38;2;191;188;200;48;2;51;49;178m @@ -1,3 +1,3 @@ [m[48;2;51;49;178m [m
2−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m1[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48ma[m[m[48;2;58;48;48m [m
3−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m2[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48mb[m[m[48;2;58;48;48m [m
4−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m3[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48mc[m[m[48;2;58;48;48m [m
5−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m1[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48md[m[m[48;2;48;58;48m [m
6−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m2[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48me[m[m[48;2;48;58;48m [m
7−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m3[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48mf[m[m[48;2;48;58;48m [m
2+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m1[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48ma[m[m[48;2;54;34;48m [m
3+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m2[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48mb[m[m[48;2;54;34;48m [m
4+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m3[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48mc[m[m[48;2;54;34;48m [m
5+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m1[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56md[m[m[48;2;30;50;56m [m
6+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m2[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56me[m[m[48;2;30;50;56m [m
7+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m3[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56mf[m[m[48;2;30;50;56m [m
internal/ui/diffview/testdata/TestDiffView/Unified/Narrow/LightMode.golden+6−6
@@ -1,7 +1,7 @@
11[48;2;71;118;255m [m[38;2;77;76;87;48;2;71;118;255m…[m[48;2;71;118;255m [m[48;2;71;118;255m [m[38;2;77;76;87;48;2;71;118;255m…[m[48;2;71;118;255m [m[38;2;96;95;107;48;2;113;154;252m @@ -1,3 +1,3 @@ [m[48;2;113;154;252m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m1[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238ma[m[m[48;2;255;235;238m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m2[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238mb[m[m[48;2;255;235;238m [m
4−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m3[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238mc[m[m[48;2;255;235;238m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m1[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233md[m[m[48;2;232;245;233m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m2[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233me[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m3[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233mf[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m1[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240ma[m[m[48;2;248;227;240m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m2[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240mb[m[m[48;2;248;227;240m [m
4+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m3[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240mc[m[m[48;2;248;227;240m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m1[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248md[m[m[48;2;223;243;248m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m2[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248me[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m3[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248mf[m[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffView/Unified/NoLineNumbers/DarkMode.golden+3−3
@@ -2,7 +2,7 @@
22[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
33[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
44[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
5−[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;202;211;245;48;2;58;48;48mfmt[m[38;2;202;211;245;48;2;58;48;48m.[m[38;2;138;173;244;48;2;58;48;48mPrintln[m[38;2;202;211;245;48;2;58;48;48m([m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[38;2;202;211;245;48;2;58;48;48m)[m[m[48;2;58;48;48m [m
6−[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"Hello, world!"[m[m[48;2;48;58;48m [m
7−[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mfmt[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mPrintln[m[38;2;202;211;245;48;2;48;58;48m([m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m)[m[m[48;2;48;58;48m [m
5+[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;202;211;245;48;2;54;34;48mfmt[m[38;2;202;211;245;48;2;54;34;48m.[m[38;2;138;173;244;48;2;54;34;48mPrintln[m[38;2;202;211;245;48;2;54;34;48m([m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[38;2;202;211;245;48;2;54;34;48m)[m[m[48;2;54;34;48m [m
6+[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"Hello, world!"[m[m[48;2;30;50;56m [m
7+[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mfmt[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mPrintln[m[38;2;202;211;245;48;2;30;50;56m([m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m)[m[m[48;2;30;50;56m [m
88[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Unified/NoLineNumbers/LightMode.golden+3−3
@@ -2,7 +2,7 @@
22[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Unified/NoSyntaxHighlight/DarkMode.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m import ([m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m "fmt"[m[48;2;32;31;38m [m
5−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m "strings"[m[48;2;48;58;48m [m
5+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m "strings"[m[48;2;30;50;56m [m
66[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m )[m[48;2;32;31;38m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m func main() {[m[48;2;32;31;38m [m
@@ -10,7 +10,7 @@
1010[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m }[m[48;2;32;31;38m [m
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m func getContent() string {[m[48;2;32;31;38m [m
13−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m return "Hello, world!"[m[48;2;58;48;48m [m
14−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m content := strings.ToUpper("Hello, World!")[m[48;2;48;58;48m [m
15−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m return content[m[48;2;48;58;48m [m
13+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m return "Hello, world!"[m[48;2;54;34;48m [m
14+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m content := strings.ToUpper("Hello, World!")[m[48;2;30;50;56m [m
15+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m return content[m[48;2;30;50;56m [m
1616[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m }[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Unified/NoSyntaxHighlight/LightMode.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m import ([m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m "fmt"[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m "strings"[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m "strings"[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m )[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m func main() {[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m }[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m func getContent() string {[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m return "Hello, world!"[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m content := strings.ToUpper("Hello, World!")[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m return content[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m return "Hello, world!"[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m content := strings.ToUpper("Hello, World!")[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m return content[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m }[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffView/Unified/SmallWidth/DarkMode.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 2[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
33[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 3[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;139;213;202;48;2;32;31;38mimport[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m([m[m[48;2;32;31;38m [m
44[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 4[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m [m[38;2;166;218;149;48;2;32;31;38m"fmt"[m[m[48;2;32;31;38m [m
5−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m 5[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;166;218;149;48;2;48;58;48m"strings"[m[m[48;2;48;58;48m [m
5+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m 5[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;166;218;149;48;2;30;50;56m"strings"[m[m[48;2;30;50;56m [m
66[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 5[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m)[m[m[48;2;32;31;38m [m
77[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 6[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
88[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 7[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 8[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mmain[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
@@ -10,7 +10,7 @@
1010[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m 9[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
1111[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m10[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [m[48;2;32;31;38m [m
1212[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m11[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m12[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;237;135;150;48;2;32;31;38mfunc[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;138;173;244;48;2;32;31;38mgetContent[m[38;2;202;211;245;48;2;32;31;38m()[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;237;135;150;48;2;32;31;38mstring[m[38;2;202;211;245;48;2;32;31;38m [m[38;2;202;211;245;48;2;32;31;38m{[m[m[48;2;32;31;38m [m
13−[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m12[m[48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;51;41;41m [m[48;2;51;41;41m [m[38;2;255;56;139;48;2;58;48;48m- [m[38;2;247;246;251;48;2;58;48;48m[38;2;202;211;245;48;2;58;48;48m [m[38;2;198;160;246;48;2;58;48;48mreturn[m[38;2;202;211;245;48;2;58;48;48m [m[38;2;166;218;149;48;2;58;48;48m"Hello, world!"[m[m[48;2;58;48;48m [m
14−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m13[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[38;2;202;211;245;48;2;48;58;48m [m[1;38;2;145;215;227;48;2;48;58;48m:=[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mstrings[m[38;2;202;211;245;48;2;48;58;48m.[m[38;2;138;173;244;48;2;48;58;48mToUppe…[m[38;2;202;211;245;48;2;48;58;48m[m[38;2;166;218;149;48;2;48;58;48m[m[38;2;202;211;245;48;2;48;58;48m[m[m
15−[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m [m[48;2;41;50;41m [m[48;2;41;50;41m [m[38;2;10;220;217;48;2;41;50;41m14[m[48;2;41;50;41m [m[38;2;10;220;217;48;2;48;58;48m+ [m[38;2;247;246;251;48;2;48;58;48m[38;2;202;211;245;48;2;48;58;48m [m[38;2;198;160;246;48;2;48;58;48mreturn[m[38;2;202;211;245;48;2;48;58;48m [m[38;2;202;211;245;48;2;48;58;48mcontent[m[m[48;2;48;58;48m [m
13+[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m12[m[48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;48;33;45m [m[48;2;48;33;45m [m[38;2;255;56;139;48;2;54;34;48m- [m[38;2;247;246;251;48;2;54;34;48m[38;2;202;211;245;48;2;54;34;48m [m[38;2;198;160;246;48;2;54;34;48mreturn[m[38;2;202;211;245;48;2;54;34;48m [m[38;2;166;218;149;48;2;54;34;48m"Hello, world!"[m[m[48;2;54;34;48m [m
14+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m13[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[38;2;202;211;245;48;2;30;50;56m [m[1;38;2;145;215;227;48;2;30;50;56m:=[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mstrings[m[38;2;202;211;245;48;2;30;50;56m.[m[38;2;138;173;244;48;2;30;50;56mToUppe…[m[38;2;202;211;245;48;2;30;50;56m[m[38;2;166;218;149;48;2;30;50;56m[m[38;2;202;211;245;48;2;30;50;56m[m[m
15+[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m [m[48;2;30;44;51m [m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;44;51m14[m[48;2;30;44;51m [m[38;2;10;220;217;48;2;30;50;56m+ [m[38;2;247;246;251;48;2;30;50;56m[38;2;202;211;245;48;2;30;50;56m [m[38;2;198;160;246;48;2;30;50;56mreturn[m[38;2;202;211;245;48;2;30;50;56m [m[38;2;202;211;245;48;2;30;50;56mcontent[m[m[48;2;30;50;56m [m
1616[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m13[m[48;2;58;57;67m [m[48;2;58;57;67m [m[38;2;236;235;240;48;2;58;57;67m15[m[48;2;58;57;67m [m[38;2;247;246;251;48;2;32;31;38m [38;2;202;211;245;48;2;32;31;38m}[m[m[48;2;32;31;38m [m
internal/ui/diffview/testdata/TestDiffView/Unified/SmallWidth/LightMode.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUppe…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUppe…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf005.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf006.golden+1−1
@@ -2,5 +2,5 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf007.golden+1−1
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf008.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf009.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf010.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf011.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf012.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf013.golden+2−2
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,4 +10,4 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[38;2;32;31;38;48;2;255;235;238m …[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[38;2;32;31;38;48;2;248;227;240m …[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf014.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,5 +10,5 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf015.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf016.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf017.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf018.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf019.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Split/HeightOf020.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf005.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf006.golden+1−1
@@ -2,5 +2,5 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf007.golden+1−1
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf008.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf009.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf010.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf011.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf012.golden+1−1
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf013.golden+2−2
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,4 +10,4 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[38;2;32;31;38;48;2;255;235;238m …[m[48;2;255;235;238m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[38;2;32;31;38;48;2;248;227;240m …[m[48;2;248;227;240m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf014.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,5 +10,5 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf015.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf016.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf017.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf018.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf019.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewHeight/Unified/HeightOf020.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewLineBreakIssue/Split.golden+5−5
@@ -1,9 +1,9 @@
11[48;2;71;118;255m [m[38;2;77;76;87;48;2;71;118;255m …[m[48;2;71;118;255m [m[38;2;96;95;107;48;2;113;154;252m @@ -1,6 +1,8 @@ [m[48;2;113;154;252m [m[48;2;71;118;255m [m[38;2;77;76;87;48;2;71;118;255m …[m[48;2;71;118;255m [m[38;2;96;95;107;48;2;113;154;252m [m[48;2;113;154;252m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 1[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[3;38;2;156;160;176;48;2;255;235;238m// this is[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 1[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;210;15;57;48;2;232;245;233m/**[m[m[48;2;232;245;233m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 2[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[3;38;2;156;160;176;48;2;255;235;238m// a regular[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 2[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m*[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mthis[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mis[m[m[48;2;232;245;233m [m
4−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 3[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[3;38;2;156;160;176;48;2;255;235;238m// comment[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 3[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m*[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233ma[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mblock[m[m[48;2;232;245;233m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 4[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m*[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcomment[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m*[m[38;2;210;15;57;48;2;232;245;233m/[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 1[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[3;38;2;156;160;176;48;2;248;227;240m// this is[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 1[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;210;15;57;48;2;223;243;248m/**[m[m[48;2;223;243;248m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 2[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[3;38;2;156;160;176;48;2;248;227;240m// a regular[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 2[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m*[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mthis[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mis[m[m[48;2;223;243;248m [m
4+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 3[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[3;38;2;156;160;176;48;2;248;227;240m// comment[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 3[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m*[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248ma[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mblock[m[m[48;2;223;243;248m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 4[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m*[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcomment[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m*[m[38;2;210;15;57;48;2;223;243;248m/[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m$[m[38;2;76;79;105;48;2;247;246;251m([m[38;2;210;15;57;48;2;247;246;251mfunction[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m$[m[38;2;76;79;105;48;2;247;246;251m([m[38;2;210;15;57;48;2;247;246;251mfunction[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251mconsole[m[38;2;76;79;105;48;2;247;246;251m.[m[38;2;76;79;105;48;2;247;246;251mlog[m[38;2;76;79;105;48;2;247;246;251m([m[38;2;64;160;43;48;2;247;246;251m"Hello, world!"[m[38;2;76;79;105;48;2;247;246;251m);[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251mconsole[m[38;2;76;79;105;48;2;247;246;251m.[m[38;2;76;79;105;48;2;247;246;251mlog[m[38;2;76;79;105;48;2;247;246;251m([m[38;2;64;160;43;48;2;247;246;251m"Hello, world!"[m[38;2;76;79;105;48;2;247;246;251m);[m[m[48;2;247;246;251m [m
99[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m});[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m});[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewLineBreakIssue/Unified.golden+8−8
@@ -1,12 +1,12 @@
11[48;2;71;118;255m [m[38;2;77;76;87;48;2;71;118;255m …[m[48;2;71;118;255m [m[48;2;71;118;255m [m[38;2;77;76;87;48;2;71;118;255m …[m[48;2;71;118;255m [m[38;2;96;95;107;48;2;113;154;252m @@ -1,6 +1,8 @@ [m[48;2;113;154;252m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 1[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[3;38;2;156;160;176;48;2;255;235;238m// this is[m[m[48;2;255;235;238m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 2[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[3;38;2;156;160;176;48;2;255;235;238m// a regular[m[m[48;2;255;235;238m [m
4−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 3[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[3;38;2;156;160;176;48;2;255;235;238m// comment[m[m[48;2;255;235;238m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 1[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;210;15;57;48;2;232;245;233m/**[m[m[48;2;232;245;233m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 2[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m*[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mthis[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mis[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 3[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m*[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233ma[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mblock[m[m[48;2;232;245;233m [m
8−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 4[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m*[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcomment[m[m[48;2;232;245;233m [m
9−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m*[m[38;2;210;15;57;48;2;232;245;233m/[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 1[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[3;38;2;156;160;176;48;2;248;227;240m// this is[m[m[48;2;248;227;240m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 2[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[3;38;2;156;160;176;48;2;248;227;240m// a regular[m[m[48;2;248;227;240m [m
4+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 3[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[3;38;2;156;160;176;48;2;248;227;240m// comment[m[m[48;2;248;227;240m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 1[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;210;15;57;48;2;223;243;248m/**[m[m[48;2;223;243;248m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 2[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m*[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mthis[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mis[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 3[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m*[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248ma[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mblock[m[m[48;2;223;243;248m [m
8+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 4[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m*[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcomment[m[m[48;2;223;243;248m [m
9+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m*[m[38;2;210;15;57;48;2;223;243;248m/[m[m[48;2;223;243;248m [m
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m$[m[38;2;76;79;105;48;2;247;246;251m([m[38;2;210;15;57;48;2;247;246;251mfunction[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251mconsole[m[38;2;76;79;105;48;2;247;246;251m.[m[38;2;76;79;105;48;2;247;246;251mlog[m[38;2;76;79;105;48;2;247;246;251m([m[38;2;64;160;43;48;2;247;246;251m"Hello, world!"[m[38;2;76;79;105;48;2;247;246;251m);[m[m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m});[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewTabs/Split.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewTabs/Unified.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf001.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf002.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m1[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m1[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf003.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf004.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf005.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-[m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-[m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf006.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf007.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf008.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m1[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m1[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m1[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m1[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf009.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-[m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-[m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf010.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-[m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-[m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf011.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m[48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m[48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m[48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m[48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m[48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m[48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf012.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf013.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf014.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m…[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m…[m[38;2;64;160;43;48;2;247;246;251m[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;64;160;43;48;2;232;245;233m[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;64;160;43;48;2;223;243;248m[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m…[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m…[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf015.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m…[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m…[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;64;160;43;48;2;232;245;233m[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;64;160;43;48;2;223;243;248m[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m…[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m…[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf016.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mi…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mi…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf017.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mi…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mi…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf018.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mim…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mim…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf019.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mim…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mim…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf020.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimp…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimp…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf021.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimp…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimp…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf022.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m…[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m…[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m…[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238m…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240m…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf023.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m…[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m…[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m…[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m…[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238m…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240m…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf024.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpor…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpor…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"…[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"…[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"…[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mr…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mc…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mr…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mr…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mc…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mr…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf025.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpor…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpor…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"…[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"…[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"…[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"…[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mr…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mc…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mr…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mr…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mc…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mr…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf026.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"f…[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"f…[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"s…[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"s…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mm…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mm…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mg…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mg…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mre…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mco…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mre…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mre…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mco…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mre…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf027.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"f…[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"f…[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"s…[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"s…[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mm…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mm…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mg…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mg…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mre…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mco…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mre…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mre…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mco…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mre…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf028.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fm…[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fm…[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"st…[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"st…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mma…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mma…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mge…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mge…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mret…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcon…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mret…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mret…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcon…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mret…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf029.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fm…[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fm…[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"st…[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"st…[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mma…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mma…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mge…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mge…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mret…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcon…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mret…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mret…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcon…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mret…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf030.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"str…[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"str…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmai…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmai…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mget…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mget…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mretu…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcont…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mretu…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mretu…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcont…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mretu…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf031.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"str…[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"str…[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmai…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmai…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mget…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mget…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mretu…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcont…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mretu…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mretu…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcont…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mretu…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf032.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"stri…[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"stri…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetC…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetC…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mretur…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconte…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mretur…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mretur…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconte…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mretur…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf033.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"stri…[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"stri…[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetC…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetC…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mretur…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconte…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mretur…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mretur…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconte…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mretur…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf034.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strin…[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strin…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m…[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconten…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m…[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconten…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf035.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strin…[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strin…[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m…[m[38;2;64;160;43;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconten…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m…[m[38;2;64;160;43;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconten…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf036.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"string…[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"string…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCon…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCon…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m…[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m…[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf037.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"string…[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"string…[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCon…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCon…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m…[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m…[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf038.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCont…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCont…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mc…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mc…[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf039.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCont…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCont…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mc…[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mc…[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf040.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConte…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConte…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"H…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mco…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"H…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mco…[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf041.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConte…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConte…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"H…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mco…[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"H…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mco…[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf042.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConten…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConten…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"He…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcon…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"He…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcon…[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf043.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConten…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConten…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"He…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcon…[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"He…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcon…[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf044.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hel…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcont…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hel…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcont…[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf045.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hel…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcont…[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hel…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcont…[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf046.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hell…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233ms…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconte…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hell…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248ms…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconte…[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf047.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hell…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233ms…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconte…[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hell…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248ms…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconte…[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf048.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mst…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mst…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf049.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mst…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mst…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf050.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello,…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstr…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello,…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstr…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf051.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello,…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstr…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello,…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstr…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf052.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251ms…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251ms…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, …[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstri…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, …[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstri…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf053.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251ms…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251ms…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, …[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstri…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, …[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstri…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf054.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mst…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mst…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, w…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrin…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, w…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrin…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf055.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mst…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mst…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, w…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrin…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, w…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrin…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf056.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstr…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstr…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, wo…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstring…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, wo…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstring…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf057.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstr…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstr…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, wo…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstring…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, wo…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstring…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf058.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstri…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstri…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, wor…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, wor…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf059.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstri…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstri…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, wor…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, wor…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf060.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstrin…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstrin…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, worl…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, worl…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf061.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstrin…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstrin…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, worl…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, worl…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf062.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mT…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mT…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf063.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world…[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mT…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world…[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mT…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf064.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mTo…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mTo…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf065.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mTo…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mTo…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf066.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToU…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToU…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf067.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToU…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToU…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf068.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUp…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUp…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf069.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUp…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUp…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf070.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpp…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpp…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf071.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpp…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpp…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf072.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUppe…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUppe…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf073.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUppe…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUppe…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf074.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf075.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf076.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf077.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf078.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf079.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf080.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"H…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"H…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf081.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"H…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"H…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf082.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"He…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"He…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf083.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"He…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"He…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf084.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hel…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hel…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf085.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hel…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hel…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf086.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hell…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hell…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf087.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hell…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hell…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf088.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf089.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf090.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello,…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello,…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf091.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello,…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello,…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf092.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, …[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, …[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf093.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, …[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, …[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf094.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, W…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, W…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf095.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, W…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, W…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf096.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Wo…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Wo…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf097.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Wo…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Wo…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf098.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Wor…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Wor…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf099.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Wor…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Wor…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf100.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Worl…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Worl…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf101.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Worl…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Worl…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf102.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf103.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf104.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!…[m[38;2;76;79;105;48;2;232;245;233m[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!…[m[38;2;76;79;105;48;2;223;243;248m[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf105.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!…[m[38;2;76;79;105;48;2;232;245;233m[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!…[m[38;2;76;79;105;48;2;223;243;248m[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf106.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf107.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf108.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf109.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Split/WidthOf110.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,6 +10,6 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
14−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
14+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1515[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf001.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m[m[48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m[m[48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf002.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m1[m[48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m1[m[48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf003.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf004.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf005.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m[m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m[m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf006.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m [m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m1[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m1[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m1[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m1[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m1[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf007.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m[m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m[m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m[m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m[m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m[m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf008.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf009.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-[m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+[m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-[m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+[m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf010.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf011.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m…[m[38;2;64;160;43;48;2;247;246;251m[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;64;160;43;48;2;232;245;233m[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;64;160;43;48;2;223;243;248m[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m…[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m…[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf012.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mi…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mf…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf013.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mim…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfu…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf014.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimp…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m …[m[38;2;64;160;43;48;2;247;246;251m[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;64;160;43;48;2;232;245;233m[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;64;160;43;48;2;223;243;248m[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfun…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m …[m[38;2;136;57;239;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m …[m[38;2;136;57;239;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m …[m[38;2;136;57;239;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m …[m[38;2;136;57;239;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf015.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m…[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m…[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238m…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240m…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf016.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimpor…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"…[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"…[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mr…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mc…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mr…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mr…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mc…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mr…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf017.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"f…[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"s…[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"s…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mm…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mg…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mre…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mco…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mre…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mre…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mco…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mre…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf018.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fm…[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"st…[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"st…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mma…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mge…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mret…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcon…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mret…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mret…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcon…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mret…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf019.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"str…[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"str…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmai…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mget…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mretu…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcont…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mretu…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mretu…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcont…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mretu…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf020.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"stri…[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"stri…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetC…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mretur…[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconte…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mretur…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mretur…[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconte…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mretur…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf021.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strin…[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strin…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCo…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m…[m[38;2;64;160;43;48;2;255;235;238m[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconten…[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m…[m[38;2;64;160;43;48;2;248;227;240m[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconten…[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf022.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"string…[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"string…[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCon…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m…[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m…[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf023.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetCont…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mc…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mc…[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf024.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConte…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"H…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mco…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"H…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mco…[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf025.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetConten…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"He…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcon…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"He…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcon…[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf026.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hel…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcont…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hel…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcont…[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf027.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m(…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hell…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233ms…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mconte…[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hell…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248ms…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mconte…[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf028.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mst…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mst…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf029.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello,…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstr…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello,…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstr…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf030.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251ms…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, …[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstri…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, …[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstri…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf031.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mst…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, w…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrin…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, w…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrin…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf032.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstr…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, wo…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstring…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, wo…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstring…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf033.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstri…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, wor…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, wor…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf034.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstrin…[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, worl…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, worl…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf035.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m…[m[38;2;76;79;105;48;2;247;246;251m[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world…[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mT…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world…[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mT…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf036.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mTo…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mTo…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf037.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToU…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToU…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf038.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUp…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUp…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf039.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpp…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpp…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf040.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUppe…[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUppe…[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf041.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m…[m[38;2;64;160;43;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m…[m[38;2;64;160;43;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf042.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf043.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf044.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"H…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"H…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf045.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"He…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"He…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf046.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hel…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hel…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf047.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hell…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hell…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf048.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf049.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello,…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello,…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf050.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, …[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, …[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf051.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, W…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, W…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf052.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Wo…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Wo…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf053.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Wor…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Wor…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf054.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, Worl…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, Worl…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf055.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf056.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!…[m[38;2;76;79;105;48;2;232;245;233m[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!…[m[38;2;76;79;105;48;2;223;243;248m[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf057.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf058.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf059.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewWidth/Unified/WidthOf060.golden+4−4
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
66[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
@@ -10,7 +10,7 @@
1010[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
1111[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
1212[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
13−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
14−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
15−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
13+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
14+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
15+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
1616[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf00.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello,…[m[38;2;76;79;105;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, …[m[m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello,…[m[38;2;76;79;105;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, …[m[m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf01.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251munc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251munc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, …[m[38;2;76;79;105;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, w…[m[m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, …[m[38;2;76;79;105;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, w…[m[m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf02.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251mnc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251mnc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, w…[m[38;2;76;79;105;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, wo…[m[m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, w…[m[38;2;76;79;105;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, wo…[m[m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf03.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251mc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251mc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, wo…[m[38;2;76;79;105;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, wor…[m[m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, wo…[m[38;2;76;79;105;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, wor…[m[m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf04.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, wor…[m[38;2;76;79;105;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, worl…[m[m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, wor…[m[38;2;76;79;105;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, worl…[m[m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf05.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238mmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, worl…[m[38;2;76;79;105;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233montent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world…[m[m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240mmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, worl…[m[38;2;76;79;105;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248montent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world…[m[m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf06.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251main[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251main[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238mt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world…[m[38;2;76;79;105;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mntent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240mt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world…[m[38;2;76;79;105;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mntent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf07.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251min[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251min[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!…[m[38;2;76;79;105;48;2;255;235;238m[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mtent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!…[m[38;2;76;79;105;48;2;248;227;240m[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mtent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf08.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251mn[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251mn[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233ment[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248ment[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf09.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mnt[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mnt[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf10.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m)[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m)[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mt[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mt[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf11.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mntln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mntln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mntln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mntln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf12.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mtln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mtln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mtln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mtln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf13.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf14.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mn[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mn[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mn[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mn[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf15.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf16.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mHello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mHello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf17.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238mHello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mello, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233montent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240mHello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mello, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248montent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf18.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238mello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mllo, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mntent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240mello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mllo, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mntent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf19.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238mllo, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mlo, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mtent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240mllo, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mlo, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mtent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Split/XOffsetOf20.golden+2−2
@@ -2,6 +2,6 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238mlo, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mo, world!"[m[m[48;2;232;245;233m [m
6−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233ment[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240mlo, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mo, world!"[m[m[48;2;223;243;248m [m
6+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248ment[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
77[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf00.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf01.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251munc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf02.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251mnc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf03.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251mc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf04.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238mfmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mfmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240mfmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mfmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf05.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238mmt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233montent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mmt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240mmt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248montent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mmt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf06.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251main[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238mt[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mntent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mt[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240mt[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mntent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mt[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf07.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251min[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m.[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mtent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m.[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mtent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf08.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251mn[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mPrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233ment[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mPrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mPrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248ment[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mPrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf09.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mrintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mnt[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mrintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mrintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mnt[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mrintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf10.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m)[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mintln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mt[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mintln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mintln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mt[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mintln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf11.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mntln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mntln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mntln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mntln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf12.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mtln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mtln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mtln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mtln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf13.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mln[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mln[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mln[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mln[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf14.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238mn[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233mn[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240mn[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248mn[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf15.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m([m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233m"Hello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m([m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248m"Hello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf16.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mHello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mHello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf17.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238mHello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mello, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233montent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240mHello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mello, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248montent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf18.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238mello, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mllo, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mntent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240mello, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mllo, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mntent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf19.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238mllo, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mlo, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233mtent[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240mllo, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mlo, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248mtent[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewXOffset/Unified/XOffsetOf20.golden+3−3
@@ -2,7 +2,7 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;210;15;57;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;30;102;245;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m 8[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m-…[m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;30;102;245;48;2;255;235;238m[m[38;2;76;79;105;48;2;255;235;238m[m[38;2;64;160;43;48;2;255;235;238mlo, world!"[m[38;2;76;79;105;48;2;255;235;238m)[m[m[48;2;255;235;238m [m
6−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 8[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[1;38;2;4;165;229;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;64;160;43;48;2;232;245;233mo, world!"[m[m[48;2;232;245;233m [m
7−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 9[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+…[m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;30;102;245;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233m[m[38;2;76;79;105;48;2;232;245;233ment[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m 8[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m-…[m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;30;102;245;48;2;248;227;240m[m[38;2;76;79;105;48;2;248;227;240m[m[38;2;64;160;43;48;2;248;227;240mlo, world!"[m[38;2;76;79;105;48;2;248;227;240m)[m[m[48;2;248;227;240m [m
6+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 8[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[1;38;2;4;165;229;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;64;160;43;48;2;223;243;248mo, world!"[m[m[48;2;223;243;248m [m
7+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 9[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+…[m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;30;102;245;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248m[m[38;2;76;79;105;48;2;223;243;248ment[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
88[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[38;2;76;79;105;48;2;247;246;251m[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf00.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf01.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf02.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
3−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
3+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf03.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
2−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
2+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf04.golden+1−1
@@ -1,4 +1,4 @@
1−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
1+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf08.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[38;2;32;31;38;48;2;255;235;238m …[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[38;2;32;31;38;48;2;248;227;240m …[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf09.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
4−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
4+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf10.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf11.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf12.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf13.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf14.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf15.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Split/YOffsetOf16.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf00.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf01.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf02.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf03.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
2−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
2+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf04.golden+1−1
@@ -1,4 +1,4 @@
1−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
1+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf08.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[38;2;32;31;38;48;2;255;235;238m …[m[48;2;255;235;238m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[38;2;32;31;38;48;2;248;227;240m …[m[48;2;248;227;240m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf09.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
4−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
4+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf10.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf11.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf12.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf13.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf14.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf15.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffset/Unified/YOffsetOf16.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf00.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf01.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf02.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
3−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
3+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf03.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
2−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
2+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf04.golden+1−1
@@ -1,4 +1,4 @@
1−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
1+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf08.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[38;2;32;31;38;48;2;255;235;238m …[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[38;2;32;31;38;48;2;248;227;240m …[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf09.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
4−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5−[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
4+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
5+[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf10.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf11.golden+2−2
@@ -1,4 +1,4 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
3−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
3+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf12.golden+2−2
@@ -1,3 +1,3 @@
1−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
2−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
1+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
2+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Split/YOffsetOf13.golden+1−1
@@ -1,2 +1,2 @@
1−[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
1+[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;236;235;240m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf00.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf01.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 2[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf02.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 3[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;23;146;153;48;2;247;246;251mimport[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m([m[m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf03.golden+1−1
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 4[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m [m[38;2;64;160;43;48;2;247;246;251m"fmt"[m[m[48;2;247;246;251m [m
2−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
2+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m …[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m …[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf04.golden+1−1
@@ -1,4 +1,4 @@
1−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m 5[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;64;160;43;48;2;232;245;233m"strings"[m[m[48;2;232;245;233m [m
1+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m 5[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;64;160;43;48;2;223;243;248m"strings"[m[m[48;2;223;243;248m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 5[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m)[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 6[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 7[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 8[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mmain[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf08.golden+1−1
@@ -2,4 +2,4 @@
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
5−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m …[m[48;2;255;205;210m [m[38;2;32;31;38;48;2;255;235;238m …[m[48;2;255;235;238m [m
5+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m …[m[48;2;248;233;243m [m[38;2;32;31;38;48;2;248;227;240m …[m[48;2;248;227;240m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf09.golden+2−2
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m 9[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
4−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
4+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf10.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m10[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [m[48;2;247;246;251m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
3−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
5−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m …[m[48;2;200;230;201m [m[38;2;32;31;38;48;2;232;245;233m …[m[48;2;232;245;233m [m
3+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
5+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m …[m[48;2;230;244;249m [m[38;2;32;31;38;48;2;223;243;248m …[m[48;2;223;243;248m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf11.golden+3−3
@@ -1,5 +1,5 @@
11[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m11[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m12[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;210;15;57;48;2;247;246;251mfunc[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;30;102;245;48;2;247;246;251mgetContent[m[38;2;76;79;105;48;2;247;246;251m()[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;210;15;57;48;2;247;246;251mstring[m[38;2;76;79;105;48;2;247;246;251m [m[38;2;76;79;105;48;2;247;246;251m{[m[m[48;2;247;246;251m [m
2−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
4−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
2+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
4+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
55[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf12.golden+3−3
@@ -1,4 +1,4 @@
1−[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m12[m[48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;205;210m [m[48;2;255;205;210m [m[38;2;255;56;139;48;2;255;235;238m- [m[38;2;32;31;38;48;2;255;235;238m[38;2;76;79;105;48;2;255;235;238m [m[38;2;136;57;239;48;2;255;235;238mreturn[m[38;2;76;79;105;48;2;255;235;238m [m[38;2;64;160;43;48;2;255;235;238m"Hello, world!"[m[m[48;2;255;235;238m [m
2−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
3−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
1+[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m12[m[48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;233;243m [m[48;2;248;233;243m [m[38;2;255;56;139;48;2;248;227;240m- [m[38;2;32;31;38;48;2;248;227;240m[38;2;76;79;105;48;2;248;227;240m [m[38;2;136;57;239;48;2;248;227;240mreturn[m[38;2;76;79;105;48;2;248;227;240m [m[38;2;64;160;43;48;2;248;227;240m"Hello, world!"[m[m[48;2;248;227;240m [m
2+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
3+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
44[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf13.golden+2−2
@@ -1,3 +1,3 @@
1−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m13[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[38;2;76;79;105;48;2;232;245;233m [m[1;38;2;4;165;229;48;2;232;245;233m:=[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mstrings[m[38;2;76;79;105;48;2;232;245;233m.[m[38;2;30;102;245;48;2;232;245;233mToUpper[m[38;2;76;79;105;48;2;232;245;233m([m[38;2;64;160;43;48;2;232;245;233m"Hello, World!"[m[38;2;76;79;105;48;2;232;245;233m)[m[m[48;2;232;245;233m [m
2−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
1+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m13[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[38;2;76;79;105;48;2;223;243;248m [m[1;38;2;4;165;229;48;2;223;243;248m:=[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mstrings[m[38;2;76;79;105;48;2;223;243;248m.[m[38;2;30;102;245;48;2;223;243;248mToUpper[m[38;2;76;79;105;48;2;223;243;248m([m[38;2;64;160;43;48;2;223;243;248m"Hello, World!"[m[38;2;76;79;105;48;2;223;243;248m)[m[m[48;2;223;243;248m [m
2+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
33[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/testdata/TestDiffViewYOffsetInfinite/Unified/YOffsetOf14.golden+1−1
@@ -1,2 +1,2 @@
1−[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m [m[48;2;200;230;201m [m[48;2;200;230;201m [m[38;2;10;220;217;48;2;200;230;201m14[m[48;2;200;230;201m [m[38;2;10;220;217;48;2;232;245;233m+ [m[38;2;32;31;38;48;2;232;245;233m[38;2;76;79;105;48;2;232;245;233m [m[38;2;136;57;239;48;2;232;245;233mreturn[m[38;2;76;79;105;48;2;232;245;233m [m[38;2;76;79;105;48;2;232;245;233mcontent[m[m[48;2;232;245;233m [m
1+[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m [m[48;2;230;244;249m [m[48;2;230;244;249m [m[38;2;10;220;217;48;2;230;244;249m14[m[48;2;230;244;249m [m[38;2;10;220;217;48;2;223;243;248m+ [m[38;2;32;31;38;48;2;223;243;248m[38;2;76;79;105;48;2;223;243;248m [m[38;2;136;57;239;48;2;223;243;248mreturn[m[38;2;76;79;105;48;2;223;243;248m [m[38;2;76;79;105;48;2;223;243;248mcontent[m[m[48;2;223;243;248m [m
22[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m13[m[48;2;236;235;240m [m[48;2;236;235;240m [m[38;2;58;57;67;48;2;236;235;240m15[m[48;2;236;235;240m [m[38;2;32;31;38;48;2;247;246;251m [38;2;76;79;105;48;2;247;246;251m}[m[m[48;2;247;246;251m [m
internal/ui/diffview/util.go+8−1
@@ -2,13 +2,20 @@ package diffview
22
33import (
44 "fmt"
5+ "strconv"
56 "strings"
67
78 "github.com/charmbracelet/x/ansi"
89)
910
1011func pad(v any, width int) string {
11− s := fmt.Sprintf("%v", v)
12+ var s string
13+ switch n := v.(type) {
14+ case int:
15+ s = strconv.Itoa(n)
16+ default:
17+ s = fmt.Sprintf("%v", v)
18+ }
1219 w := ansi.StringWidth(s)
1320 if w >= width {
1421 return s
internal/ui/list/filterable.go+33−1
@@ -23,6 +23,14 @@ type FilterableList struct {
2323 *List
2424 items []FilterableItem
2525 query string
26+ // dirty tracks whether the filtered set needs to be recomputed. It is set
27+ // by any mutation of items or query and cleared after Render recomputes.
28+ dirty bool
29+
30+ // emptyMessage is shown when there are no items and no active filter.
31+ emptyMessage string
32+ // filterEmptyMessage is shown when a filter is active but matches nothing.
33+ filterEmptyMessage string
2634}
2735
2836// NewFilterableList creates a new filterable list.
@@ -39,6 +47,7 @@ func NewFilterableList(items ...FilterableItem) *FilterableList {
3947// SetItems sets the list items and updates the filtered items.
4048func (f *FilterableList) SetItems(items ...FilterableItem) {
4149 f.items = items
50+ f.dirty = true
4251 fitems := make([]Item, len(items))
4352 for i, item := range items {
4453 fitems[i] = item
@@ -49,6 +58,7 @@ func (f *FilterableList) SetItems(items ...FilterableItem) {
4958// AppendItems appends items to the list and updates the filtered items.
5059func (f *FilterableList) AppendItems(items ...FilterableItem) {
5160 f.items = append(f.items, items...)
61+ f.dirty = true
5262 itms := make([]Item, len(f.items))
5363 for i, item := range f.items {
5464 itms[i] = item
@@ -59,6 +69,7 @@ func (f *FilterableList) AppendItems(items ...FilterableItem) {
5969// PrependItems prepends items to the list and updates the filtered items.
6070func (f *FilterableList) PrependItems(items ...FilterableItem) {
6171 f.items = append(items, f.items...)
72+ f.dirty = true
6273 itms := make([]Item, len(f.items))
6374 for i, item := range f.items {
6475 itms[i] = item
@@ -69,6 +80,7 @@ func (f *FilterableList) PrependItems(items ...FilterableItem) {
6980// SetFilter sets the filter query and updates the list items.
7081func (f *FilterableList) SetFilter(q string) {
7182 f.query = q
83+ f.dirty = true
7284 f.List.SetItems(f.FilteredItems()...)
7385 f.ScrollToTop()
7486}
@@ -118,8 +130,28 @@ func (f *FilterableList) FilteredItems() []Item {
118130 return matchedItems
119131}
120132
133+// SetEmptyMessage sets the placeholder shown when the list has no items and
134+// no filter is active.
135+func (f *FilterableList) SetEmptyMessage(msg string) {
136+ f.emptyMessage = msg
137+}
138+
139+// SetFilterEmptyMessage sets the placeholder shown when a filter is active but
140+// yields no matches.
141+func (f *FilterableList) SetFilterEmptyMessage(msg string) {
142+ f.filterEmptyMessage = msg
143+}
144+
121145// Render renders the filterable list.
122146func (f *FilterableList) Render() string {
123− f.List.SetItems(f.FilteredItems()...)
147+ if f.dirty {
148+ f.List.SetItems(f.FilteredItems()...)
149+ f.dirty = false
150+ }
151+ if f.query != "" && f.filterEmptyMessage != "" {
152+ f.List.SetEmptyMessage(f.filterEmptyMessage)
153+ } else {
154+ f.List.SetEmptyMessage(f.emptyMessage)
155+ }
124156 return f.List.Render()
125157}
internal/ui/list/highlight.go+2−1
@@ -136,9 +136,10 @@ func HighlightBuffer(content string, area image.Rectangle, startLine, startCol,
136136
137137// ToHighlighter converts a [lipgloss.Style] to a [Highlighter].
138138func ToHighlighter(lgStyle lipgloss.Style) Highlighter {
139+ uvStyle := ToStyle(lgStyle)
139140 return func(_ int, _ int, c *uv.Cell) *uv.Cell {
140141 if c != nil {
141− c.Style = ToStyle(lgStyle)
142+ c.Style = uvStyle
142143 }
143144 return c
144145 }
internal/ui/list/list.go+23−4
@@ -2,6 +2,8 @@ package list
22
33import (
44 "strings"
5+
6+ "charm.land/lipgloss/v2"
57)
68
79// List represents a list of items that can be lazily rendered. A list is
@@ -50,6 +52,11 @@ type List struct {
5052 // without calling back into Render.
5153 cache map[Item]*listCacheEntry
5254
55+ // emptyMessage is a placeholder rendered centered (and dimmed) when
56+ // the list has zero items, so an empty or fully-filtered list is not
57+ // shown as a blank void. Empty by default (renders nothing).
58+ emptyMessage string
59+
5360 // freezeSuppressed marks items the list must not freeze on the
5461 // next render even when their Finished() reports true. This is
5562 // the §4.5.1 selection-drag escape hatch (option (a)): items
@@ -109,6 +116,12 @@ func (l *List) SetSize(width, height int) {
109116 l.height = height
110117}
111118
119+// SetEmptyMessage sets a placeholder message rendered centered and dimmed
120+// when the list has no items. An empty string disables the placeholder.
121+func (l *List) SetEmptyMessage(msg string) {
122+ l.emptyMessage = msg
123+}
124+
112125// SetGap sets the gap between items.
113126func (l *List) SetGap(gap int) {
114127 l.gap = gap
@@ -321,9 +334,7 @@ func (l *List) renderItemEntry(idx int) *listCacheEntry {
321334
322335// invalidateAll drops every cache entry. Called on width changes.
323336func (l *List) invalidateAll() {
324− for k := range l.cache {
325− delete(l.cache, k)
326− }
337+ l.cache = make(map[Item]*listCacheEntry)
327338 l.totalHeightValid = false
328339}
329340
@@ -516,7 +527,15 @@ func (l *List) VisibleItemIndices() (startIdx, endIdx int) {
516527// lines we now drop implicitly per item).
517528func (l *List) Render() string {
518529 if len(l.items) == 0 {
519− return ""
530+ if l.emptyMessage == "" {
531+ return ""
532+ }
533+ msg := lipgloss.NewStyle().Faint(true).Render(l.emptyMessage)
534+ return lipgloss.Place(
535+ max(l.width, 0), max(l.height, 0),
536+ lipgloss.Center, lipgloss.Center,
537+ msg,
538+ )
520539 }
521540
522541 budget := max(l.height, 0)
internal/ui/model/chat.go+18−4
@@ -673,6 +673,18 @@ func (m *Chat) RemoveMessage(id string) {
673673 return
674674 }
675675
676+ // Clean up nested tool IDs that point to this item's index before
677+ // removing it, so they don't end up pointing to a wrong item after
678+ // the rebuild.
679+ if item, ok := m.list.ItemAt(idx).(chat.MessageItem); ok {
680+ if container, ok := item.(chat.NestedToolContainer); ok {
681+ for _, nested := range container.NestedTools() {
682+ delete(m.idInxMap, nested.ID())
683+ delete(m.pausedAnimations, nested.ID())
684+ }
685+ }
686+ }
687+
676688 // Remove from list
677689 m.list.RemoveItem(idx)
678690
@@ -683,6 +695,12 @@ func (m *Chat) RemoveMessage(id string) {
683695 for i := idx; i < m.list.Len(); i++ {
684696 if item, ok := m.list.ItemAt(i).(chat.MessageItem); ok {
685697 m.idInxMap[item.ID()] = i
698+ // Also update nested tool IDs for containers.
699+ if container, ok := item.(chat.NestedToolContainer); ok {
700+ for _, nested := range container.NestedTools() {
701+ m.idInxMap[nested.ID()] = i
702+ }
703+ }
686704 }
687705 }
688706
@@ -1106,10 +1124,6 @@ func findWordBoundaries(line string, col int) (startCol, endCol int) {
11061124 return 0, 0
11071125 }
11081126
1109− i := displaywidth.StringGraphemes(line)
1110− for i.Next() {
1111− }
1112−
11131127 // Segment the line into words using UAX#29.
11141128 lineCol := 0 // tracks the visited column widths
11151129 lastCol := 0 // tracks the start of the current token
internal/ui/model/header.go+93−10
@@ -2,6 +2,8 @@ package model
22
33import (
44 "fmt"
5+ "hash/fnv"
6+ "strconv"
57 "strings"
68
79 "charm.land/lipgloss/v2"
@@ -30,6 +32,18 @@ type header struct {
3032 com *common.Common
3133 width int
3234 compact bool
35+
36+ // compact-header render cache. drawHeader otherwise rebuilds the whole
37+ // compact header (LSP loop, config/model lookups, several
38+ // lipgloss.Render calls, PrettyPath+DirTrim, ansi.Truncate) every
39+ // frame; memoize the rendered string keyed by a cheap fingerprint of
40+ // everything it depends on.
41+ compactCacheKey uint64
42+ compactCacheView string
43+ hasCompactCache bool
44+ // compactFPBuf is a scratch buffer reused across frames to build the
45+ // compact-header fingerprint without allocating (see compactFingerprint).
46+ compactFPBuf []byte
3347}
3448
3549// newHeader creates a new header model.
@@ -59,9 +73,13 @@ func (h *header) refresh() {
5973 // Force drawHeader to re-render the wide logo on the next frame.
6074 h.width = 0
6175 h.logo = ""
76+ // The compact-header cache embeds the old theme's styles; drop it.
77+ h.hasCompactCache = false
6278}
6379
64−// drawHeader draws the header for the given session.
80+// drawHeader draws the header for the given session. lspErrorCount is the
81+// total diagnostic count summed by the caller from local LSP state, so
82+// this render path never issues an LSPGetStates RPC.
6583func (h *header) drawHeader(
6684 scr uv.Screen,
6785 area uv.Rectangle,
@@ -70,8 +88,8 @@ func (h *header) drawHeader(
7088 detailsOpen bool,
7189 width int,
7290 hyperCredits *int,
91+ lspErrorCount int,
7392) {
74− t := h.com.Styles
7593 if width != h.width || compact != h.compact {
7694 h.logo = renderLogo(h.com.Styles, compact, h.com.IsHyper(), width)
7795 }
@@ -88,14 +106,79 @@ func (h *header) drawHeader(
88106 return
89107 }
90108
109+ key := h.compactFingerprint(session, detailsOpen, width, hyperCredits, lspErrorCount)
110+ if !h.hasCompactCache || key != h.compactCacheKey {
111+ h.compactCacheView = h.buildCompactHeader(session, detailsOpen, width, hyperCredits, lspErrorCount)
112+ h.compactCacheKey = key
113+ h.hasCompactCache = true
114+ }
115+
116+ uv.NewStyledString(h.compactCacheView).Draw(scr, area)
117+}
118+
119+// compactFingerprint hashes every input that affects the compact header
120+// render, so drawHeader can reuse the cached string when nothing changed.
121+func (h *header) compactFingerprint(
122+ session *session.Session,
123+ detailsOpen bool,
124+ width int,
125+ hyperCredits *int,
126+ lspErrorCount int,
127+) uint64 {
128+ var contextWindow int64
129+ agentCfg := h.com.Config().Agents[config.AgentCoder]
130+ if model := h.com.Config().GetModelByType(agentCfg.Model); model != nil {
131+ contextWindow = model.ContextWindow
132+ }
133+ credits := 0
134+ hasCredits := hyperCredits != nil
135+ if hasCredits {
136+ credits = *hyperCredits
137+ }
138+ // Build into a reused buffer with strconv appends and hash once, rather
139+ // than fmt.Sprintf: this runs every frame in compact mode, so the arg
140+ // boxing and result-string allocation Sprintf performed were pure churn.
141+ b := h.compactFPBuf[:0]
142+ putInt := func(k string, v int64) { b = append(b, k...); b = strconv.AppendInt(b, v, 10) }
143+ putInt("w=", int64(width))
144+ b = append(b, ";sid="...)
145+ b = append(b, session.ID...)
146+ putInt(";ct=", session.CompletionTokens)
147+ putInt(";pt=", session.PromptTokens)
148+ b = append(b, ";eu="...)
149+ b = strconv.AppendBool(b, session.EstimatedUsage)
150+ putInt(";lsp=", int64(lspErrorCount))
151+ b = append(b, ";det="...)
152+ b = strconv.AppendBool(b, detailsOpen)
153+ b = append(b, ";hyper="...)
154+ b = strconv.AppendBool(b, h.com.IsHyper())
155+ b = append(b, ";hc="...)
156+ b = strconv.AppendBool(b, hasCredits)
157+ putInt("/", int64(credits))
158+ putInt(";cw=", contextWindow)
159+ b = append(b, ";cwd="...)
160+ b = append(b, h.com.Workspace.WorkingDir()...)
161+ h.compactFPBuf = b // retain the grown buffer for reuse next frame
162+
163+ hash := fnv.New64a()
164+ hash.Write(b)
165+ return hash.Sum64()
166+}
167+
168+// buildCompactHeader renders the compact header string.
169+func (h *header) buildCompactHeader(
170+ session *session.Session,
171+ detailsOpen bool,
172+ width int,
173+ hyperCredits *int,
174+ lspErrorCount int,
175+) string {
176+ t := h.com.Styles
177+
91178 var b strings.Builder
92179 b.WriteString(h.compactLogo)
93180
94181 availDetailWidth := width - leftPadding - rightPadding - lipgloss.Width(b.String()) - minHeaderDiags - diagToDetailsSpacing
95− lspErrorCount := 0
96− for _, info := range h.com.Workspace.LSPGetStates() {
97− lspErrorCount += info.DiagnosticCount
98− }
99182 details := renderHeaderDetails(
100183 h.com,
101184 session,
@@ -121,10 +204,7 @@ func (h *header) drawHeader(
121204
122205 b.WriteString(details)
123206
124− view := uv.NewStyledString(
125− t.Header.Wrapper.Padding(0, rightPadding, 0, leftPadding).Render(b.String()),
126− )
127− view.Draw(scr, area)
207+ return t.Header.Wrapper.Padding(0, rightPadding, 0, leftPadding).Render(b.String())
128208}
129209
130210// renderHeaderDetails renders the details section of the header.
@@ -148,6 +228,9 @@ func renderHeaderDetails(
148228 model := com.Config().GetModelByType(agentCfg.Model)
149229 if model != nil && model.ContextWindow > 0 {
150230 percentage := (float64(session.CompletionTokens+session.PromptTokens) / float64(model.ContextWindow)) * 100
231+ if percentage > 100 {
232+ percentage = 100
233+ }
151234 percentageText := fmt.Sprintf("%d%%", int(percentage))
152235 if session.EstimatedUsage {
153236 percentageText = "~" + percentageText
internal/ui/model/history.go+1−2
@@ -1,7 +1,6 @@
11package model
22
33import (
4− "context"
54 "log/slog"
65 "strings"
76
@@ -18,7 +17,7 @@ type promptHistoryLoadedMsg struct {
1817// loadPromptHistory loads user messages for history navigation.
1918func (m *UI) loadPromptHistory() tea.Cmd {
2019 return func() tea.Msg {
21− ctx := context.Background()
20+ ctx := m.ctx
2221 var messages []message.Message
2322 var err error
2423
internal/ui/model/keys.go+25−21
@@ -4,14 +4,14 @@ import "charm.land/bubbles/v2/key"
44
55type KeyMap struct {
66 Editor struct {
7− AddFile key.Binding
8− SendMessage key.Binding
9− OpenEditor key.Binding
10− Newline key.Binding
11− AddImage key.Binding
12− PasteImage key.Binding
13− MentionFile key.Binding
14− Commands key.Binding
7+ SendMessage key.Binding
8+ OpenEditor key.Binding
9+ Newline key.Binding
10+ AddImage key.Binding
11+ PasteImage key.Binding
12+ MentionFile key.Binding
13+ Commands key.Binding
14+ ShellCommand key.Binding
1515
1616 // Attachments key maps
1717 AttachmentDeleteMode key.Binding
@@ -25,7 +25,6 @@ type KeyMap struct {
2525
2626 Chat struct {
2727 NewSession key.Binding
28− AddAttachment key.Binding
2928 Cancel key.Binding
3029 Tab key.Binding
3130 Details key.Binding
@@ -67,6 +66,7 @@ type KeyMap struct {
6766 Sessions key.Binding
6867 Tab key.Binding
6968 ToggleYolo key.Binding
69+ CopyError key.Binding
7070}
7171
7272func DefaultKeyMap() KeyMap {
@@ -103,12 +103,12 @@ func DefaultKeyMap() KeyMap {
103103 key.WithKeys("ctrl+y"),
104104 key.WithHelp("ctrl+y", "toggle yolo"),
105105 ),
106+ CopyError: key.NewBinding(
107+ key.WithKeys("ctrl+e"),
108+ key.WithHelp("ctrl+e", "copy error"),
109+ ),
106110 }
107111
108− km.Editor.AddFile = key.NewBinding(
109− key.WithKeys("/"),
110− key.WithHelp("/", "add file"),
111− )
112112 km.Editor.SendMessage = key.NewBinding(
113113 key.WithKeys("enter"),
114114 key.WithHelp("enter", "send"),
@@ -140,6 +140,14 @@ func DefaultKeyMap() KeyMap {
140140 key.WithKeys("/"),
141141 key.WithHelp("/", "commands"),
142142 )
143+ // ShellCommand is a help-only hint: bang (!) shell mode is entered by
144+ // typing "!" at the start of an empty editor (see the bang-mode handling
145+ // in ui.go), not via a key.Matches lookup, so this binding exists purely
146+ // to surface the feature in the help view.
147+ km.Editor.ShellCommand = key.NewBinding(
148+ key.WithKeys("!"),
149+ key.WithHelp("!", "shell command"),
150+ )
143151 km.Editor.AttachmentDeleteMode = key.NewBinding(
144152 key.WithKeys("ctrl+r"),
145153 key.WithHelp("ctrl+r+{i}", "delete attachment at index i"),
@@ -163,10 +171,6 @@ func DefaultKeyMap() KeyMap {
163171 key.WithKeys("ctrl+n"),
164172 key.WithHelp("ctrl+n", "new session"),
165173 )
166− km.Chat.AddAttachment = key.NewBinding(
167− key.WithKeys("ctrl+f"),
168− key.WithHelp("ctrl+f", "add attachment"),
169− )
170174 km.Chat.Cancel = key.NewBinding(
171175 key.WithKeys("esc", "alt+esc"),
172176 key.WithHelp("esc", "cancel"),
@@ -194,11 +198,11 @@ func DefaultKeyMap() KeyMap {
194198
195199 km.Chat.Down = key.NewBinding(
196200 key.WithKeys("down", "ctrl+j", "j"),
197− key.WithHelp("↓", "down"),
201+ key.WithHelp("↓/j", "down"),
198202 )
199203 km.Chat.Up = key.NewBinding(
200204 key.WithKeys("up", "ctrl+k", "k"),
201− key.WithHelp("↑", "up"),
205+ key.WithHelp("↑/k", "up"),
202206 )
203207 km.Chat.UpDown = key.NewBinding(
204208 key.WithKeys("up", "down"),
@@ -206,11 +210,11 @@ func DefaultKeyMap() KeyMap {
206210 )
207211 km.Chat.UpOneItem = key.NewBinding(
208212 key.WithKeys("shift+up", "K"),
209− key.WithHelp("shift+↑", "up one item"),
213+ key.WithHelp("shift+↑/K", "up one item"),
210214 )
211215 km.Chat.DownOneItem = key.NewBinding(
212216 key.WithKeys("shift+down", "J"),
213− key.WithHelp("shift+↓", "down one item"),
217+ key.WithHelp("shift+↓/J", "down one item"),
214218 )
215219 km.Chat.UpDownOneItem = key.NewBinding(
216220 key.WithKeys("shift+up", "shift+down"),
internal/ui/model/landing.go+78−9
@@ -1,9 +1,11 @@
11package model
22
33import (
4+ "fmt"
45 "image"
56
67 "charm.land/lipgloss/v2"
8+ "github.com/charmbracelet/crush/internal/config"
79 "github.com/charmbracelet/crush/internal/ui/common"
810 "github.com/charmbracelet/crush/internal/workspace"
911 "github.com/charmbracelet/ultraviolet/layout"
@@ -11,14 +13,68 @@ import (
1113
1214// selectedLargeModel returns the currently selected large language model from
1315// the agent coordinator, if one exists.
16+//
17+// Resolving the model hits the agent coordinator, which is an RPC
18+// (AgentIsReady + AgentModel) in client mode. Because this runs on the
19+// per-frame sidebar fingerprint path, the result is cached against a
20+// cheap, locally-cached config fingerprint (largeModelConfigKey) and
21+// only re-fetched when the selection changes. A nil result is never
22+// cached, so the not-ready → ready transition is picked up on the next
23+// frame.
1424func (m *UI) selectedLargeModel() *workspace.AgentModel {
25+ key := m.largeModelConfigKey()
26+ if m.renderCache.largeModel != nil && key == m.renderCache.largeModelCacheKey {
27+ return m.renderCache.largeModel
28+ }
29+ m.renderCache.largeModelCacheKey = key
1530 if m.com.Workspace.AgentIsReady() {
1631 model := m.com.Workspace.AgentModel()
17− return &model
32+ m.renderCache.largeModel = &model
33+ return m.renderCache.largeModel
1834 }
35+ m.renderCache.largeModel = nil
1936 return nil
2037}
2138
39+// largeModelConfigKey builds a cheap fingerprint of the locally-cached
40+// config that determines the selected large (coder) model. The resolved
41+// model is cached against this key so selectedLargeModel only re-fetches
42+// when the selection actually changes. The cached workspace config is
43+// refreshed on every server-side config change (ConfigChanged), so
44+// remote model switches flip this key too.
45+func (m *UI) largeModelConfigKey() string {
46+ cfg := m.com.Config()
47+ if cfg == nil {
48+ return ""
49+ }
50+ agentCfg, ok := cfg.Agents[config.AgentCoder]
51+ if !ok {
52+ return "no-agent"
53+ }
54+ sm, ok := cfg.Models[agentCfg.Model]
55+ if !ok {
56+ return "no-model:" + string(agentCfg.Model)
57+ }
58+ // Fold in the catwalk-derived fields that the sidebar renders (looked
59+ // up from the same cached config, no RPC), so a provider-config
60+ // change that alters e.g. the context window or reasoning support for
61+ // the same provider+model still flips the key and forces a refresh.
62+ var cwName, provName string
63+ var contextWindow int64
64+ var canReason bool
65+ if cm := cfg.GetModelByType(agentCfg.Model); cm != nil {
66+ cwName = cm.Name
67+ contextWindow = cm.ContextWindow
68+ canReason = cm.CanReason
69+ }
70+ if pc, ok := cfg.Providers.Get(sm.Provider); ok {
71+ provName = pc.Name
72+ }
73+ return fmt.Sprintf("%s|%s|%s|%t|%s|%s|%s|%d|%t",
74+ agentCfg.Model, sm.Provider, sm.Model, sm.Think, sm.ReasoningEffort,
75+ provName, cwName, contextWindow, canReason)
76+}
77+
2278// landingView renders the landing page view showing the current working
2379// directory, model information, and LSP/MCP status in a two-column layout.
2480func (m *UI) landingView() string {
@@ -30,7 +86,8 @@ func (m *UI) landingView() string {
3086 cwd,
3187 }
3288
33− parts = append(parts, "", m.modelInfo(width))
89+ cta := t.Resource.AdditionalText.Render("Type a message to begin · / for commands · ctrl+s for sessions")
90+ parts = append(parts, "", m.modelInfo(width), "", cta)
3491 infoSection := lipgloss.JoinVertical(lipgloss.Left, parts...)
3592
3693 var remainingHeightArea image.Rectangle
@@ -39,13 +96,25 @@ func (m *UI) landingView() string {
3996 layout.Fill(1),
4097 ).Split(m.layout.main).Assign(new(image.Rectangle), &remainingHeightArea)
4198
42− mcpLspSectionWidth := min(30, (width-2)/3)
43−
44− lspSection := m.lspInfo(mcpLspSectionWidth, max(1, remainingHeightArea.Dy()), false)
45− mcpSection := m.mcpInfo(mcpLspSectionWidth, max(1, remainingHeightArea.Dy()), false)
46− skillsSection := m.skillsInfo(mcpLspSectionWidth, max(1, remainingHeightArea.Dy()), false)
47−
48− content := lipgloss.JoinHorizontal(lipgloss.Left, lspSection, " ", mcpSection, " ", skillsSection)
99+ // On narrow terminals the three side-by-side sections get squeezed to a
100+ // few columns each, so stack them vertically instead. narrowLandingWidth
101+ // is the point below which a 3-column split would leave each column under
102+ // ~20 cells wide ((width-2)/3 < 20).
103+ const narrowLandingWidth = 60
104+ var content string
105+ if width < narrowLandingWidth {
106+ perSection := max(1, remainingHeightArea.Dy()/3)
107+ lspSection := m.lspInfo(width, perSection, false)
108+ mcpSection := m.mcpInfo(width, perSection, false)
109+ skillsSection := m.skillsInfo(width, perSection, false)
110+ content = lipgloss.JoinVertical(lipgloss.Left, lspSection, "", mcpSection, "", skillsSection)
111+ } else {
112+ mcpLspSectionWidth := min(30, (width-2)/3)
113+ lspSection := m.lspInfo(mcpLspSectionWidth, max(1, remainingHeightArea.Dy()), false)
114+ mcpSection := m.mcpInfo(mcpLspSectionWidth, max(1, remainingHeightArea.Dy()), false)
115+ skillsSection := m.skillsInfo(mcpLspSectionWidth, max(1, remainingHeightArea.Dy()), false)
116+ content = lipgloss.JoinHorizontal(lipgloss.Left, lspSection, " ", mcpSection, " ", skillsSection)
117+ }
49118
50119 return lipgloss.NewStyle().
51120 Width(width).
internal/ui/model/lsp.go+23−2
@@ -20,6 +20,23 @@ type LSPInfo struct {
2020 Diagnostics map[protocol.DiagnosticSeverity]int
2121}
2222
23+// refreshLSPState re-fetches the LSP client states and their per-severity
24+// diagnostic counts into the local mirrors (m.lspStates / m.lspDiagnostics).
25+// It is called from the LSP event handlers (state change / diagnostics
26+// change) so the sidebar fingerprint — computed every frame — can read
27+// fresh values from local state instead of issuing per-LSP diagnostics
28+// RPCs on the render hot path. Every diagnostics change publishes an LSP
29+// event (see internal/app/lsp_events.go), so the mirror always changes
30+// whenever the rendered sidebar would.
31+func (m *UI) refreshLSPState() {
32+ m.lspStates = m.com.Workspace.LSPGetStates()
33+ counts := make(map[string]lsp.DiagnosticCounts, len(m.lspStates))
34+ for name := range m.lspStates {
35+ counts[name] = m.com.Workspace.LSPGetDiagnosticCounts(name)
36+ }
37+ m.lspDiagnostics = counts
38+}
39+
2340// lspInfo renders the LSP status section showing active LSP clients and their
2441// diagnostic counts.
2542func (m *UI) lspInfo(width, maxItems int, isSection bool) string {
@@ -32,7 +49,11 @@ func (m *UI) lspInfo(width, maxItems int, isSection bool) string {
3249 var lsps []LSPInfo
3350 for _, state := range states {
3451 lspErrs := map[protocol.DiagnosticSeverity]int{}
35− counts := m.com.Workspace.LSPGetDiagnosticCounts(state.Name)
52+ // Read from the local mirror (refreshed on every LSP event) rather
53+ // than issuing a per-LSP diagnostics RPC on the render path. This
54+ // also keeps the rendered counts consistent with the sidebar
55+ // fingerprint, which reads the same mirror.
56+ counts := m.lspDiagnostics[state.Name]
3657 lspErrs[protocol.SeverityError] = counts.Error
3758 lspErrs[protocol.SeverityWarning] = counts.Warning
3859 lspErrs[protocol.SeverityHint] = counts.Hint
@@ -118,7 +139,7 @@ func lspList(t *styles.Styles, lsps []LSPInfo, width, maxItems int) string {
118139
119140 if len(renderedLsps) > maxItems {
120141 visibleItems := renderedLsps[:maxItems-1]
121− remaining := len(renderedLsps) - maxItems
142+ remaining := len(renderedLsps) - (maxItems - 1)
122143 visibleItems = append(visibleItems, t.Resource.AdditionalText.Render(fmt.Sprintf("…and %d more", remaining)))
123144 return lipgloss.JoinVertical(lipgloss.Left, visibleItems...)
124145 }
internal/ui/model/mcp.go+9−2
@@ -14,10 +14,17 @@ import (
1414// mcpInfo renders the MCP status section showing active MCP clients and their
1515// tool/prompt counts.
1616func (m *UI) mcpInfo(width, maxItems int, isSection bool) string {
17+ return m.mcpInfoSorted(m.com.Config().MCP.Sorted(), width, maxItems, isSection)
18+}
19+
20+// mcpInfoSorted renders the MCP status section from an already-sorted MCP
21+// config list, letting callers on the sidebar render path reuse a single
22+// MCP.Sorted() result instead of recomputing it.
23+func (m *UI) mcpInfoSorted(mcpSorted []config.MCP, width, maxItems int, isSection bool) string {
1724 var mcps []mcp.ClientInfo
1825 t := m.com.Styles
1926
20− for _, mcp := range m.com.Config().MCP.Sorted() {
27+ for _, mcp := range mcpSorted {
2128 if state, ok := m.mcpStates[mcp.Name]; ok {
2229 mcps = append(mcps, state)
2330 }
@@ -99,7 +106,7 @@ func mcpList(t *styles.Styles, mcps []mcp.ClientInfo, width, maxItems int) strin
99106
100107 if len(renderedMcps) > maxItems {
101108 visibleItems := renderedMcps[:maxItems-1]
102− remaining := len(renderedMcps) - maxItems
109+ remaining := len(renderedMcps) - (maxItems - 1)
103110 visibleItems = append(visibleItems, t.Resource.AdditionalText.Render(fmt.Sprintf("…and %d more", remaining)))
104111 return lipgloss.JoinVertical(lipgloss.Left, visibleItems...)
105112 }
internal/ui/model/onboarding.go+1−2
@@ -72,7 +72,6 @@ func (m *UI) initializeProject() tea.Cmd {
7272
7373// skipInitializeProject skips project initialization and transitions to the landing view.
7474func (m *UI) skipInitializeProject() tea.Cmd {
75− // TODO: initialize the project
7675 m.setState(uiLanding, uiFocusEditor)
7776 // mark the project as initialized
7877 return m.markProjectInitializedCmd()
@@ -86,7 +85,7 @@ func (m *UI) initializeView() string {
8685
8786 header := s.Header.Render("Would you like to initialize this project?")
8887 path := s.Accent.PaddingLeft(2).Render(cwd)
89− desc := s.Content.Render(fmt.Sprintf("When I initialize your codebase I examine the project and put the result into an %s file which serves as general context.", initFile))
88+ desc := s.Content.Render(fmt.Sprintf("When I initialize your codebase I examine the project and put the result into a %s file which serves as general context.", initFile))
9089 hint := s.Content.Render("You can also initialize anytime via ") + s.Accent.Render("ctrl+p") + s.Content.Render(".")
9190 prompt := s.Content.Render("Would you like to initialize now?")
9291
internal/ui/model/pills.go+6−6
@@ -88,7 +88,7 @@ func todoPill(todos []session.Todo, spinnerView string, focused, panelFocused bo
8888
8989 total := len(todos)
9090
91− label := t.Pills.TodoLabel.Render("To-Do")
91+ label := t.Pills.TodoLabel.Render("Tasks")
9292 progress := t.Pills.TodoProgress.Render(fmt.Sprintf("%d/%d", completed, total))
9393
9494 var content string
@@ -281,16 +281,16 @@ func (m *UI) pillsCacheState() string {
281281 return kb.String()
282282}
283283
284−// renderPills renders the pills panel and stores it in m.pillsView.
284+// renderPills renders the pills panel and stores it in m.renderCache.pillsView.
285285func (m *UI) renderPills() {
286286 // Skip re-rendering when nothing that affects the output changed.
287287 key := m.pillsCacheState()
288− if key == m.pillsCacheKey {
288+ if key == m.renderCache.pillsCacheKey {
289289 return
290290 }
291− m.pillsCacheKey = key
291+ m.renderCache.pillsCacheKey = key
292292
293− m.pillsView = ""
293+ m.renderCache.pillsView = ""
294294 if !m.hasSession() {
295295 return
296296 }
@@ -359,5 +359,5 @@ func (m *UI) renderPills() {
359359 pillsArea = lipgloss.JoinVertical(lipgloss.Left, pillsRow, expandedList)
360360 }
361361
362− m.pillsView = t.Pills.Area.MaxWidth(width).PaddingLeft(paddingLeft).Render(pillsArea)
362+ m.renderCache.pillsView = t.Pills.Area.MaxWidth(width).PaddingLeft(paddingLeft).Render(pillsArea)
363363}
internal/ui/model/session.go+5−6
@@ -1,7 +1,6 @@
11package model
22
33import (
4− "context"
54 "fmt"
65 "log/slog"
76 "path/filepath"
@@ -71,7 +70,7 @@ type SessionFile struct {
7170// UI never blocks on the call.
7271func (m *UI) loadSession(sessionID string) tea.Cmd {
7372 load := func() tea.Msg {
74− session, err := m.com.Workspace.GetSession(context.Background(), sessionID)
73+ session, err := m.com.Workspace.GetSession(m.ctx, sessionID)
7574 if err != nil {
7675 return util.ReportError(err)
7776 }
@@ -81,7 +80,7 @@ func (m *UI) loadSession(sessionID string) tea.Cmd {
8180 return util.ReportError(err)
8281 }
8382
84− readFiles, err := m.com.Workspace.FileTrackerListReadFiles(context.Background(), sessionID)
83+ readFiles, err := m.com.Workspace.FileTrackerListReadFiles(m.ctx, sessionID)
8584 if err != nil {
8685 slog.Error("Failed to load read files for session", "error", err)
8786 }
@@ -102,7 +101,7 @@ func (m *UI) loadSession(sessionID string) tea.Cmd {
102101// state.
103102func (m *UI) reportCurrentSession(sessionID string) tea.Cmd {
104103 return func() tea.Msg {
105− if err := m.com.Workspace.SetCurrentSession(context.Background(), sessionID); err != nil {
104+ if err := m.com.Workspace.SetCurrentSession(m.ctx, sessionID); err != nil {
106105 slog.Debug("Failed to report current session", "session_id", sessionID, "error", err)
107106 }
108107 return nil
@@ -110,7 +109,7 @@ func (m *UI) reportCurrentSession(sessionID string) tea.Cmd {
110109}
111110
112111func (m *UI) loadSessionFiles(sessionID string) ([]SessionFile, error) {
113− files, err := m.com.Workspace.ListSessionHistory(context.Background(), sessionID)
112+ files, err := m.com.Workspace.ListSessionHistory(m.ctx, sessionID)
114113 if err != nil {
115114 return nil, err
116115 }
@@ -264,7 +263,7 @@ func (m *UI) startLSPs(paths []string) tea.Cmd {
264263 }
265264
266265 return func() tea.Msg {
267− ctx := context.Background()
266+ ctx := m.ctx
268267 for _, path := range paths {
269268 m.com.Workspace.LSPStart(ctx, path)
270269 }
internal/ui/model/sidebar.go+99−43
@@ -6,8 +6,10 @@ import (
66 "hash/fnv"
77 "image"
88 "sort"
9+ "strconv"
910
1011 "charm.land/lipgloss/v2"
12+ "github.com/charmbracelet/crush/internal/config"
1113 "github.com/charmbracelet/crush/internal/ui/common"
1214 "github.com/charmbracelet/crush/internal/ui/logo"
1315 uv "github.com/charmbracelet/ultraviolet"
@@ -130,43 +132,70 @@ func getDynamicHeightLimits(availableHeight, fileCount, lspCount, mcpCount, skil
130132
131133// sidebarFingerprint computes a hash of every input that affects the
132134// rendered sidebar, so drawSidebar can reuse a cached render when nothing
133−// changed.
134−func (m *UI) sidebarFingerprint(area uv.Rectangle) uint64 {
135− h := fnv.New64a()
136− fmt.Fprintf(h, "w=%d;h=%d;theme=%s;", area.Dx(), area.Dy(), m.themeKey)
135+// changed. skillItems and mcpSorted are computed once per render by
136+// drawSidebar and reused by buildSidebar to avoid recomputing them.
137+func (m *UI) sidebarFingerprint(area uv.Rectangle, skillItems []skillStatusItem, mcpSorted []config.MCP) uint64 {
138+ // Build the fingerprint into a reused scratch buffer using strconv
139+ // appends instead of fmt.Fprintf. This runs on every frame (before the
140+ // sidebar render cache is consulted), so the reflection-based arg boxing
141+ // fmt.Fprintf performs was pure per-frame allocation churn. Appending to
142+ // a retained buffer and hashing it once is allocation-free after warmup.
143+ b := m.renderCache.sidebarFPBuf[:0]
144+ putInt := func(k string, v int64) { b = append(b, k...); b = strconv.AppendInt(b, v, 10) }
145+ putStr := func(k, v string) { b = append(b, k...); b = append(b, v...) }
146+ putBool := func(k string, v bool) { b = append(b, k...); b = strconv.AppendBool(b, v) }
147+
148+ putInt("w=", int64(area.Dx()))
149+ putInt(";h=", int64(area.Dy()))
150+ putStr(";theme=", m.themeKey)
151+ b = append(b, ';')
137152
138153 if m.session != nil {
139− fmt.Fprintf(h, "sid=%s;title=%s;ct=%d;pt=%d;cost=%f;eu=%t;",
140− m.session.ID, m.session.Title,
141− m.session.CompletionTokens, m.session.PromptTokens,
142− m.session.Cost, m.session.EstimatedUsage)
154+ putStr("sid=", m.session.ID)
155+ putStr(";title=", m.session.Title)
156+ putInt(";ct=", m.session.CompletionTokens)
157+ putInt(";pt=", m.session.PromptTokens)
158+ b = append(b, ";cost="...)
159+ b = strconv.AppendFloat(b, m.session.Cost, 'f', -1, 64)
160+ putBool(";eu=", m.session.EstimatedUsage)
161+ b = append(b, ';')
143162 }
144163
145− fmt.Fprintf(h, "cwd=%s;hyper=%t;", m.com.Workspace.WorkingDir(), m.com.IsHyper())
164+ putStr("cwd=", m.com.Workspace.WorkingDir())
165+ putBool(";hyper=", m.com.IsHyper())
166+ b = append(b, ';')
146167 if m.hyperCredits != nil {
147− fmt.Fprintf(h, "hc=%d;", *m.hyperCredits)
168+ putInt("hc=", int64(*m.hyperCredits))
169+ b = append(b, ';')
148170 }
149171 // The logo string is already cached; fold it in so any change to it (or
150172 // the small-render breakpoint) invalidates the sidebar.
151− h.Write([]byte("logo="))
152− h.Write([]byte(m.sidebarLogo))
153− h.Write([]byte{';'})
173+ putStr("logo=", m.sidebarLogo)
174+ b = append(b, ';')
154175
155176 if model := m.selectedLargeModel(); model != nil {
156− fmt.Fprintf(h, "model=%s|%s|reason=%t|lvls=%d|def=%s|think=%t|eff=%s|ctx=%d;",
157− model.ModelCfg.Provider, model.CatwalkCfg.Name,
158− model.CatwalkCfg.CanReason, len(model.CatwalkCfg.ReasoningLevels),
159− model.CatwalkCfg.DefaultReasoningEffort, model.ModelCfg.Think,
160− model.ModelCfg.ReasoningEffort, model.CatwalkCfg.ContextWindow)
177+ putStr("model=", model.ModelCfg.Provider)
178+ putStr("|", model.CatwalkCfg.Name)
179+ putBool("|reason=", model.CatwalkCfg.CanReason)
180+ putInt("|lvls=", int64(len(model.CatwalkCfg.ReasoningLevels)))
181+ putStr("|def=", model.CatwalkCfg.DefaultReasoningEffort)
182+ putBool("|think=", model.ModelCfg.Think)
183+ putStr("|eff=", model.ModelCfg.ReasoningEffort)
184+ putInt("|ctx=", int64(model.CatwalkCfg.ContextWindow))
185+ b = append(b, ';')
161186 } else {
162− h.Write([]byte("model=nil;"))
187+ b = append(b, "model=nil;"...)
163188 }
164189
165190 // Files.
166191 for i := range m.sessionFiles {
167192 f := &m.sessionFiles[i]
168− fmt.Fprintf(h, "f%d=%s|%d|%d|%d;", i,
169− f.LatestVersion.Path, f.Additions, f.Deletions, f.LatestVersion.UpdatedAt)
193+ putInt("f", int64(i))
194+ putStr("=", f.LatestVersion.Path)
195+ putInt("|", int64(f.Additions))
196+ putInt("|", int64(f.Deletions))
197+ putInt("|", f.LatestVersion.UpdatedAt)
198+ b = append(b, ';')
170199 }
171200
172201 // LSPs (sorted by name for a stable fingerprint), with diagnostic counts.
@@ -177,31 +206,51 @@ func (m *UI) sidebarFingerprint(area uv.Rectangle) uint64 {
177206 sort.Strings(lspNames)
178207 for _, name := range lspNames {
179208 st := m.lspStates[name]
180− counts := m.com.Workspace.LSPGetDiagnosticCounts(name)
209+ // Read the split diagnostic counts from the local mirror instead
210+ // of issuing a per-LSP diagnostics RPC every frame. The mirror is
211+ // refreshed on every LSP event (state or diagnostics change), the
212+ // same events that keep m.lspStates fresh, so this changes exactly
213+ // when the rendered LSP section would.
214+ counts := m.lspDiagnostics[name]
181215 // Hash the error text, not just its presence: the render prints
182216 // the message, so a changed message within the same state must
183217 // invalidate the cache.
184− fmt.Fprintf(h, "l=%s|%v|err=%s|%d/%d/%d/%d;",
185− st.Name, st.State, errText(st.Error),
186− counts.Error, counts.Warning, counts.Hint, counts.Information)
218+ putStr("l=", st.Name)
219+ putInt("|", int64(st.State))
220+ putStr("|err=", errText(st.Error))
221+ putInt("|", int64(counts.Error))
222+ putInt("/", int64(counts.Warning))
223+ putInt("/", int64(counts.Hint))
224+ putInt("/", int64(counts.Information))
225+ b = append(b, ';')
187226 }
188227
189228 // MCPs (config order, matching the render).
190− for _, mcpCfg := range m.com.Config().MCP.Sorted() {
229+ for _, mcpCfg := range mcpSorted {
191230 state, ok := m.mcpStates[mcpCfg.Name]
192231 if !ok {
193232 continue
194233 }
195− fmt.Fprintf(h, "m=%s|%v|err=%s|%d/%d/%d;",
196− state.Name, state.State, errText(state.Error),
197− state.Counts.Tools, state.Counts.Prompts, state.Counts.Resources)
234+ putStr("m=", state.Name)
235+ putInt("|", int64(state.State))
236+ putStr("|err=", errText(state.Error))
237+ putInt("|", int64(state.Counts.Tools))
238+ putInt("/", int64(state.Counts.Prompts))
239+ putInt("/", int64(state.Counts.Resources))
240+ b = append(b, ';')
198241 }
199242
200243 // Skills.
201− for _, it := range m.skillStatusItems() {
202− fmt.Fprintf(h, "s=%s|%s|%s;", it.icon, it.name, it.title)
244+ for _, it := range skillItems {
245+ putStr("s=", it.icon)
246+ putStr("|", it.name)
247+ putStr("|", it.title)
248+ b = append(b, ';')
203249 }
204250
251+ m.renderCache.sidebarFPBuf = b // retain the grown buffer for reuse next frame
252+ h := fnv.New64a()
253+ h.Write(b)
205254 return h.Sum64()
206255}
207256
@@ -221,18 +270,25 @@ func (m *UI) drawSidebar(scr uv.Screen, area uv.Rectangle) {
221270 return
222271 }
223272
224− key := m.sidebarFingerprint(area)
225− if !m.hasSidebarCache || key != m.sidebarCacheKey {
226− m.sidebarView = m.buildSidebar(area)
227− m.sidebarCacheKey = key
228− m.hasSidebarCache = true
273+ // Compute the skill items and sorted MCP list once per render and
274+ // thread them through both the fingerprint and buildSidebar, instead
275+ // of recomputing (clone+sort / map build) them several times.
276+ skillItems := m.skillStatusItems()
277+ mcpSorted := m.com.Config().MCP.Sorted()
278+
279+ key := m.sidebarFingerprint(area, skillItems, mcpSorted)
280+ if !m.renderCache.hasSidebarCache || key != m.renderCache.sidebarCacheKey {
281+ m.renderCache.sidebarView = m.buildSidebar(area, skillItems, mcpSorted)
282+ m.renderCache.sidebarCacheKey = key
283+ m.renderCache.hasSidebarCache = true
229284 }
230285
231− uv.NewStyledString(m.sidebarView).Draw(scr, area)
286+ uv.NewStyledString(m.renderCache.sidebarView).Draw(scr, area)
232287}
233288
234−// buildSidebar renders the sidebar content block as a string.
235−func (m *UI) buildSidebar(area uv.Rectangle) string {
289+// buildSidebar renders the sidebar content block as a string. skillItems
290+// and mcpSorted are precomputed by drawSidebar and reused here.
291+func (m *UI) buildSidebar(area uv.Rectangle, skillItems []skillStatusItem, mcpSorted []config.MCP) string {
236292 const logoHeightBreakpoint = 30
237293
238294 t := m.com.Styles
@@ -279,19 +335,19 @@ func (m *UI) buildSidebar(area uv.Rectangle) string {
279335 lspsCount := len(m.lspStates)
280336
281337 mcpsCount := 0
282− for _, mcpCfg := range m.com.Config().MCP.Sorted() {
338+ for _, mcpCfg := range mcpSorted {
283339 if _, ok := m.mcpStates[mcpCfg.Name]; ok {
284340 mcpsCount++
285341 }
286342 }
287343
288− skillsCount := len(m.skillStatusItems())
344+ skillsCount := len(skillItems)
289345
290346 maxFiles, maxLSPs, maxMCPs, maxSkills := getDynamicHeightLimits(remainingHeight, filesCount, lspsCount, mcpsCount, skillsCount)
291347
292348 lspSection := m.lspInfo(width, maxLSPs, true)
293− mcpSection := m.mcpInfo(width, maxMCPs, true)
294− skillsSection := m.skillsInfo(width, maxSkills, true)
349+ mcpSection := m.mcpInfoSorted(mcpSorted, width, maxMCPs, true)
350+ skillsSection := m.skillsInfoItems(skillItems, width, maxSkills, true)
295351 filesSection := m.filesInfo(m.com.Workspace.WorkingDir(), width, maxFiles, true)
296352
297353 return lipgloss.NewStyle().
internal/ui/model/skills.go+15−5
@@ -28,7 +28,14 @@ var builtinSkillsCache struct {
2828
2929func cachedBuiltinSkills() []*skills.Skill {
3030 builtinSkillsCache.once.Do(func() {
31− builtinSkillsCache.skills = skills.DiscoverBuiltin()
31+ builtin := skills.DiscoverBuiltin()
32+ // Sort once here rather than on every skillStatusItems call: the
33+ // returned slice is shared, so sorting it in place repeatedly is
34+ // wasted work (and mutates shared state on the render hot path).
35+ slices.SortStableFunc(builtin, func(a, b *skills.Skill) int {
36+ return strings.Compare(a.Name, b.Name)
37+ })
38+ builtinSkillsCache.skills = builtin
3239 })
3340 return builtinSkillsCache.skills
3441}
@@ -36,6 +43,13 @@ func cachedBuiltinSkills() []*skills.Skill {
3643// skillsInfo renders the skill discovery status section showing loaded and
3744// invalid skills.
3845func (m *UI) skillsInfo(width, maxItems int, isSection bool) string {
46+ return m.skillsInfoItems(m.skillStatusItems(), width, maxItems, isSection)
47+}
48+
49+// skillsInfoItems renders the skill status section from an already-computed
50+// item list, letting callers on the sidebar render path reuse a single
51+// skillStatusItems() result instead of recomputing it.
52+func (m *UI) skillsInfoItems(items []skillStatusItem, width, maxItems int, isSection bool) string {
3953 t := m.com.Styles
4054
4155 title := t.Resource.Heading.Render("Skills")
@@ -43,7 +57,6 @@ func (m *UI) skillsInfo(width, maxItems int, isSection bool) string {
4357 title = common.Section(t, title, width)
4458 }
4559
46− items := m.skillStatusItems()
4760 if len(items) == 0 {
4861 list := t.Resource.AdditionalText.Render("None")
4962 return lipgloss.NewStyle().Width(width).Render(fmt.Sprintf("%s\n\n%s", title, list))
@@ -95,9 +108,6 @@ func (m *UI) skillStatusItems() []skillStatusItem {
95108 }
96109
97110 builtin := cachedBuiltinSkills()
98− slices.SortStableFunc(builtin, func(a, b *skills.Skill) int {
99− return strings.Compare(a.Name, b.Name)
100− })
101111 for _, skill := range builtin {
102112 if _, ok := stateNames[skill.Name]; ok {
103113 continue
internal/ui/model/ui.go+302−98
@@ -38,6 +38,7 @@ import (
3838 "github.com/charmbracelet/crush/internal/fsext"
3939 "github.com/charmbracelet/crush/internal/history"
4040 "github.com/charmbracelet/crush/internal/home"
41+ "github.com/charmbracelet/crush/internal/lsp"
4142 "github.com/charmbracelet/crush/internal/message"
4243 "github.com/charmbracelet/crush/internal/permission"
4344 "github.com/charmbracelet/crush/internal/pubsub"
@@ -174,7 +175,38 @@ type (
174175)
175176
176177// UI represents the main user interface model.
178+// renderCache holds the per-frame render memoization the UI consults on
179+// every draw: the sidebar block (drawSidebar re-renders fully each frame),
180+// the resolved large model (an RPC in client mode), and the pills block.
181+// Grouped out of the UI struct so the memoization layer is separable from
182+// model state.
183+type renderCache struct {
184+ // sidebarView is the memoized sidebar block, keyed by sidebarCacheKey
185+ // (a fingerprint of every input affecting its output).
186+ sidebarView string
187+ sidebarCacheKey uint64
188+ hasSidebarCache bool
189+ // sidebarFPBuf is a scratch buffer reused across frames to build the
190+ // sidebar fingerprint without allocating (see sidebarFingerprint).
191+ sidebarFPBuf []byte
192+
193+ // largeModel caches the resolved selected large model — resolving it
194+ // hits the agent coordinator (an RPC in client mode) — keyed by
195+ // largeModelCacheKey. A nil result is never cached so the
196+ // not-ready → ready transition is picked up on the next frame.
197+ largeModel *workspace.AgentModel
198+ largeModelCacheKey string
199+
200+ // pillsView is the memoized pills block, keyed by pillsCacheKey.
201+ pillsView string
202+ pillsCacheKey string
203+}
204+
177205type UI struct {
206+ // ctx is the program's lifecycle context (cancelled on SIGINT / program
207+ // exit). Async workspace operations launched from tea.Cmd closures use
208+ // it so they can be cancelled at teardown instead of orphaning.
209+ ctx context.Context
178210 com *common.Common
179211 session *session.Session
180212 sessionFiles []SessionFile
@@ -198,9 +230,15 @@ type UI struct {
198230
199231 // themeKey identifies the currently applied theme so applyTheme can
200232 // skip the expensive style rebuild when switching to a provider that
201− // resolves to the same theme.
233+ // resolves to the same theme. It encodes both the provider theme family
234+ // and the light/dark background mode.
202235 themeKey string
203236
237+ // dark tracks the most recently detected terminal background mode (from
238+ // tea.BackgroundColorMsg). It defaults to true and is only consulted
239+ // when the configured theme is "auto"; see effectiveDark.
240+ dark bool
241+
204242 focus uiFocusState
205243 state uiState
206244
@@ -213,6 +251,12 @@ type UI struct {
213251 // isCanceling tracks whether the user has pressed escape once to cancel.
214252 isCanceling bool
215253
254+ // lastError holds the full text of the most recent error/warning status
255+ // message. Error/warning notifications are truncated to a single line in
256+ // the status bar and are not auto-expired; this retains the untruncated
257+ // text so it can be copied to the clipboard (keyMap.CopyError).
258+ lastError string
259+
216260 // bangMode tracks whether the editor is in bang (!) shell mode.
217261 bangMode bool
218262 bangWasEmpty bool // true when bang prompt became empty on last keystroke
@@ -265,6 +309,13 @@ type UI struct {
265309
266310 // lsp
267311 lspStates map[string]workspace.LSPClientInfo
312+ // lspDiagnostics mirrors the per-LSP diagnostic severity counts
313+ // locally. It is refreshed only when an LSP event arrives (the same
314+ // events that already refresh lspStates), so the sidebar fingerprint
315+ // — computed every frame — can read the split counts without issuing
316+ // a per-LSP diagnostics RPC (which, in client mode, fetches and
317+ // decodes every diagnostic).
318+ lspDiagnostics map[string]lsp.DiagnosticCounts
268319
269320 // mcp
270321 mcpStates map[string]mcp.ClientInfo
@@ -275,12 +326,9 @@ type UI struct {
275326 // sidebarLogo keeps a cached version of the sidebar sidebarLogo.
276327 sidebarLogo string
277328
278− // sidebar render cache: drawSidebar fully re-renders every frame, so we
279− // memoize the rendered block keyed by a fingerprint of every input that
280− // affects its output.
281− sidebarView string
282− sidebarCacheKey uint64
283− hasSidebarCache bool
329+ // renderCache holds the per-frame render memoization (sidebar, pills,
330+ // and resolved large-model caches); see the renderCache type.
331+ renderCache renderCache
284332
285333 // Notification state
286334 notifyBackend notification.Backend
@@ -304,11 +352,6 @@ type UI struct {
304352 pillsAutoExpanded bool
305353 focusedPillSection pillSection
306354 promptQueue int
307− pillsView string
308− // pillsCacheKey fingerprints the inputs used to build pillsView so
309− // renderPills can skip re-rendering (and recomputing the queue
310− // gradient) when nothing that affects the output has changed.
311− pillsCacheKey string
312355
313356 // Todo spinner
314357 todoSpinner spinner.Model
@@ -329,7 +372,7 @@ type UI struct {
329372}
330373
331374// New creates a new instance of the [UI] model.
332−func New(com *common.Common, initialSessionID string, continueLast bool) *UI {
375+func New(ctx context.Context, com *common.Common, initialSessionID string, continueLast bool) *UI {
333376 // Editor components
334377 ta := textarea.New()
335378 ta.SetStyles(com.Styles.Editor.Textarea)
@@ -380,6 +423,7 @@ func New(com *common.Common, initialSessionID string, continueLast bool) *UI {
380423 header := newHeader(com)
381424
382425 ui := &UI{
426+ ctx: ctx,
383427 com: com,
384428 dialog: dialog.NewOverlay(),
385429 keyMap: keyMap,
@@ -390,6 +434,7 @@ func New(com *common.Common, initialSessionID string, continueLast bool) *UI {
390434 attachments: attachments,
391435 todoSpinner: todoSpinner,
392436 lspStates: make(map[string]workspace.LSPClientInfo),
437+ lspDiagnostics: make(map[string]lsp.DiagnosticCounts),
393438 mcpStates: make(map[string]mcp.ClientInfo),
394439 notifyBackend: notification.NoopBackend{},
395440 notifyWindowFocused: true,
@@ -402,8 +447,17 @@ func New(com *common.Common, initialSessionID string, continueLast bool) *UI {
402447
403448 // Seed the active theme key from the large model provider so the
404449 // first model selection can correctly skip a redundant theme swap.
450+ // DefaultCommon builds the dark theme at startup, so the mode is seeded
451+ // dark; a tea.BackgroundColorMsg (or a forced "light" config) reconciles
452+ // it to the light palette on the first frame.
453+ ui.dark = true
405454 if cfg := com.Config(); cfg != nil {
406− ui.themeKey = styles.ThemeKeyForProvider(cfg.Models[config.SelectedModelTypeLarge].Provider)
455+ // Seed with the dark key because DefaultCommon builds the dark theme;
456+ // reconcileTheme applies the light palette on the first frame when
457+ // the terminal reports a light background or "light" is forced.
458+ ui.themeKey = styles.ThemeKeyForProviderMode(
459+ cfg.Models[config.SelectedModelTypeLarge].Provider, true,
460+ )
407461 }
408462
409463 ui.setEditorPrompt(com.Workspace.PermissionSkipRequests())
@@ -441,6 +495,9 @@ func New(com *common.Common, initialSessionID string, continueLast bool) *UI {
441495// Init initializes the UI model.
442496func (m *UI) Init() tea.Cmd {
443497 var cmds []tea.Cmd
498+ // Ask the terminal for its background color so we can pick the light or
499+ // dark palette (see the tea.BackgroundColorMsg handler in Update).
500+ cmds = append(cmds, tea.RequestBackgroundColor)
444501 if m.state == uiOnboarding {
445502 if cmd := m.openModelsDialog(); cmd != nil {
446503 cmds = append(cmds, cmd)
@@ -470,7 +527,7 @@ func (m *UI) loadInitialSession() tea.Cmd {
470527 return m.loadSession(m.initialSessionID)
471528 case m.continueLastSession:
472529 return func() tea.Msg {
473− sessions, err := m.com.Workspace.ListSessions(context.Background())
530+ sessions, err := m.com.Workspace.ListSessions(m.ctx)
474531 if err != nil || len(sessions) == 0 {
475532 return nil
476533 }
@@ -552,14 +609,32 @@ func (m *UI) updateNotificationBackend() {
552609}
553610
554611// shouldSendNotification returns true if notifications should be sent based on
555−// current state. Focus reporting must be supported, window must not be
556−// focused, and notifications must not be disabled in config.
612+// current state. The window must not be focused and notifications must not be
613+// disabled in config. Focus reporting is only required in auto-detection mode:
614+// when the user explicitly chooses a notification style, we honor it even on
615+// terminals that don't support focus events (e.g. SSH sessions).
557616func (m *UI) shouldSendNotification() bool {
558617 cfg := m.com.Config()
559− if cfg != nil && cfg.Options != nil && cfg.Options.NotificationStyle == "disabled" {
618+ var style string
619+ if cfg != nil && cfg.Options != nil {
620+ style = cfg.Options.NotificationStyle
621+ }
622+ if style == "disabled" {
560623 return false
561624 }
562− return m.caps.ReportFocusEvents && !m.notifyWindowFocused
625+ // Never notify while the window is focused. On terminals without focus
626+ // reporting, notifyWindowFocused stays false, so this doesn't suppress.
627+ if m.notifyWindowFocused {
628+ return false
629+ }
630+ // An explicit style (anything other than auto/empty) is honored regardless
631+ // of focus event support.
632+ if style != "" && style != "auto" {
633+ return true
634+ }
635+ // Auto-detection mode: without focus events we can't suppress notifications
636+ // while focused, so we disable them entirely to avoid spamming the user.
637+ return m.caps.ReportFocusEvents
563638}
564639
565640// setState changes the UI state and focus.
@@ -582,7 +657,7 @@ func (m *UI) loadCustomCommands() tea.Cmd {
582657 slog.Error("Failed to load custom commands", "error", err)
583658 }
584659 // Append user-invocable skills as commands.
585− skillEntries, err := m.com.Workspace.ListSkills(context.Background())
660+ skillEntries, err := m.com.Workspace.ListSkills(m.ctx)
586661 if err != nil {
587662 slog.Error("Failed to load skill commands", "error", err)
588663 }
@@ -643,7 +718,7 @@ func (m *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
643718 m.session = msg.session
644719 m.sessionFiles = msg.files
645720 cmds = append(cmds, m.startLSPs(msg.lspFilePaths()))
646− msgs, err := m.com.Workspace.ListMessages(context.Background(), m.session.ID)
721+ msgs, err := m.com.Workspace.ListMessages(m.ctx, m.session.ID)
647722 if err != nil {
648723 cmds = append(cmds, util.ReportError(err))
649724 break
@@ -783,9 +858,9 @@ func (m *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
783858 case pubsub.Event[history.File]:
784859 cmds = append(cmds, m.handleFileEvent(msg.Payload))
785860 case pubsub.Event[app.LSPEvent]:
786− m.lspStates = m.com.Workspace.LSPGetStates()
861+ m.refreshLSPState()
787862 case pubsub.Event[workspace.LSPEvent]:
788− m.lspStates = m.com.Workspace.LSPGetStates()
863+ m.refreshLSPState()
789864 case pubsub.Event[skills.Event]:
790865 m.skillStates = msg.Payload.States
791866 case pubsub.Event[mcp.Event]:
@@ -807,7 +882,7 @@ func (m *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
807882 cmds = append(cmds, cmd)
808883 }
809884 if cmd := m.sendNotification(notification.Notification{
810− Title: "Crush is waiting...",
885+ Title: "Crush needs permission",
811886 Message: fmt.Sprintf("Permission required to execute \"%s\"", msg.Payload.ToolName),
812887 }); cmd != nil {
813888 cmds = append(cmds, cmd)
@@ -823,9 +898,17 @@ func (m *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
823898 m.sendProgressBar = xstrings.ContainsAnyOf(termVersion, "ghostty", "iterm2", "rio")
824899 }
825900 return m, nil
901+ case tea.BackgroundColorMsg:
902+ // The terminal reported its background color; switch to the light
903+ // or dark palette to match (unless the theme is forced via config).
904+ m.dark = msg.IsDark()
905+ m.reconcileTheme()
826906 case tea.WindowSizeMsg:
827907 m.width, m.height = msg.Width, msg.Height
828908 m.updateLayoutAndSize()
909+ // Fallback for terminals that never answer the background-color
910+ // query: a forced "light"/"dark" config still takes effect here.
911+ m.reconcileTheme()
829912 if m.state == uiChat && m.chat.Follow() {
830913 if cmd := m.chat.ScrollToBottomAndAnimate(); cmd != nil {
831914 cmds = append(cmds, cmd)
@@ -1069,11 +1152,18 @@ func (m *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
10691152 slog.Error("Error reported", "error", msg.Msg)
10701153 }
10711154 m.status.SetInfoMsg(msg)
1072− ttl := msg.TTL
1073− if ttl <= 0 {
1074− ttl = DefaultStatusTTL
1155+ // Errors and warnings persist until replaced or dismissed (rather than
1156+ // auto-expiring like info/success/update) so the user can read them and
1157+ // copy the full text (ctrl+e). Retain the untruncated message for that.
1158+ if msg.Type == util.InfoTypeError || msg.Type == util.InfoTypeWarn {
1159+ m.lastError = msg.Msg
1160+ } else {
1161+ ttl := msg.TTL
1162+ if ttl <= 0 {
1163+ ttl = DefaultStatusTTL
1164+ }
1165+ cmds = append(cmds, clearInfoMsgCmd(ttl))
10751166 }
1076− cmds = append(cmds, clearInfoMsgCmd(ttl))
10771167 case app.UpdateAvailableMsg:
10781168 text := fmt.Sprintf("Crush update available: v%s → v%s.", msg.CurrentVersion, msg.LatestVersion)
10791169 if msg.IsDevelopment {
@@ -1138,25 +1228,23 @@ func (m *UI) setSessionMessages(msgs []message.Message) tea.Cmd {
11381228 msgPtrs[i] = &msgs[i]
11391229 }
11401230 toolResultMap := chat.BuildToolResultMap(msgPtrs)
1141− if len(msgPtrs) > 0 {
1142− m.lastUserMessageTime = msgPtrs[0].CreatedAt
1143− }
11441231
11451232 // Add messages to chat with linked tool results
1233+ diffTool := m.com.Config().Options.TUI.DiffTool
11461234 items := make([]chat.MessageItem, 0, len(msgs)*2)
11471235 for _, msg := range msgPtrs {
11481236 switch msg.Role {
11491237 case message.User:
11501238 m.lastUserMessageTime = msg.CreatedAt
1151− items = append(items, chat.ExtractMessageItems(m.com.Styles, msg, toolResultMap)...)
1239+ items = append(items, chat.ExtractMessageItems(m.com.Styles, msg, toolResultMap, diffTool)...)
11521240 case message.Assistant:
1153− items = append(items, chat.ExtractMessageItems(m.com.Styles, msg, toolResultMap)...)
1241+ items = append(items, chat.ExtractMessageItems(m.com.Styles, msg, toolResultMap, diffTool)...)
11541242 if msg.FinishPart() != nil && msg.FinishPart().Reason == message.FinishReasonEndTurn {
11551243 infoItem := chat.NewAssistantInfoItem(m.com.Styles, msg, m.com.Config(), time.Unix(m.lastUserMessageTime, 0))
11561244 items = append(items, infoItem)
11571245 }
11581246 default:
1159− items = append(items, chat.ExtractMessageItems(m.com.Styles, msg, toolResultMap)...)
1247+ items = append(items, chat.ExtractMessageItems(m.com.Styles, msg, toolResultMap, diffTool)...)
11601248 }
11611249 }
11621250
@@ -1202,7 +1290,7 @@ func (m *UI) loadNestedToolCalls(items []chat.MessageItem) {
12021290 agentSessionID := m.com.Workspace.CreateAgentToolSessionID(messageID, tc.ID)
12031291
12041292 // Fetch nested messages.
1205− nestedMsgs, err := m.com.Workspace.ListMessages(context.Background(), agentSessionID)
1293+ nestedMsgs, err := m.com.Workspace.ListMessages(m.ctx, agentSessionID)
12061294 if err != nil || len(nestedMsgs) == 0 {
12071295 continue
12081296 }
@@ -1217,7 +1305,7 @@ func (m *UI) loadNestedToolCalls(items []chat.MessageItem) {
12171305 // Extract nested tool items.
12181306 var nestedTools []chat.ToolMessageItem
12191307 for _, nestedMsg := range nestedMsgPtrs {
1220− nestedItems := chat.ExtractMessageItems(m.com.Styles, nestedMsg, nestedToolResultMap)
1308+ nestedItems := chat.ExtractMessageItems(m.com.Styles, nestedMsg, nestedToolResultMap, m.com.Config().Options.TUI.DiffTool)
12211309 for _, nestedItem := range nestedItems {
12221310 if nestedToolItem, ok := nestedItem.(chat.ToolMessageItem); ok {
12231311 // Mark nested tools as simple (compact) rendering.
@@ -1267,7 +1355,7 @@ func (m *UI) appendSessionMessage(msg message.Message) tea.Cmd {
12671355 return nil
12681356 }
12691357 m.lastUserMessageTime = msg.CreatedAt
1270− items := chat.ExtractMessageItems(m.com.Styles, &msg, nil)
1358+ items := chat.ExtractMessageItems(m.com.Styles, &msg, nil, m.com.Config().Options.TUI.DiffTool)
12711359 for _, item := range items {
12721360 if animatable, ok := item.(chat.Animatable); ok {
12731361 if cmd := animatable.StartAnimation(); cmd != nil {
@@ -1280,7 +1368,7 @@ func (m *UI) appendSessionMessage(msg message.Message) tea.Cmd {
12801368 cmds = append(cmds, cmd)
12811369 }
12821370 case message.Assistant:
1283− items := chat.ExtractMessageItems(m.com.Styles, &msg, nil)
1371+ items := chat.ExtractMessageItems(m.com.Styles, &msg, nil, m.com.Config().Options.TUI.DiffTool)
12841372 for _, item := range items {
12851373 if animatable, ok := item.(chat.Animatable); ok {
12861374 if cmd := animatable.StartAnimation(); cmd != nil {
@@ -1389,7 +1477,7 @@ func (m *UI) updateSessionMessage(msg message.Message) tea.Cmd {
13891477 }
13901478 }
13911479 if existingToolItem == nil {
1392− items = append(items, chat.NewToolMessageItem(m.com.Styles, msg.ID, tc, nil, false))
1480+ items = append(items, chat.NewToolMessageItem(m.com.Styles, msg.ID, tc, nil, false, m.com.Config().Options.TUI.DiffTool))
13931481 }
13941482 }
13951483
@@ -1430,18 +1518,13 @@ func (m *UI) handleChildSessionMessage(event pubsub.Event[message.Message]) tea.
14301518
14311519 // Find the parent agent tool item.
14321520 var agentItem chat.NestedToolContainer
1433− for i := 0; i < m.chat.Len(); i++ {
1434− item := m.chat.MessageItem(toolCallID)
1435− if item == nil {
1436− continue
1437− }
1521+ if item := m.chat.MessageItem(toolCallID); item != nil {
14381522 if agent, ok := item.(chat.NestedToolContainer); ok {
14391523 if toolMessageItem, ok := item.(chat.ToolMessageItem); ok {
14401524 if toolMessageItem.ToolCall().ID == toolCallID {
14411525 // Verify this agent belongs to the correct parent message.
14421526 // We can't directly check parentMessageID on the item, so we trust the session parsing.
14431527 agentItem = agent
1444− break
14451528 }
14461529 }
14471530 }
@@ -1466,7 +1549,7 @@ func (m *UI) handleChildSessionMessage(event pubsub.Event[message.Message]) tea.
14661549 }
14671550 if !found {
14681551 // Create a new nested tool item.
1469− nestedItem := chat.NewToolMessageItem(m.com.Styles, event.Payload.ID, tc, nil, false)
1552+ nestedItem := chat.NewToolMessageItem(m.com.Styles, event.Payload.ID, tc, nil, false, m.com.Config().Options.TUI.DiffTool)
14701553 if simplifiable, ok := nestedItem.(chat.Compactable); ok {
14711554 simplifiable.SetCompact(true)
14721555 }
@@ -1587,7 +1670,7 @@ func (m *UI) handleDialogMsg(msg tea.Msg) tea.Cmd {
15871670 break
15881671 }
15891672 cmds = append(cmds, func() tea.Msg {
1590− err := m.com.Workspace.AgentSummarize(context.Background(), msg.SessionID)
1673+ err := m.com.Workspace.AgentSummarize(m.ctx, msg.SessionID)
15911674 if err != nil {
15921675 return util.ReportError(err)()
15931676 }
@@ -1633,7 +1716,9 @@ func (m *UI) handleDialogMsg(msg tea.Msg) tea.Cmd {
16331716 if err := m.com.Workspace.UpdatePreferredModel(config.ScopeGlobal, agentCfg.Model, currentModel); err != nil {
16341717 return util.ReportError(err)()
16351718 }
1636− m.com.Workspace.UpdateAgentModel(context.TODO())
1719+ if err := m.com.Workspace.UpdateAgentModel(m.ctx); err != nil {
1720+ slog.Warn("failed to update agent model", "error", err)
1721+ }
16371722 status := "disabled"
16381723 if currentModel.Think {
16391724 status = "enabled"
@@ -1672,7 +1757,7 @@ func (m *UI) handleDialogMsg(msg tea.Msg) tea.Cmd {
16721757 cmds = append(cmds, m.disableDockerMCP)
16731758 case dialog.ActionInitializeProject:
16741759 if m.isAgentBusy() {
1675− cmds = append(cmds, util.ReportWarn("Agent is busy, please wait before summarizing session..."))
1760+ cmds = append(cmds, util.ReportWarn("Agent is busy, please wait before initializing project..."))
16761761 break
16771762 }
16781763 cmds = append(cmds, m.initializeProject())
@@ -1708,7 +1793,9 @@ func (m *UI) handleDialogMsg(msg tea.Msg) tea.Cmd {
17081793 }
17091794
17101795 cmds = append(cmds, func() tea.Msg {
1711− m.com.Workspace.UpdateAgentModel(context.TODO())
1796+ if err := m.com.Workspace.UpdateAgentModel(m.ctx); err != nil {
1797+ slog.Warn("failed to update agent model", "error", err)
1798+ }
17121799 return util.NewInfoMsg("Reasoning effort set to " + msg.Effort)
17131800 })
17141801 m.dialog.CloseDialog(dialog.ReasoningID)
@@ -1799,7 +1886,7 @@ func substituteArgs(content string, args map[string]string) string {
17991886// OAuth dialog opens.
18001887func (m *UI) refreshHyperAndRetrySelect(msg dialog.ActionSelectModel) tea.Cmd {
18011888 return func() tea.Msg {
1802− ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
1889+ ctx, cancel := context.WithTimeout(m.ctx, 15*time.Second)
18031890 defer cancel()
18041891 if err := m.com.Workspace.RefreshOAuthToken(ctx, config.ScopeGlobal, "hyper"); err != nil {
18051892 slog.Warn("Hyper OAuth refresh failed, requesting re-auth", "error", err)
@@ -1834,7 +1921,7 @@ func (m *UI) fetchHyperCredits() tea.Cmd {
18341921 }
18351922
18361923 if providerCfg.OAuthToken != nil && providerCfg.OAuthToken.IsExpired() {
1837− ctxRefresh, cancelRefresh := context.WithTimeout(context.Background(), 15*time.Second)
1924+ ctxRefresh, cancelRefresh := context.WithTimeout(m.ctx, 15*time.Second)
18381925 defer cancelRefresh()
18391926 if err := m.com.Workspace.RefreshOAuthToken(ctxRefresh, config.ScopeGlobal, hyper.Name); err != nil {
18401927 slog.Warn("Hyper OAuth refresh failed before fetching credits, trying with existing token", "error", err)
@@ -1843,7 +1930,7 @@ func (m *UI) fetchHyperCredits() tea.Cmd {
18431930 }
18441931 }
18451932
1846− ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
1933+ ctx, cancel := context.WithTimeout(m.ctx, 10*time.Second)
18471934 defer cancel()
18481935 credits, err := hyper.FetchCredits(ctx, apiKey)
18491936 if err != nil {
@@ -1919,7 +2006,7 @@ func (m *UI) handleSelectModel(msg dialog.ActionSelectModel) tea.Cmd {
19192006 }
19202007
19212008 cmds = append(cmds, func() tea.Msg {
1922− if err := m.com.Workspace.UpdateAgentModel(context.TODO()); err != nil {
2009+ if err := m.com.Workspace.UpdateAgentModel(m.ctx); err != nil {
19232010 return util.ReportError(err)
19242011 }
19252012
@@ -1942,7 +2029,7 @@ func (m *UI) handleSelectModel(msg dialog.ActionSelectModel) tea.Cmd {
19422029 if isOnboarding {
19432030 m.setState(uiLanding, uiFocusEditor)
19442031 m.com.Config().SetupAgents()
1945− if err := m.com.Workspace.InitCoderAgent(context.TODO()); err != nil {
2032+ if err := m.com.Workspace.InitCoderAgent(m.ctx); err != nil {
19462033 cmds = append(cmds, util.ReportError(err))
19472034 }
19482035 } else if m.com.IsHyper() {
@@ -2044,6 +2131,12 @@ func (m *UI) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
20442131 }
20452132 cmds = append(cmds, util.ReportInfo("Yolo mode "+status))
20462133 return true
2134+ case key.Matches(msg, m.keyMap.CopyError):
2135+ if m.lastError == "" {
2136+ return false
2137+ }
2138+ cmds = append(cmds, common.CopyToClipboard(m.lastError, "Error copied to clipboard"))
2139+ return true
20472140 }
20482141 return false
20492142 }
@@ -2410,6 +2503,13 @@ func (m *UI) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
24102503
24112504// drawHeader draws the header section of the UI.
24122505func (m *UI) drawHeader(scr uv.Screen, area uv.Rectangle) {
2506+ // Sum diagnostics from the local LSP mirror instead of an
2507+ // LSPGetStates RPC per frame; m.lspStates is refreshed on every LSP
2508+ // event, so the total changes exactly when the header would.
2509+ lspErrorCount := 0
2510+ for _, info := range m.lspStates {
2511+ lspErrorCount += info.DiagnosticCount
2512+ }
24132513 m.header.drawHeader(
24142514 scr,
24152515 area,
@@ -2418,6 +2518,7 @@ func (m *UI) drawHeader(scr uv.Screen, area uv.Rectangle) {
24182518 m.detailsOpen,
24192519 area.Dx(),
24202520 m.hyperCredits,
2521+ lspErrorCount,
24212522 )
24222523}
24232524
@@ -2469,8 +2570,8 @@ func (m *UI) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
24692570 }
24702571
24712572 m.chat.Draw(scr, layout.main)
2472− if layout.pills.Dy() > 0 && m.pillsView != "" {
2473− uv.NewStyledString(m.pillsView).Draw(scr, layout.pills)
2573+ if layout.pills.Dy() > 0 && m.renderCache.pillsView != "" {
2574+ uv.NewStyledString(m.renderCache.pillsView).Draw(scr, layout.pills)
24742575 }
24752576
24762577 editorWidth := scr.Bounds().Dx()
@@ -2564,16 +2665,36 @@ func (m *UI) View() tea.View {
25642665 canvas := uv.NewScreenBuffer(m.width, m.height)
25652666 v.Cursor = m.Draw(canvas, canvas.Bounds())
25662667
2567− content := strings.ReplaceAll(canvas.Render(), "\r\n", "\n") // normalize newlines
2568− contentLines := strings.Split(content, "\n")
2569− for i, line := range contentLines {
2570− // Trim trailing spaces for concise rendering
2571− contentLines[i] = strings.TrimRight(line, " ")
2668+ // Single pass over the rendered screen: normalize \r\n → \n and trim
2669+ // trailing spaces per line, writing straight into one builder instead
2670+ // of allocating a replaced copy, a line slice, and a joined copy.
2671+ rendered := canvas.Render()
2672+ var sb strings.Builder
2673+ sb.Grow(len(rendered))
2674+ start := 0
2675+ for i := 0; i <= len(rendered); i++ {
2676+ if i < len(rendered) && rendered[i] != '\n' {
2677+ continue
2678+ }
2679+ line := rendered[start:i]
2680+ // Drop a single trailing '\r' immediately before the newline
2681+ // (the \r\n → \n normalization).
2682+ if len(line) > 0 && line[len(line)-1] == '\r' {
2683+ line = line[:len(line)-1]
2684+ }
2685+ // Trim trailing spaces only (matches strings.TrimRight(line, " ")).
2686+ end := len(line)
2687+ for end > 0 && line[end-1] == ' ' {
2688+ end--
2689+ }
2690+ sb.WriteString(line[:end])
2691+ if i < len(rendered) {
2692+ sb.WriteByte('\n')
2693+ }
2694+ start = i + 1
25722695 }
25732696
2574− content = strings.Join(contentLines, "\n")
2575−
2576− v.Content = content
2697+ v.Content = sb.String()
25772698 if m.progressBarEnabled && m.sendProgressBar && m.isAgentBusy() {
25782699 // HACK: use a random percentage to prevent ghostty from hiding it
25792700 // after a timeout.
@@ -2627,6 +2748,9 @@ func (m *UI) ShortHelp() []key.Binding {
26272748 binds,
26282749 k.Editor.Newline,
26292750 )
2751+ if m.textarea.Value() == "" {
2752+ binds = append(binds, k.Editor.ShellCommand)
2753+ }
26302754 case uiFocusMain:
26312755 binds = append(
26322756 binds,
@@ -2640,8 +2764,16 @@ func (m *UI) ShortHelp() []key.Binding {
26402764 binds = append(binds, k.Chat.PillLeft)
26412765 }
26422766 }
2767+ case uiLanding:
2768+ binds = append(
2769+ binds,
2770+ tab,
2771+ commands,
2772+ k.Models,
2773+ k.Editor.Newline,
2774+ k.Chat.NewSession,
2775+ )
26432776 default:
2644− // TODO: other states
26452777 // if m.session == nil {
26462778 // no session selected
26472779 binds = append(
@@ -2652,6 +2784,10 @@ func (m *UI) ShortHelp() []key.Binding {
26522784 )
26532785 }
26542786
2787+ if m.lastError != "" {
2788+ binds = append(binds, k.CopyError)
2789+ }
2790+
26552791 binds = append(
26562792 binds,
26572793 k.Quit,
@@ -2724,6 +2860,9 @@ func (m *UI) FullHelp() [][]key.Binding {
27242860 if m.currentModelSupportsImages() {
27252861 editorBinds = append(editorBinds, k.Editor.AddImage, k.Editor.PasteImage)
27262862 }
2863+ if m.textarea.Value() == "" {
2864+ editorBinds = append(editorBinds, k.Editor.ShellCommand)
2865+ }
27272866 binds = append(binds, editorBinds)
27282867 if hasAttachments {
27292868 binds = append(
@@ -2759,6 +2898,38 @@ func (m *UI) FullHelp() [][]key.Binding {
27592898 binds = append(binds, []key.Binding{k.Chat.PillLeft})
27602899 }
27612900 }
2901+ case uiLanding:
2902+ binds = append(
2903+ binds,
2904+ []key.Binding{
2905+ commands,
2906+ k.Models,
2907+ k.Sessions,
2908+ k.ToggleYolo,
2909+ },
2910+ )
2911+ editorBinds := []key.Binding{
2912+ k.Editor.Newline,
2913+ k.Editor.MentionFile,
2914+ k.Editor.OpenEditor,
2915+ }
2916+ if m.currentModelSupportsImages() {
2917+ editorBinds = append(editorBinds, k.Editor.AddImage, k.Editor.PasteImage)
2918+ }
2919+ if m.textarea.Value() == "" {
2920+ editorBinds = append(editorBinds, k.Editor.ShellCommand)
2921+ }
2922+ binds = append(binds, editorBinds)
2923+ if hasAttachments {
2924+ binds = append(
2925+ binds,
2926+ []key.Binding{
2927+ k.Editor.AttachmentDeleteMode,
2928+ k.Editor.DeleteAllAttachments,
2929+ k.Editor.Escape,
2930+ },
2931+ )
2932+ }
27622933 default:
27632934 if m.session == nil {
27642935 // no session selected
@@ -2779,6 +2950,9 @@ func (m *UI) FullHelp() [][]key.Binding {
27792950 if m.currentModelSupportsImages() {
27802951 editorBinds = append(editorBinds, k.Editor.AddImage, k.Editor.PasteImage)
27812952 }
2953+ if m.textarea.Value() == "" {
2954+ editorBinds = append(editorBinds, k.Editor.ShellCommand)
2955+ }
27822956 binds = append(binds, editorBinds)
27832957 if hasAttachments {
27842958 binds = append(
@@ -2793,13 +2967,11 @@ func (m *UI) FullHelp() [][]key.Binding {
27932967 }
27942968 }
27952969
2796− binds = append(
2797− binds,
2798− []key.Binding{
2799− help,
2800− k.Quit,
2801− },
2802− )
2970+ lastRow := []key.Binding{help, k.Quit}
2971+ if m.lastError != "" {
2972+ lastRow = append([]key.Binding{k.CopyError}, lastRow...)
2973+ }
2974+ binds = append(binds, lastRow)
28032975
28042976 return binds
28052977}
@@ -2945,7 +3117,8 @@ func (m *UI) generateLayout(w, h int) uiLayout {
29453117 appRect.Min.X += 1
29463118 appRect.Max.X -= 1
29473119
2948− if slices.Contains([]uiState{uiOnboarding, uiInitialize, uiLanding}, m.state) {
3120+ switch m.state {
3121+ case uiOnboarding, uiInitialize, uiLanding:
29493122 // extra padding on left and right for these states
29503123 appRect.Min.X += 1
29513124 appRect.Max.X -= 1
@@ -3134,8 +3307,9 @@ func (m *UI) openEditor(value string) tea.Cmd {
31343307 return util.ReportError(err)
31353308 }
31363309 tmpPath := tmpfile.Name()
3137− defer tmpfile.Close() //nolint:errcheck
3310+ defer tmpfile.Close()
31383311 if _, err := tmpfile.WriteString(value); err != nil {
3312+ _ = os.Remove(tmpPath)
31393313 return util.ReportError(err)
31403314 }
31413315 cmd, err := editor.Command(
@@ -3147,6 +3321,7 @@ func (m *UI) openEditor(value string) tea.Cmd {
31473321 ),
31483322 )
31493323 if err != nil {
3324+ _ = os.Remove(tmpPath)
31503325 return util.ReportError(err)
31513326 }
31523327 return tea.ExecProcess(cmd, func(err error) tea.Msg {
@@ -3272,9 +3447,9 @@ func (m *UI) insertFileCompletion(path string) tea.Cmd {
32723447
32733448 if m.hasSession() {
32743449 // Skip attachment if file was already read and hasn't been modified.
3275− lastRead := m.com.Workspace.FileTrackerLastReadTime(context.Background(), m.session.ID, absPath)
3450+ lastRead := m.com.Workspace.FileTrackerLastReadTime(m.ctx, m.session.ID, absPath)
32763451 if !lastRead.IsZero() {
3277− if info, err := os.Stat(path); err == nil && !info.ModTime().After(lastRead) {
3452+ if info, err := os.Stat(absPath); err == nil && !info.ModTime().After(lastRead) {
32783453 return nil
32793454 }
32803455 }
@@ -3285,14 +3460,14 @@ func (m *UI) insertFileCompletion(path string) tea.Cmd {
32853460 m.sessionFileReads = append(m.sessionFileReads, absPath)
32863461
32873462 // Add file as attachment.
3288− content, err := os.ReadFile(path)
3463+ content, err := os.ReadFile(absPath)
32893464 if err != nil {
32903465 // If it fails, let the LLM handle it later.
32913466 return nil
32923467 }
32933468
32943469 return message.Attachment{
3295− FilePath: path,
3470+ FilePath: absPath,
32963471 FileName: filepath.Base(path),
32973472 MimeType: mimeOf(content),
32983473 Content: content,
@@ -3314,7 +3489,7 @@ func (m *UI) insertMCPResourceCompletion(item completions.ResourceCompletionValu
33143489
33153490 resourceCmd := func() tea.Msg {
33163491 contents, err := m.com.Workspace.ReadMCPResource(
3317− context.Background(),
3492+ m.ctx,
33183493 item.MCPName,
33193494 item.URI,
33203495 )
@@ -3449,12 +3624,40 @@ func (m *UI) cacheSidebarLogo(width int) {
34493624// invalidating the markdown renderer cache and re-rendering the entire
34503625// transcript for no visible change.
34513626func (m *UI) applyThemeForProvider(providerID string) {
3452− key := styles.ThemeKeyForProvider(providerID)
3627+ dark := m.effectiveDark()
3628+ key := styles.ThemeKeyForProviderMode(providerID, dark)
34533629 if key == m.themeKey {
34543630 return
34553631 }
34563632 m.themeKey = key
3457− m.applyTheme(styles.ThemeForProvider(providerID))
3633+ m.applyTheme(styles.ThemeForProviderMode(providerID, dark))
3634+}
3635+
3636+// effectiveDark reports whether the dark palette should be used. A "dark"
3637+// or "light" theme setting forces the mode; "auto" (the default) follows
3638+// the detected terminal background (m.dark).
3639+func (m *UI) effectiveDark() bool {
3640+ if cfg := m.com.Config(); cfg != nil && cfg.Options != nil && cfg.Options.TUI != nil {
3641+ switch cfg.Options.TUI.Theme {
3642+ case "light":
3643+ return false
3644+ case "dark":
3645+ return true
3646+ }
3647+ }
3648+ return m.dark
3649+}
3650+
3651+// reconcileTheme re-selects the active theme for the current large-model
3652+// provider and background mode, applying it only when it differs from the
3653+// theme already in effect. It is safe to call on every background-color or
3654+// window-size event.
3655+func (m *UI) reconcileTheme() {
3656+ providerID := ""
3657+ if cfg := m.com.Config(); cfg != nil {
3658+ providerID = cfg.Models[config.SelectedModelTypeLarge].Provider
3659+ }
3660+ m.applyThemeForProvider(providerID)
34583661}
34593662
34603663// applyTheme replaces the active styles with the given theme, drops the
@@ -3495,7 +3698,7 @@ func (m *UI) refreshStyles() {
34953698// return one.
34963699func (m *UI) attachSkill(skillID, name string) tea.Cmd {
34973700 return func() tea.Msg {
3498− content, result, err := m.com.Workspace.ReadSkill(context.Background(), skillID)
3701+ content, result, err := m.com.Workspace.ReadSkill(m.ctx, skillID)
34993702 if err != nil {
35003703 return util.NewErrorMsg(err)
35013704 }
@@ -3520,7 +3723,7 @@ func (m *UI) sendMessage(content string, attachments ...message.Attachment) tea.
35203723
35213724 var cmds []tea.Cmd
35223725 if !m.hasSession() {
3523− newSession, err := m.com.Workspace.CreateSession(context.Background(), "New Session")
3726+ newSession, err := m.com.Workspace.CreateSession(m.ctx, "New Session")
35243727 if err != nil {
35253728 return util.ReportError(err)
35263729 }
@@ -3534,7 +3737,7 @@ func (m *UI) sendMessage(content string, attachments ...message.Attachment) tea.
35343737 m.setState(uiChat, m.focus)
35353738 }
35363739
3537− ctx := context.Background()
3740+ ctx := m.ctx
35383741 cmds = append(cmds, func() tea.Msg {
35393742 for _, path := range m.sessionFileReads {
35403743 m.com.Workspace.FileTrackerRecordRead(ctx, m.session.ID, path)
@@ -3550,7 +3753,7 @@ func (m *UI) sendMessage(content string, attachments ...message.Attachment) tea.
35503753 // been accepted (HTTP 202) or synchronously with a validation
35513754 // or transport error. Run failures and cancellation surface
35523755 // through SSE-derived events, not this return value.
3553− err := m.com.Workspace.AgentRun(context.Background(), sessionID, content, attachments...)
3756+ err := m.com.Workspace.AgentRun(m.ctx, sessionID, content, attachments...)
35543757 if err != nil {
35553758 return util.InfoMsg{
35563759 Type: util.InfoTypeError,
@@ -3574,7 +3777,7 @@ func (m *UI) runShellCommand(command string) tea.Cmd {
35743777func (m *UI) runShellCommandInternal(command string, isFirstMessage bool) tea.Cmd {
35753778 var cmds []tea.Cmd
35763779 if !m.hasSession() {
3577− newSession, err := m.com.Workspace.CreateSession(context.Background(), "New Session")
3780+ newSession, err := m.com.Workspace.CreateSession(m.ctx, "New Session")
35783781 if err != nil {
35793782 return util.ReportError(err)
35803783 }
@@ -3627,7 +3830,7 @@ func (m *UI) runShellCommandInternal(command string, isFirstMessage bool) tea.Cm
36273830 return shellStreamMsg{PendingID: pendingID, Chunk: chunk, streamCh: streamCh}
36283831 })
36293832
3630− ctx, cancel := context.WithCancel(context.Background())
3833+ ctx, cancel := context.WithCancel(m.ctx)
36313834 m.bangCancel = cancel
36323835
36333836 cmds = append(cmds, func() tea.Msg {
@@ -3914,8 +4117,8 @@ func (m *UI) handleAgentNotification(n notify.Notification) tea.Cmd {
39144117 case notify.TypeAgentFinished:
39154118 var cmds []tea.Cmd
39164119 cmds = append(cmds, m.sendNotification(notification.Notification{
3917− Title: "Crush is waiting...",
3918− Message: fmt.Sprintf("Agent's turn completed in \"%s\"", n.SessionTitle),
4120+ Title: "Crush finished",
4121+ Message: fmt.Sprintf("Turn complete — %s", n.SessionTitle),
39194122 }))
39204123 if m.com.IsHyper() {
39214124 cmds = append(cmds, m.fetchHyperCredits())
@@ -3962,14 +4165,14 @@ func (m *UI) newSession() tea.Cmd {
39624165 m.pillsExpanded = false
39634166 m.pillsAutoExpanded = false
39644167 m.promptQueue = 0
3965− m.pillsView = ""
3966− m.pillsCacheKey = ""
3967− m.hasSidebarCache = false
4168+ m.renderCache.pillsView = ""
4169+ m.renderCache.pillsCacheKey = ""
4170+ m.renderCache.hasSidebarCache = false
39684171 m.historyReset()
39694172 agenttools.ResetCache()
39704173 return tea.Batch(
39714174 func() tea.Msg {
3972− m.com.Workspace.LSPStopAll(context.Background())
4175+ m.com.Workspace.LSPStopAll(m.ctx)
39734176 return nil
39744177 },
39754178 m.loadPromptHistory(),
@@ -4264,8 +4467,7 @@ func (m *UI) runMCPPrompt(clientID, promptID string, arguments map[string]string
42644467 load := func() tea.Msg {
42654468 prompt, err := m.com.Workspace.GetMCPPrompt(clientID, promptID, arguments)
42664469 if err != nil {
4267− // TODO: make this better
4268− return util.ReportError(err)()
4470+ return util.ReportError(fmt.Errorf("failed to load MCP prompt %q from %q: %w", promptID, clientID, err))()
42694471 }
42704472
42714473 if prompt == "" {
@@ -4289,7 +4491,9 @@ func (m *UI) runMCPPrompt(clientID, promptID string, arguments map[string]string
42894491
42904492func (m *UI) handleStateChanged() tea.Cmd {
42914493 return func() tea.Msg {
4292− m.com.Workspace.UpdateAgentModel(context.Background())
4494+ if err := m.com.Workspace.UpdateAgentModel(m.ctx); err != nil {
4495+ slog.Warn("failed to update agent model", "error", err)
4496+ }
42934497 return mcpStateChangedMsg{
42944498 states: m.com.Workspace.MCPGetStates(),
42954499 }
@@ -4330,7 +4534,7 @@ func (m *UI) copyChatHighlight() tea.Cmd {
43304534}
43314535
43324536func (m *UI) enableDockerMCP() tea.Msg {
4333− ctx := context.Background()
4537+ ctx := m.ctx
43344538 if err := m.com.Workspace.EnableDockerMCP(ctx); err != nil {
43354539 return util.ReportError(err)()
43364540 }
internal/ui/styles/grad.go+49
@@ -2,13 +2,52 @@ package styles
22
33import (
44 "fmt"
5+ "hash/fnv"
56 "image/color"
67 "strings"
8+ "sync"
79
810 "charm.land/lipgloss/v2"
911 "github.com/rivo/uniseg"
1012)
1113
14+// gradCache memoizes the per-cluster rendered output of ForegroundGrad. The
15+// function walks grapheme clusters (uniseg), blends a color ramp and renders
16+// each cluster on every call, and it is invoked every frame by dialog titles
17+// and similar constant text. Results are keyed by a fingerprint of every input
18+// that affects the output.
19+var gradCache sync.Map // map[uint64][]string
20+
21+// gradKey derives a stable cache key from all inputs that affect the rendered
22+// gradient output.
23+func gradKey(base lipgloss.Style, input string, bold bool, color1, color2 color.Color) uint64 {
24+ h := fnv.New64a()
25+ h.Write([]byte(input))
26+ h.Write([]byte{0})
27+ writeColor := func(c color.Color) {
28+ var buf [8]byte
29+ if c != nil {
30+ r, g, b, a := c.RGBA()
31+ buf[0] = byte(r >> 8)
32+ buf[1] = byte(g >> 8)
33+ buf[2] = byte(b >> 8)
34+ buf[3] = byte(a >> 8)
35+ }
36+ h.Write(buf[:4])
37+ }
38+ writeColor(color1)
39+ writeColor(color2)
40+ if bold {
41+ h.Write([]byte{1})
42+ } else {
43+ h.Write([]byte{0})
44+ }
45+ // base carries the remaining style attributes (e.g. background); include a
46+ // fingerprint so distinct bases never collide.
47+ fmt.Fprintf(h, "%v", base)
48+ return h.Sum64()
49+}
50+
1251// ForegroundGrad returns a slice of strings representing the input string
1352// rendered with a horizontal gradient foreground from color1 to color2. Each
1453// string in the returned slice corresponds to a grapheme cluster in the input
@@ -17,6 +56,16 @@ func ForegroundGrad(base lipgloss.Style, input string, bold bool, color1, color2
1756 if input == "" {
1857 return []string{""}
1958 }
59+ key := gradKey(base, input, bold, color1, color2)
60+ if cached, ok := gradCache.Load(key); ok {
61+ return cached.([]string)
62+ }
63+ result := foregroundGrad(base, input, bold, color1, color2)
64+ gradCache.Store(key, result)
65+ return result
66+}
67+
68+func foregroundGrad(base lipgloss.Style, input string, bold bool, color1, color2 color.Color) []string {
2069 if len(input) == 1 {
2170 style := base.Foreground(color1)
2271 if bold {
internal/ui/styles/quickstyle.go+7−21
@@ -550,26 +550,12 @@ func quickStyle(o quickStyleOpts) Styles {
550550 Foreground(o.fgMoreSubtle).
551551 Background(o.bgBase),
552552 },
553− InsertLine: diffview.LineStyle{
554− LineNumber: lipgloss.NewStyle().
555− Foreground(lipgloss.Color("#629657")).
556− Background(lipgloss.Color("#2b322a")),
557− Symbol: lipgloss.NewStyle().
558− Foreground(lipgloss.Color("#629657")).
559− Background(lipgloss.Color("#323931")),
560− Code: lipgloss.NewStyle().
561− Background(lipgloss.Color("#323931")),
562− },
563− DeleteLine: diffview.LineStyle{
564− LineNumber: lipgloss.NewStyle().
565− Foreground(lipgloss.Color("#a45c59")).
566− Background(lipgloss.Color("#312929")),
567− Symbol: lipgloss.NewStyle().
568− Foreground(lipgloss.Color("#a45c59")).
569− Background(lipgloss.Color("#383030")),
570− Code: lipgloss.NewStyle().
571− Background(lipgloss.Color("#383030")),
572− },
553+ // Insert/delete colors are derived from the semantic palette (green
554+ // for inserts, red for deletes) washed over the base background, so a
555+ // future light theme adapts without hardcoded hex. Code foreground is
556+ // left unset to inherit the syntax highlighting.
557+ InsertLine: diffview.ChangeLineStyle(o.success, o.bgBase, nil),
558+ DeleteLine: diffview.ChangeLineStyle(o.error, o.bgBase, nil),
573559 Filename: diffview.LineStyle{
574560 LineNumber: lipgloss.NewStyle().
575561 Foreground(o.fgSubtle).
@@ -618,7 +604,7 @@ func quickStyle(o quickStyleOpts) Styles {
618604 s.Tool.IconPending = base.Foreground(o.successMostSubtle).SetString(ToolPending)
619605 s.Tool.IconSuccess = base.Foreground(o.success).SetString(ToolSuccess)
620606 s.Tool.IconError = base.Foreground(o.error).SetString(ToolError)
621− s.Tool.IconCancelled = muted.SetString(ToolPending)
607+ s.Tool.IconCancelled = muted.SetString(ToolCancelled)
622608
623609 s.Tool.NameNormal = base.Foreground(o.info)
624610 s.Tool.NameNested = base.Foreground(o.info)
internal/ui/styles/styles.go+4−3
@@ -25,9 +25,10 @@ const (
2525
2626 ArrowRightIcon string = "→"
2727
28− ToolPending string = "●"
29− ToolSuccess string = "✓"
30− ToolError string = "×"
28+ ToolPending string = "●"
29+ ToolSuccess string = "✓"
30+ ToolError string = "×"
31+ ToolCancelled string = "⊘"
3132
3233 RadioOn string = "◉"
3334 RadioOff string = "○"
internal/ui/styles/themes.go+131−12
@@ -19,22 +19,76 @@ func ThemeKeyForProvider(providerID string) string {
1919 }
2020}
2121
22−// ThemeForProvider returns the Styles associated with the given provider
23−// ID. Unknown or empty provider IDs yield the default Charmtone Pantera
24−// theme.
22+// ThemeForProvider returns the dark Styles associated with the given
23+// provider ID. Unknown or empty provider IDs yield the default Charmtone
24+// Pantera theme. Retained for callers that always want the dark theme
25+// (e.g. the non-interactive CLI); the interactive TUI uses the
26+// background-aware [ThemeForProviderMode].
2527func ThemeForProvider(providerID string) Styles {
28+ return ThemeForProviderMode(providerID, true)
29+}
30+
31+// ThemeKeyForProviderMode returns a stable identifier for the theme
32+// associated with the given provider ID and background mode (dark/light).
33+// The key incorporates the mode so callers can detect when a background
34+// change would actually alter the active theme and skip the rebuild
35+// otherwise.
36+func ThemeKeyForProviderMode(providerID string, dark bool) string {
37+ base := ThemeKeyForProvider(providerID)
38+ if dark {
39+ return base + "-dark"
40+ }
41+ return base + "-light"
42+}
43+
44+// ThemeForProviderMode returns the Styles for the given provider ID in the
45+// requested background mode. When dark is false a light-background palette
46+// is returned so the UI stays legible on light terminals.
47+func ThemeForProviderMode(providerID string, dark bool) Styles {
2648 switch ThemeKeyForProvider(providerID) {
2749 case "hyper":
28− return HypercrushObsidiana()
50+ if dark {
51+ return HypercrushObsidiana()
52+ }
53+ return HypercrushLatte()
2954 default:
30− return CharmtonePantera()
55+ if dark {
56+ return CharmtonePantera()
57+ }
58+ return CharmtoneLatte()
3159 }
3260}
3361
3462// CharmtonePantera returns the Charmtone dark theme. It's the default style
3563// for the UI.
3664func CharmtonePantera() Styles {
37− s := quickStyle(quickStyleOpts{
65+ return buildCharmtone(charmtoneDarkOpts())
66+}
67+
68+// CharmtoneLatte returns the Charmtone light theme, used on light-background
69+// terminals. It mirrors the dark theme's structure but inverts the neutral
70+// ramp and swaps the neon accent/semantic colors for darker shades that stay
71+// legible on a light background.
72+//
73+// NOTE: this palette is a first pass tuned by hand; the exact accent/semantic
74+// color choices are worth a visual review on real light terminals.
75+func CharmtoneLatte() Styles {
76+ return buildCharmtone(charmtoneLightOpts())
77+}
78+
79+// HypercrushObsidiana returns the Hypercrush dark theme.
80+func HypercrushObsidiana() Styles {
81+ return CharmtonePantera()
82+}
83+
84+// HypercrushLatte returns the Hypercrush light theme.
85+func HypercrushLatte() Styles {
86+ return CharmtoneLatte()
87+}
88+
89+// charmtoneDarkOpts returns the color options for the Charmtone dark theme.
90+func charmtoneDarkOpts() quickStyleOpts {
91+ return quickStyleOpts{
3892 primary: charmtone.Charple,
3993 secondary: charmtone.Dolly,
4094 accent: charmtone.Bok,
@@ -86,7 +140,77 @@ func CharmtonePantera() Styles {
86140 ansiBrightMagenta: charmtone.Blush,
87141 ansiBrightCyan: charmtone.Sardine,
88142 ansiBrightWhite: charmtone.Salt,
89− })
143+ }
144+}
145+
146+// charmtoneLightOpts returns the color options for the Charmtone light theme.
147+// The neutral ramp is inverted (light backgrounds, dark foregrounds) and the
148+// neon accents/semantics from the dark theme are replaced with darker,
149+// higher-contrast shades so text stays readable on a light background.
150+func charmtoneLightOpts() quickStyleOpts {
151+ return quickStyleOpts{
152+ primary: charmtone.Charple, // saturated purple reads on white
153+ secondary: charmtone.Grape,
154+ accent: charmtone.Zinc,
155+ keyword: charmtone.Prince,
156+
157+ // Foregrounds: dark on light, decreasing visibility.
158+ fgBase: charmtone.Pepper,
159+ fgSubtle: charmtone.Iron,
160+ fgMoreSubtle: charmtone.Oyster,
161+ fgMostSubtle: charmtone.Steam,
162+
163+ onPrimary: charmtone.Butter, // light text on the purple primary
164+
165+ // Backgrounds: light base, increasingly visible (darker) greys.
166+ bgBase: charmtone.Salt,
167+ bgLeastVisible: charmtone.Sash,
168+ bgLessVisible: charmtone.Steep,
169+ bgMostVisible: charmtone.Smoke,
170+
171+ separator: charmtone.Steep,
172+
173+ destructive: charmtone.Coral,
174+ error: charmtone.Sriracha,
175+ warningSubtle: charmtone.Yam,
176+ warning: charmtone.Tang,
177+ denied: charmtone.Paprika,
178+ busy: charmtone.Cumin,
179+ info: charmtone.Damson,
180+ infoMoreSubtle: charmtone.Malibu,
181+ infoMostSubtle: charmtone.Anchovy,
182+ success: charmtone.Pickle,
183+ successMoreSubtle: charmtone.Guac,
184+ successMostSubtle: charmtone.Zinc,
185+
186+ // ANSI 16-color palette tuned for legibility on a light background:
187+ // normal colors are darker/saturated, brights slightly lighter.
188+ ansiBlack: charmtone.Pepper,
189+ ansiRed: charmtone.Pom,
190+ ansiGreen: charmtone.Pickle,
191+ ansiYellow: charmtone.Cumin,
192+ ansiBlue: charmtone.Oceania,
193+ ansiMagenta: charmtone.Grape,
194+ ansiCyan: charmtone.Damson,
195+ ansiWhite: charmtone.Oyster,
196+
197+ ansiBrightBlack: charmtone.Steam,
198+ ansiBrightRed: charmtone.Sriracha,
199+ ansiBrightGreen: charmtone.Guac,
200+ ansiBrightYellow: charmtone.Tang,
201+ ansiBrightBlue: charmtone.Sapphire,
202+ ansiBrightMagenta: charmtone.Urchin,
203+ ansiBrightCyan: charmtone.Zinc,
204+ ansiBrightWhite: charmtone.Iron,
205+ }
206+}
207+
208+// buildCharmtone builds a Styles value from the given color options and
209+// applies the shared bang-prompt and shell-bar accent overrides. These
210+// overrides use saturated purple accents that read on both light and dark
211+// backgrounds.
212+func buildCharmtone(opts quickStyleOpts) Styles {
213+ s := quickStyle(opts)
90214
91215 // Bang ! prompt overrides - use Salt/Hazy/Larple colors.
92216 s.Editor.PromptBangIconFocused = s.Editor.PromptBangIconFocused.
@@ -109,8 +233,3 @@ func CharmtonePantera() Styles {
109233
110234 return s
111235}
112−
113−// HypercrushObsidiana returns the Hypercrush dark theme.
114−func HypercrushObsidiana() Styles {
115− return CharmtonePantera()
116−}
schema.json+10
@@ -748,6 +748,16 @@
748748 ],
749749 "description": "Diff mode for the TUI interface"
750750 },
751+ "theme": {
752+ "type": "string",
753+ "enum": [
754+ "auto",
755+ "dark",
756+ "light"
757+ ],
758+ "description": "TUI color scheme",
759+ "default": "auto"
760+ },
751761 "completions": {
752762 "$ref": "#/$defs/Completions",
753763 "description": "Completions UI options"
vendor/charm.land/bubbles/v2/LICENSEnew file+21
@@ -0,0 +1,21 @@
1+MIT License
2+
3+Copyright (c) 2020-2026 Charmbracelet, Inc.
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+
12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+
15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
vendor/charm.land/bubbles/v2/cursor/cursor.gonew file+241
@@ -0,0 +1,241 @@
1+// Package cursor provides a virtual cursor to support the textinput and
2+// textarea elements.
3+package cursor
4+
5+import (
6+ "context"
7+ "sync/atomic"
8+ "time"
9+
10+ tea "charm.land/bubbletea/v2"
11+ "charm.land/lipgloss/v2"
12+)
13+
14+const defaultBlinkSpeed = time.Millisecond * 530
15+
16+// Internal ID management. Used during animating to ensure that frame messages
17+// are received only by spinner components that sent them.
18+var lastID int64
19+
20+func nextID() int {
21+ return int(atomic.AddInt64(&lastID, 1))
22+}
23+
24+// initialBlinkMsg initializes cursor blinking.
25+type initialBlinkMsg struct{}
26+
27+// BlinkMsg signals that the cursor should blink. It contains metadata that
28+// allows us to tell if the blink message is the one we're expecting.
29+type BlinkMsg struct {
30+ id int
31+ tag int
32+}
33+
34+// blinkCanceled is sent when a blink operation is canceled.
35+type blinkCanceled struct{}
36+
37+// blinkCtx manages cursor blinking.
38+type blinkCtx struct {
39+ ctx context.Context
40+ cancel context.CancelFunc
41+}
42+
43+// Mode describes the behavior of the cursor.
44+type Mode int
45+
46+// Available cursor modes.
47+const (
48+ CursorBlink Mode = iota
49+ CursorStatic
50+ CursorHide
51+)
52+
53+// String returns the cursor mode in a human-readable format. This method is
54+// provisional and for informational purposes only.
55+func (c Mode) String() string {
56+ return [...]string{
57+ "blink",
58+ "static",
59+ "hidden",
60+ }[c]
61+}
62+
63+// Model is the Bubble Tea model for this cursor element.
64+type Model struct {
65+ // Style styles the cursor block.
66+ Style lipgloss.Style
67+
68+ // TextStyle is the style used for the cursor when it is blinking
69+ // (hidden), i.e. displaying normal text.
70+ TextStyle lipgloss.Style
71+
72+ // BlinkSpeed is the speed at which the cursor blinks. This has no effect
73+ // unless [CursorMode] is not set to [CursorBlink].
74+ BlinkSpeed time.Duration
75+
76+ // IsBlinked is the state of the cursor blink. When true, the cursor is
77+ // hidden.
78+ IsBlinked bool
79+
80+ // char is the character under the cursor
81+ char string
82+
83+ // The ID of this Model as it relates to other cursors
84+ id int
85+
86+ // focus indicates whether the containing input is focused
87+ focus bool
88+
89+ // Used to manage cursor blink
90+ blinkCtx *blinkCtx
91+
92+ // The ID of the blink message we're expecting to receive.
93+ blinkTag int
94+
95+ // mode determines the behavior of the cursor
96+ mode Mode
97+}
98+
99+// New creates a new model with default settings.
100+func New() Model {
101+ return Model{
102+ id: nextID(),
103+ BlinkSpeed: defaultBlinkSpeed,
104+ IsBlinked: true,
105+ mode: CursorBlink,
106+
107+ blinkCtx: &blinkCtx{
108+ ctx: context.Background(),
109+ },
110+ }
111+}
112+
113+// Update updates the cursor.
114+func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
115+ switch msg := msg.(type) {
116+ case initialBlinkMsg:
117+ // We accept all initialBlinkMsgs generated by the Blink command.
118+
119+ if m.mode != CursorBlink || !m.focus {
120+ return m, nil
121+ }
122+
123+ cmd := m.Blink()
124+ return m, cmd
125+
126+ case tea.FocusMsg:
127+ return m, m.Focus()
128+
129+ case tea.BlurMsg:
130+ m.Blur()
131+ return m, nil
132+
133+ case BlinkMsg:
134+ // We're choosy about whether to accept blinkMsgs so that our cursor
135+ // only exactly when it should.
136+
137+ // Is this model blink-able?
138+ if m.mode != CursorBlink || !m.focus {
139+ return m, nil
140+ }
141+
142+ // Were we expecting this blink message?
143+ if msg.id != m.id || msg.tag != m.blinkTag {
144+ return m, nil
145+ }
146+
147+ var cmd tea.Cmd
148+ if m.mode == CursorBlink {
149+ m.IsBlinked = !m.IsBlinked
150+ cmd = m.Blink()
151+ }
152+ return m, cmd
153+
154+ case blinkCanceled: // no-op
155+ return m, nil
156+ }
157+ return m, nil
158+}
159+
160+// Mode returns the model's cursor mode. For available cursor modes, see
161+// type Mode.
162+func (m Model) Mode() Mode {
163+ return m.mode
164+}
165+
166+// SetMode sets the model's cursor mode. This method returns a command.
167+//
168+// For available cursor modes, see type CursorMode.
169+func (m *Model) SetMode(mode Mode) tea.Cmd {
170+ // Adjust the mode value if it's value is out of range
171+ if mode < CursorBlink || mode > CursorHide {
172+ return nil
173+ }
174+ m.mode = mode
175+ m.IsBlinked = m.mode == CursorHide || !m.focus
176+ if mode == CursorBlink {
177+ return Blink
178+ }
179+ return nil
180+}
181+
182+// Blink is a command used to manage cursor blinking.
183+func (m *Model) Blink() tea.Cmd {
184+ if m.mode != CursorBlink {
185+ return nil
186+ }
187+
188+ if m.blinkCtx != nil && m.blinkCtx.cancel != nil {
189+ m.blinkCtx.cancel()
190+ }
191+
192+ ctx, cancel := context.WithTimeout(m.blinkCtx.ctx, m.BlinkSpeed)
193+ m.blinkCtx.cancel = cancel
194+
195+ m.blinkTag++
196+ blinkMsg := BlinkMsg{id: m.id, tag: m.blinkTag}
197+
198+ return func() tea.Msg {
199+ defer cancel()
200+ <-ctx.Done()
201+ if ctx.Err() == context.DeadlineExceeded {
202+ return blinkMsg
203+ }
204+ return blinkCanceled{}
205+ }
206+}
207+
208+// Blink is a command used to initialize cursor blinking.
209+func Blink() tea.Msg {
210+ return initialBlinkMsg{}
211+}
212+
213+// Focus focuses the cursor to allow it to blink if desired.
214+func (m *Model) Focus() tea.Cmd {
215+ m.focus = true
216+ m.IsBlinked = m.mode == CursorHide // show the cursor unless we've explicitly hidden it
217+
218+ if m.mode == CursorBlink && m.focus {
219+ return m.Blink()
220+ }
221+ return nil
222+}
223+
224+// Blur blurs the cursor.
225+func (m *Model) Blur() {
226+ m.focus = false
227+ m.IsBlinked = true
228+}
229+
230+// SetChar sets the character under the cursor.
231+func (m *Model) SetChar(char string) {
232+ m.char = char
233+}
234+
235+// View displays the cursor.
236+func (m Model) View() string {
237+ if m.IsBlinked {
238+ return m.TextStyle.Inline(true).Render(m.char)
239+ }
240+ return m.Style.Inline(true).Reverse(true).Render(m.char)
241+}
vendor/charm.land/bubbles/v2/filepicker/filepicker.gonew file+529
@@ -0,0 +1,529 @@
1+// Package filepicker provides a file picker component for Bubble Tea
2+// applications.
3+package filepicker
4+
5+import (
6+ "fmt"
7+ "os"
8+ "path/filepath"
9+ "sort"
10+ "strconv"
11+ "strings"
12+ "sync/atomic"
13+
14+ "charm.land/bubbles/v2/key"
15+ tea "charm.land/bubbletea/v2"
16+ "charm.land/lipgloss/v2"
17+ "github.com/dustin/go-humanize"
18+)
19+
20+var lastID int64
21+
22+func nextID() int {
23+ return int(atomic.AddInt64(&lastID, 1))
24+}
25+
26+// New returns a new filepicker model with default styling and key bindings.
27+func New() Model {
28+ return Model{
29+ id: nextID(),
30+ CurrentDirectory: ".",
31+ Cursor: ">",
32+ AllowedTypes: []string{},
33+ selected: 0,
34+ ShowPermissions: true,
35+ ShowSize: true,
36+ ShowHidden: false,
37+ DirAllowed: false,
38+ FileAllowed: true,
39+ AutoHeight: true,
40+ height: 0,
41+ maxIdx: 0,
42+ minIdx: 0,
43+ selectedStack: newStack(),
44+ minStack: newStack(),
45+ maxStack: newStack(),
46+ KeyMap: DefaultKeyMap(),
47+ Styles: DefaultStyles(),
48+ }
49+}
50+
51+type errorMsg struct {
52+ err error
53+}
54+
55+type readDirMsg struct {
56+ id int
57+ entries []os.DirEntry
58+}
59+
60+const (
61+ marginBottom = 5
62+ fileSizeWidth = 7
63+ paddingLeft = 2
64+)
65+
66+// KeyMap defines key bindings for each user action.
67+type KeyMap struct {
68+ GoToTop key.Binding
69+ GoToLast key.Binding
70+ Down key.Binding
71+ Up key.Binding
72+ PageUp key.Binding
73+ PageDown key.Binding
74+ Back key.Binding
75+ Open key.Binding
76+ Select key.Binding
77+}
78+
79+// DefaultKeyMap defines the default keybindings.
80+func DefaultKeyMap() KeyMap {
81+ return KeyMap{
82+ GoToTop: key.NewBinding(key.WithKeys("g"), key.WithHelp("g", "first")),
83+ GoToLast: key.NewBinding(key.WithKeys("G"), key.WithHelp("G", "last")),
84+ Down: key.NewBinding(key.WithKeys("j", "down", "ctrl+n"), key.WithHelp("j", "down")),
85+ Up: key.NewBinding(key.WithKeys("k", "up", "ctrl+p"), key.WithHelp("k", "up")),
86+ PageUp: key.NewBinding(key.WithKeys("K", "pgup"), key.WithHelp("pgup", "page up")),
87+ PageDown: key.NewBinding(key.WithKeys("J", "pgdown"), key.WithHelp("pgdown", "page down")),
88+ Back: key.NewBinding(key.WithKeys("h", "backspace", "left", "esc"), key.WithHelp("h", "back")),
89+ Open: key.NewBinding(key.WithKeys("l", "right", "enter"), key.WithHelp("l", "open")),
90+ Select: key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "select")),
91+ }
92+}
93+
94+// Styles defines the possible customizations for styles in the file picker.
95+type Styles struct {
96+ DisabledCursor lipgloss.Style
97+ Cursor lipgloss.Style
98+ Symlink lipgloss.Style
99+ Directory lipgloss.Style
100+ File lipgloss.Style
101+ DisabledFile lipgloss.Style
102+ Permission lipgloss.Style
103+ Selected lipgloss.Style
104+ DisabledSelected lipgloss.Style
105+ FileSize lipgloss.Style
106+ EmptyDirectory lipgloss.Style
107+}
108+
109+// DefaultStyles defines the default styling for the file picker.
110+func DefaultStyles() Styles {
111+ return Styles{
112+ DisabledCursor: lipgloss.NewStyle().Foreground(lipgloss.Color("247")),
113+ Cursor: lipgloss.NewStyle().Foreground(lipgloss.Color("212")),
114+ Symlink: lipgloss.NewStyle().Foreground(lipgloss.Color("36")),
115+ Directory: lipgloss.NewStyle().Foreground(lipgloss.Color("99")),
116+ File: lipgloss.NewStyle(),
117+ DisabledFile: lipgloss.NewStyle().Foreground(lipgloss.Color("243")),
118+ DisabledSelected: lipgloss.NewStyle().Foreground(lipgloss.Color("247")),
119+ Permission: lipgloss.NewStyle().Foreground(lipgloss.Color("244")),
120+ Selected: lipgloss.NewStyle().Foreground(lipgloss.Color("212")).Bold(true),
121+ FileSize: lipgloss.NewStyle().Foreground(lipgloss.Color("240")).Width(fileSizeWidth).Align(lipgloss.Right),
122+ EmptyDirectory: lipgloss.NewStyle().Foreground(lipgloss.Color("240")).PaddingLeft(paddingLeft).SetString("Bummer. No Files Found."),
123+ }
124+}
125+
126+// Model represents a file picker.
127+type Model struct {
128+ id int
129+
130+ // Path is the path which the user has selected with the file picker.
131+ Path string
132+
133+ // CurrentDirectory is the directory that the user is currently in.
134+ CurrentDirectory string
135+
136+ // AllowedTypes specifies which file types the user may select.
137+ // If empty the user may select any file.
138+ AllowedTypes []string
139+
140+ KeyMap KeyMap
141+ files []os.DirEntry
142+ ShowPermissions bool
143+ ShowSize bool
144+ ShowHidden bool
145+ DirAllowed bool
146+ FileAllowed bool
147+
148+ FileSelected string
149+ selected int
150+ selectedStack stack
151+
152+ minIdx int
153+ maxIdx int
154+ maxStack stack
155+ minStack stack
156+
157+ height int
158+ AutoHeight bool
159+
160+ Cursor string
161+ Styles Styles
162+}
163+
164+type stack struct {
165+ Push func(int)
166+ Pop func() int
167+ Length func() int
168+}
169+
170+func newStack() stack {
171+ slice := make([]int, 0)
172+ return stack{
173+ Push: func(i int) {
174+ slice = append(slice, i)
175+ },
176+ Pop: func() int {
177+ res := slice[len(slice)-1]
178+ slice = slice[:len(slice)-1]
179+ return res
180+ },
181+ Length: func() int {
182+ return len(slice)
183+ },
184+ }
185+}
186+
187+func (m *Model) pushView(selected, minimum, maximum int) {
188+ m.selectedStack.Push(selected)
189+ m.minStack.Push(minimum)
190+ m.maxStack.Push(maximum)
191+}
192+
193+func (m *Model) popView() (int, int, int) {
194+ return m.selectedStack.Pop(), m.minStack.Pop(), m.maxStack.Pop()
195+}
196+
197+func (m Model) readDir(path string, showHidden bool) tea.Cmd {
198+ return func() tea.Msg {
199+ dirEntries, err := os.ReadDir(path)
200+ if err != nil {
201+ return errorMsg{err}
202+ }
203+
204+ sort.Slice(dirEntries, func(i, j int) bool {
205+ if dirEntries[i].IsDir() == dirEntries[j].IsDir() {
206+ return dirEntries[i].Name() < dirEntries[j].Name()
207+ }
208+ return dirEntries[i].IsDir()
209+ })
210+
211+ if showHidden {
212+ return readDirMsg{id: m.id, entries: dirEntries}
213+ }
214+
215+ var sanitizedDirEntries []os.DirEntry
216+ for _, dirEntry := range dirEntries {
217+ isHidden, _ := IsHidden(dirEntry.Name())
218+ if isHidden {
219+ continue
220+ }
221+ sanitizedDirEntries = append(sanitizedDirEntries, dirEntry)
222+ }
223+ return readDirMsg{id: m.id, entries: sanitizedDirEntries}
224+ }
225+}
226+
227+// SetHeight sets the height of the file picker.
228+func (m *Model) SetHeight(h int) {
229+ m.height = h
230+ if m.maxIdx > m.height-1 {
231+ m.maxIdx = m.minIdx + m.height - 1
232+ }
233+}
234+
235+// Height returns the height of the file picker.
236+func (m Model) Height() int {
237+ return m.height
238+}
239+
240+// Init initializes the file picker model.
241+func (m Model) Init() tea.Cmd {
242+ return m.readDir(m.CurrentDirectory, m.ShowHidden)
243+}
244+
245+// Update handles user interactions within the file picker model.
246+func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
247+ switch msg := msg.(type) {
248+ case readDirMsg:
249+ if msg.id != m.id {
250+ break
251+ }
252+ m.files = msg.entries
253+ m.maxIdx = max(m.maxIdx, m.Height()-1)
254+ case tea.WindowSizeMsg:
255+ if m.AutoHeight {
256+ m.SetHeight(msg.Height - marginBottom)
257+ }
258+ m.maxIdx = m.Height() - 1
259+ case tea.KeyPressMsg:
260+ switch {
261+ case key.Matches(msg, m.KeyMap.GoToTop):
262+ m.selected = 0
263+ m.minIdx = 0
264+ m.maxIdx = m.Height() - 1
265+ case key.Matches(msg, m.KeyMap.GoToLast):
266+ m.selected = len(m.files) - 1
267+ m.minIdx = len(m.files) - m.Height()
268+ m.maxIdx = len(m.files) - 1
269+ case key.Matches(msg, m.KeyMap.Down):
270+ m.selected++
271+ if m.selected >= len(m.files) {
272+ m.selected = len(m.files) - 1
273+ }
274+ if m.selected > m.maxIdx {
275+ m.minIdx++
276+ m.maxIdx++
277+ }
278+ case key.Matches(msg, m.KeyMap.Up):
279+ m.selected--
280+ if m.selected < 0 {
281+ m.selected = 0
282+ }
283+ if m.selected < m.minIdx {
284+ m.minIdx--
285+ m.maxIdx--
286+ }
287+ case key.Matches(msg, m.KeyMap.PageDown):
288+ m.selected += m.Height()
289+ if m.selected >= len(m.files) {
290+ m.selected = len(m.files) - 1
291+ }
292+ m.minIdx += m.Height()
293+ m.maxIdx += m.Height()
294+
295+ if m.maxIdx >= len(m.files) {
296+ m.maxIdx = len(m.files) - 1
297+ m.minIdx = m.maxIdx - m.Height()
298+ }
299+ case key.Matches(msg, m.KeyMap.PageUp):
300+ m.selected -= m.Height()
301+ if m.selected < 0 {
302+ m.selected = 0
303+ }
304+ m.minIdx -= m.Height()
305+ m.maxIdx -= m.Height()
306+
307+ if m.minIdx < 0 {
308+ m.minIdx = 0
309+ m.maxIdx = m.minIdx + m.Height()
310+ }
311+ case key.Matches(msg, m.KeyMap.Back):
312+ m.CurrentDirectory = filepath.Dir(m.CurrentDirectory)
313+ if m.selectedStack.Length() > 0 {
314+ m.selected, m.minIdx, m.maxIdx = m.popView()
315+ } else {
316+ m.selected = 0
317+ m.minIdx = 0
318+ m.maxIdx = m.Height() - 1
319+ }
320+ return m, m.readDir(m.CurrentDirectory, m.ShowHidden)
321+ case key.Matches(msg, m.KeyMap.Open):
322+ if len(m.files) == 0 {
323+ break
324+ }
325+
326+ f := m.files[m.selected]
327+ info, err := f.Info()
328+ if err != nil {
329+ break
330+ }
331+ isSymlink := info.Mode()&os.ModeSymlink != 0
332+ isDir := f.IsDir()
333+
334+ if isSymlink {
335+ symlinkPath, _ := filepath.EvalSymlinks(filepath.Join(m.CurrentDirectory, f.Name()))
336+ info, err := os.Stat(symlinkPath)
337+ if err != nil {
338+ break
339+ }
340+ if info.IsDir() {
341+ isDir = true
342+ }
343+ }
344+
345+ if (!isDir && m.FileAllowed) || (isDir && m.DirAllowed) {
346+ if key.Matches(msg, m.KeyMap.Select) {
347+ // Select the current path as the selection
348+ m.Path = filepath.Join(m.CurrentDirectory, f.Name())
349+ }
350+ }
351+
352+ if !isDir {
353+ break
354+ }
355+
356+ m.CurrentDirectory = filepath.Join(m.CurrentDirectory, f.Name())
357+ m.pushView(m.selected, m.minIdx, m.maxIdx)
358+ m.selected = 0
359+ m.minIdx = 0
360+ m.maxIdx = m.Height() - 1
361+ return m, m.readDir(m.CurrentDirectory, m.ShowHidden)
362+ }
363+ }
364+ return m, nil
365+}
366+
367+// View returns the view of the file picker.
368+func (m Model) View() string {
369+ if len(m.files) == 0 {
370+ return m.Styles.EmptyDirectory.Height(m.Height()).MaxHeight(m.Height()).String()
371+ }
372+ var s strings.Builder
373+
374+ for i, f := range m.files {
375+ if i < m.minIdx || i > m.maxIdx {
376+ continue
377+ }
378+
379+ var symlinkPath string
380+ info, err := f.Info()
381+ if err != nil {
382+ continue
383+ }
384+ isSymlink := info.Mode()&os.ModeSymlink != 0
385+ size := strings.Replace(humanize.Bytes(uint64(info.Size())), " ", "", 1) //nolint:gosec
386+ name := f.Name()
387+
388+ if isSymlink {
389+ symlinkPath, _ = filepath.EvalSymlinks(filepath.Join(m.CurrentDirectory, name))
390+ }
391+
392+ disabled := !m.canSelect(name) && !f.IsDir()
393+
394+ if m.selected == i { //nolint:nestif
395+ selected := ""
396+ if m.ShowPermissions {
397+ selected += " " + info.Mode().String()
398+ }
399+ if m.ShowSize {
400+ selected += fmt.Sprintf("%"+strconv.Itoa(m.Styles.FileSize.GetWidth())+"s", size)
401+ }
402+ selected += " " + name
403+ if isSymlink {
404+ selected += " → " + symlinkPath
405+ }
406+ if disabled {
407+ s.WriteString(m.Styles.DisabledCursor.Render(m.Cursor) + m.Styles.DisabledSelected.Render(selected))
408+ } else {
409+ s.WriteString(m.Styles.Cursor.Render(m.Cursor) + m.Styles.Selected.Render(selected))
410+ }
411+ s.WriteRune('\n')
412+ continue
413+ }
414+
415+ style := m.Styles.File
416+ if f.IsDir() {
417+ style = m.Styles.Directory
418+ } else if isSymlink {
419+ style = m.Styles.Symlink
420+ } else if disabled {
421+ style = m.Styles.DisabledFile
422+ }
423+
424+ fileName := style.Render(name)
425+ s.WriteString(m.Styles.Cursor.Render(" "))
426+ if isSymlink {
427+ fileName += " → " + symlinkPath
428+ }
429+ if m.ShowPermissions {
430+ s.WriteString(" " + m.Styles.Permission.Render(info.Mode().String()))
431+ }
432+ if m.ShowSize {
433+ s.WriteString(m.Styles.FileSize.Render(size))
434+ }
435+ s.WriteString(" " + fileName)
436+ s.WriteRune('\n')
437+ }
438+
439+ for i := lipgloss.Height(s.String()); i <= m.Height(); i++ {
440+ s.WriteRune('\n')
441+ }
442+
443+ return s.String()
444+}
445+
446+// DidSelectFile returns whether a user has selected a file (on this msg).
447+func (m Model) DidSelectFile(msg tea.Msg) (bool, string) {
448+ didSelect, path := m.didSelectFile(msg)
449+ if didSelect && m.canSelect(path) {
450+ return true, path
451+ }
452+ return false, ""
453+}
454+
455+// DidSelectDisabledFile returns whether a user tried to select a disabled file
456+// (on this msg). This is necessary only if you would like to warn the user that
457+// they tried to select a disabled file.
458+func (m Model) DidSelectDisabledFile(msg tea.Msg) (bool, string) {
459+ didSelect, path := m.didSelectFile(msg)
460+ if didSelect && !m.canSelect(path) {
461+ return true, path
462+ }
463+ return false, ""
464+}
465+
466+func (m Model) didSelectFile(msg tea.Msg) (bool, string) {
467+ if len(m.files) == 0 {
468+ return false, ""
469+ }
470+ switch msg := msg.(type) {
471+ case tea.KeyPressMsg:
472+ // If the msg does not match the Select keymap then this could not have been a selection.
473+ if !key.Matches(msg, m.KeyMap.Select) {
474+ return false, ""
475+ }
476+
477+ // The key press was a selection, let's confirm whether the current file could
478+ // be selected or used for navigating deeper into the stack.
479+ f := m.files[m.selected]
480+ info, err := f.Info()
481+ if err != nil {
482+ return false, ""
483+ }
484+ isSymlink := info.Mode()&os.ModeSymlink != 0
485+ isDir := f.IsDir()
486+
487+ if isSymlink {
488+ symlinkPath, _ := filepath.EvalSymlinks(filepath.Join(m.CurrentDirectory, f.Name()))
489+ info, err := os.Stat(symlinkPath)
490+ if err != nil {
491+ break
492+ }
493+ if info.IsDir() {
494+ isDir = true
495+ }
496+ }
497+
498+ if (!isDir && m.FileAllowed) || (isDir && m.DirAllowed) && m.Path != "" {
499+ return true, m.Path
500+ }
501+
502+ // If the msg was not a KeyPressMsg, then the file could not have been selected this iteration.
503+ // Only a KeyPressMsg can select a file.
504+ default:
505+ return false, ""
506+ }
507+ return false, ""
508+}
509+
510+func (m Model) canSelect(file string) bool {
511+ if len(m.AllowedTypes) <= 0 {
512+ return true
513+ }
514+
515+ for _, ext := range m.AllowedTypes {
516+ if strings.HasSuffix(file, ext) {
517+ return true
518+ }
519+ }
520+ return false
521+}
522+
523+// HighlightedPath returns the path of the currently highlighted file or directory.
524+func (m Model) HighlightedPath() string {
525+ if len(m.files) == 0 || m.selected < 0 || m.selected >= len(m.files) {
526+ return ""
527+ }
528+ return filepath.Join(m.CurrentDirectory, m.files[m.selected].Name())
529+}
vendor/charm.land/bubbles/v2/filepicker/hidden_unix.gonew file+11
@@ -0,0 +1,11 @@
1+//go:build !windows
2+// +build !windows
3+
4+package filepicker
5+
6+import "strings"
7+
8+// IsHidden reports whether a file is hidden or not.
9+func IsHidden(file string) (bool, error) {
10+ return strings.HasPrefix(file, "."), nil
11+}
vendor/charm.land/bubbles/v2/filepicker/hidden_windows.gonew file+21
@@ -0,0 +1,21 @@
1+//go:build windows
2+// +build windows
3+
4+package filepicker
5+
6+import (
7+ "syscall"
8+)
9+
10+// IsHidden reports whether a file is hidden or not.
11+func IsHidden(file string) (bool, error) {
12+ pointer, err := syscall.UTF16PtrFromString(file)
13+ if err != nil {
14+ return false, err //nolint:wrapcheck
15+ }
16+ attributes, err := syscall.GetFileAttributes(pointer)
17+ if err != nil {
18+ return false, err //nolint:wrapcheck
19+ }
20+ return attributes&syscall.FILE_ATTRIBUTE_HIDDEN != 0, nil
21+}
vendor/charm.land/bubbles/v2/help/help.gonew file+253
@@ -0,0 +1,253 @@
1+// Package help provides a simple help view for Bubble Tea applications.
2+package help
3+
4+import (
5+ "strings"
6+
7+ "charm.land/bubbles/v2/key"
8+ tea "charm.land/bubbletea/v2"
9+ "charm.land/lipgloss/v2"
10+)
11+
12+// KeyMap is a map of keybindings used to generate help. Since it's an
13+// interface it can be any type, though struct or a map[string][]key.Binding
14+// are likely candidates.
15+//
16+// Note that if a key is disabled (via key.Binding.SetEnabled) it will not be
17+// rendered in the help view, so in theory generated help should self-manage.
18+type KeyMap interface {
19+ // ShortHelp returns a slice of bindings to be displayed in the short
20+ // version of the help. The help bubble will render help in the order in
21+ // which the help items are returned here.
22+ ShortHelp() []key.Binding
23+
24+ // FullHelp returns an extended group of help items, grouped by columns.
25+ // The help bubble will render the help in the order in which the help
26+ // items are returned here.
27+ FullHelp() [][]key.Binding
28+}
29+
30+// Styles is a set of available style definitions for the Help bubble.
31+type Styles struct {
32+ Ellipsis lipgloss.Style
33+
34+ // Styling for the short help
35+ ShortKey lipgloss.Style
36+ ShortDesc lipgloss.Style
37+ ShortSeparator lipgloss.Style
38+
39+ // Styling for the full help
40+ FullKey lipgloss.Style
41+ FullDesc lipgloss.Style
42+ FullSeparator lipgloss.Style
43+}
44+
45+// DefaultStyles returns a set of default styles for the help bubble. Light or
46+// dark styles can be selected by passing true or false to the isDark
47+// parameter.
48+func DefaultStyles(isDark bool) Styles {
49+ lightDark := lipgloss.LightDark(isDark)
50+
51+ keyStyle := lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("#909090"), lipgloss.Color("#626262")))
52+ descStyle := lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("#B2B2B2"), lipgloss.Color("#4A4A4A")))
53+ sepStyle := lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("#DADADA"), lipgloss.Color("#3C3C3C")))
54+
55+ return Styles{
56+ ShortKey: keyStyle,
57+ ShortDesc: descStyle,
58+ ShortSeparator: sepStyle,
59+ Ellipsis: sepStyle,
60+ FullKey: keyStyle,
61+ FullDesc: descStyle,
62+ FullSeparator: sepStyle,
63+ }
64+}
65+
66+// DefaultDarkStyles returns a set of default styles for dark backgrounds.
67+func DefaultDarkStyles() Styles {
68+ return DefaultStyles(true)
69+}
70+
71+// DefaultLightStyles returns a set of default styles for light backgrounds.
72+func DefaultLightStyles() Styles {
73+ return DefaultStyles(false)
74+}
75+
76+// Model contains the state of the help view.
77+type Model struct {
78+ ShowAll bool // if true, render the "full" help menu
79+
80+ ShortSeparator string
81+ FullSeparator string
82+
83+ // The symbol we use in the short help when help items have been truncated
84+ // due to width. Periods of ellipsis by default.
85+ Ellipsis string
86+
87+ Styles Styles
88+
89+ width int
90+}
91+
92+// New creates a new help view with some useful defaults.
93+func New() Model {
94+ return Model{
95+ ShortSeparator: " • ",
96+ FullSeparator: " ",
97+ Ellipsis: "…",
98+ Styles: DefaultDarkStyles(),
99+ }
100+}
101+
102+// Update helps satisfy the Bubble Tea Model interface. It's a no-op.
103+func (m Model) Update(_ tea.Msg) (Model, tea.Cmd) {
104+ return m, nil
105+}
106+
107+// View renders the help view's current state.
108+func (m Model) View(k KeyMap) string {
109+ if m.ShowAll {
110+ return m.FullHelpView(k.FullHelp())
111+ }
112+ return m.ShortHelpView(k.ShortHelp())
113+}
114+
115+// SetWidth sets the maximum width for the help view.
116+func (m *Model) SetWidth(w int) {
117+ m.width = w
118+}
119+
120+// Width returns the maximum width for the help view.
121+func (m Model) Width() int {
122+ return m.width
123+}
124+
125+// ShortHelpView renders a single line help view from a slice of keybindings.
126+// If the line is longer than the maximum width it will be gracefully
127+// truncated, showing only as many help items as possible.
128+func (m Model) ShortHelpView(bindings []key.Binding) string {
129+ if len(bindings) == 0 {
130+ return ""
131+ }
132+
133+ var b strings.Builder
134+ var totalWidth int
135+ separator := m.Styles.ShortSeparator.Inline(true).Render(m.ShortSeparator)
136+
137+ for i, kb := range bindings {
138+ if !kb.Enabled() {
139+ continue
140+ }
141+
142+ // Sep
143+ var sep string
144+ if totalWidth > 0 && i < len(bindings) {
145+ sep = separator
146+ }
147+
148+ // Item
149+ str := sep +
150+ m.Styles.ShortKey.Inline(true).Render(kb.Help().Key) + " " +
151+ m.Styles.ShortDesc.Inline(true).Render(kb.Help().Desc)
152+ w := lipgloss.Width(str)
153+
154+ // Tail
155+ if tail, ok := m.shouldAddItem(totalWidth, w); !ok {
156+ if tail != "" {
157+ b.WriteString(tail)
158+ }
159+ break
160+ }
161+
162+ totalWidth += w
163+ b.WriteString(str)
164+ }
165+
166+ return b.String()
167+}
168+
169+// FullHelpView renders help columns from a slice of key binding slices. Each
170+// top level slice entry renders into a column.
171+func (m Model) FullHelpView(groups [][]key.Binding) string {
172+ if len(groups) == 0 {
173+ return ""
174+ }
175+
176+ // Linter note: at this time we don't think it's worth the additional
177+ // code complexity involved in preallocating this slice.
178+ var (
179+ out []string
180+
181+ totalWidth int
182+ separator = m.Styles.FullSeparator.Inline(true).Render(m.FullSeparator)
183+ )
184+
185+ // Iterate over groups to build columns
186+ for i, group := range groups {
187+ if group == nil || !shouldRenderColumn(group) {
188+ continue
189+ }
190+ var (
191+ sep string
192+ keys []string
193+ descriptions []string
194+ )
195+
196+ // Sep
197+ if totalWidth > 0 && i < len(groups) {
198+ sep = separator
199+ }
200+
201+ // Separate keys and descriptions into different slices
202+ for _, kb := range group {
203+ if !kb.Enabled() {
204+ continue
205+ }
206+ keys = append(keys, kb.Help().Key)
207+ descriptions = append(descriptions, kb.Help().Desc)
208+ }
209+
210+ // Column
211+ col := lipgloss.JoinHorizontal(lipgloss.Top,
212+ sep,
213+ m.Styles.FullKey.Render(strings.Join(keys, "\n")),
214+ " ",
215+ m.Styles.FullDesc.Render(strings.Join(descriptions, "\n")),
216+ )
217+ w := lipgloss.Width(col)
218+
219+ // Tail
220+ if tail, ok := m.shouldAddItem(totalWidth, w); !ok {
221+ if tail != "" {
222+ out = append(out, tail)
223+ }
224+ break
225+ }
226+
227+ totalWidth += w
228+ out = append(out, col)
229+ }
230+
231+ return lipgloss.JoinHorizontal(lipgloss.Top, out...)
232+}
233+
234+func (m Model) shouldAddItem(totalWidth, width int) (tail string, ok bool) {
235+ // If there's room for an ellipsis, print that.
236+ if m.width > 0 && totalWidth+width > m.width {
237+ tail = " " + m.Styles.Ellipsis.Inline(true).Render(m.Ellipsis)
238+
239+ if totalWidth+lipgloss.Width(tail) < m.width {
240+ return tail, false
241+ }
242+ }
243+ return "", true
244+}
245+
246+func shouldRenderColumn(b []key.Binding) (ok bool) {
247+ for _, v := range b {
248+ if v.Enabled() {
249+ return true
250+ }
251+ }
252+ return false
253+}
vendor/charm.land/bubbles/v2/internal/memoization/memoization.gonew file+125
@@ -0,0 +1,125 @@
1+// Package memoization implement a simple memoization cache. It's designed to
2+// improve performance in textarea.
3+package memoization
4+
5+import (
6+ "container/list"
7+ "crypto/sha256"
8+ "fmt"
9+ "sync"
10+)
11+
12+// Hasher is an interface that requires a Hash method. The Hash method is
13+// expected to return a string representation of the hash of the object.
14+type Hasher interface {
15+ Hash() string
16+}
17+
18+// entry is a struct that holds a key-value pair. It is used as an element
19+// in the evictionList of the MemoCache.
20+type entry[T any] struct {
21+ key string
22+ value T
23+}
24+
25+// MemoCache is a struct that represents a cache with a set capacity. It
26+// uses an LRU (Least Recently Used) eviction policy. It is safe for
27+// concurrent use.
28+type MemoCache[H Hasher, T any] struct {
29+ capacity int
30+ mutex sync.Mutex
31+ cache map[string]*list.Element // The cache holding the results
32+ evictionList *list.List // A list to keep track of the order for LRU
33+ hashableItems map[string]T // This map keeps track of the original hashable items (optional)
34+}
35+
36+// NewMemoCache is a function that creates a new MemoCache with a given
37+// capacity. It returns a pointer to the created MemoCache.
38+func NewMemoCache[H Hasher, T any](capacity int) *MemoCache[H, T] {
39+ return &MemoCache[H, T]{
40+ capacity: capacity,
41+ cache: make(map[string]*list.Element),
42+ evictionList: list.New(),
43+ hashableItems: make(map[string]T),
44+ }
45+}
46+
47+// Capacity is a method that returns the capacity of the MemoCache.
48+func (m *MemoCache[H, T]) Capacity() int {
49+ return m.capacity
50+}
51+
52+// Size is a method that returns the current size of the MemoCache. It is
53+// the number of items currently stored in the cache.
54+func (m *MemoCache[H, T]) Size() int {
55+ m.mutex.Lock()
56+ defer m.mutex.Unlock()
57+ return m.evictionList.Len()
58+}
59+
60+// Get is a method that returns the value associated with the given
61+// hashable item in the MemoCache. If there is no corresponding value, the
62+// method returns nil.
63+func (m *MemoCache[H, T]) Get(h H) (T, bool) {
64+ m.mutex.Lock()
65+ defer m.mutex.Unlock()
66+
67+ hashedKey := h.Hash()
68+ if element, found := m.cache[hashedKey]; found {
69+ m.evictionList.MoveToFront(element)
70+ return element.Value.(*entry[T]).value, true
71+ }
72+ var result T
73+ return result, false
74+}
75+
76+// Set is a method that sets the value for the given hashable item in the
77+// MemoCache. If the cache is at capacity, it evicts the least recently
78+// used item before adding the new item.
79+func (m *MemoCache[H, T]) Set(h H, value T) {
80+ m.mutex.Lock()
81+ defer m.mutex.Unlock()
82+
83+ hashedKey := h.Hash()
84+ if element, found := m.cache[hashedKey]; found {
85+ m.evictionList.MoveToFront(element)
86+ element.Value.(*entry[T]).value = value
87+ return
88+ }
89+
90+ // Check if the cache is at capacity
91+ if m.evictionList.Len() >= m.capacity {
92+ // Evict the least recently used item from the cache
93+ toEvict := m.evictionList.Back()
94+ if toEvict != nil {
95+ evictedEntry := m.evictionList.Remove(toEvict).(*entry[T])
96+ delete(m.cache, evictedEntry.key)
97+ delete(m.hashableItems, evictedEntry.key) // if you're keeping track of original items
98+ }
99+ }
100+
101+ // Add the value to the cache and the evictionList
102+ newEntry := &entry[T]{
103+ key: hashedKey,
104+ value: value,
105+ }
106+ element := m.evictionList.PushFront(newEntry)
107+ m.cache[hashedKey] = element
108+ m.hashableItems[hashedKey] = value // if you're keeping track of original items
109+}
110+
111+// HString is a type that implements the Hasher interface for strings.
112+type HString string
113+
114+// Hash is a method that returns the hash of the string.
115+func (h HString) Hash() string {
116+ return fmt.Sprintf("%x", sha256.Sum256([]byte(h)))
117+}
118+
119+// HInt is a type that implements the Hasher interface for integers.
120+type HInt int
121+
122+// Hash is a method that returns the hash of the integer.
123+func (h HInt) Hash() string {
124+ return fmt.Sprintf("%x", sha256.Sum256(fmt.Appendf(nil, "%d", h)))
125+}
vendor/charm.land/bubbles/v2/internal/runeutil/runeutil.gonew file+102
@@ -0,0 +1,102 @@
1+// Package runeutil provides utility functions for tidying up incoming runes
2+// from Key messages.
3+package runeutil
4+
5+import (
6+ "unicode"
7+ "unicode/utf8"
8+)
9+
10+// Sanitizer is a helper for bubble widgets that want to process
11+// Runes from input key messages.
12+type Sanitizer interface {
13+ // Sanitize removes control characters from runes in a KeyRunes
14+ // message, and optionally replaces newline/carriage return/tabs by a
15+ // specified character.
16+ //
17+ // The rune array is modified in-place if possible. In that case, the
18+ // returned slice is the original slice shortened after the control
19+ // characters have been removed/translated.
20+ Sanitize(runes []rune) []rune
21+}
22+
23+// NewSanitizer constructs a rune sanitizer.
24+func NewSanitizer(opts ...Option) Sanitizer {
25+ s := sanitizer{
26+ replaceNewLine: []rune("\n"),
27+ replaceTab: []rune(" "),
28+ }
29+ for _, o := range opts {
30+ s = o(s)
31+ }
32+ return &s
33+}
34+
35+// Option is the type of option that can be passed to Sanitize().
36+type Option func(sanitizer) sanitizer
37+
38+// ReplaceTabs replaces tabs by the specified string.
39+func ReplaceTabs(tabRepl string) Option {
40+ return func(s sanitizer) sanitizer {
41+ s.replaceTab = []rune(tabRepl)
42+ return s
43+ }
44+}
45+
46+// ReplaceNewlines replaces newline characters by the specified string.
47+func ReplaceNewlines(nlRepl string) Option {
48+ return func(s sanitizer) sanitizer {
49+ s.replaceNewLine = []rune(nlRepl)
50+ return s
51+ }
52+}
53+
54+func (s *sanitizer) Sanitize(runes []rune) []rune {
55+ // dstrunes are where we are storing the result.
56+ dstrunes := runes[:0:len(runes)]
57+ // copied indicates whether dstrunes is an alias of runes
58+ // or a copy. We need a copy when dst moves past src.
59+ // We use this as an optimization to avoid allocating
60+ // a new rune slice in the common case where the output
61+ // is smaller or equal to the input.
62+ copied := false
63+
64+ for src := range runes {
65+ r := runes[src]
66+ switch {
67+ case r == utf8.RuneError:
68+ // skip
69+
70+ case r == '\r' || r == '\n':
71+ if len(dstrunes)+len(s.replaceNewLine) > src && !copied {
72+ dst := len(dstrunes)
73+ dstrunes = make([]rune, dst, len(runes)+len(s.replaceNewLine))
74+ copy(dstrunes, runes[:dst])
75+ copied = true
76+ }
77+ dstrunes = append(dstrunes, s.replaceNewLine...)
78+
79+ case r == '\t':
80+ if len(dstrunes)+len(s.replaceTab) > src && !copied {
81+ dst := len(dstrunes)
82+ dstrunes = make([]rune, dst, len(runes)+len(s.replaceTab))
83+ copy(dstrunes, runes[:dst])
84+ copied = true
85+ }
86+ dstrunes = append(dstrunes, s.replaceTab...)
87+
88+ case unicode.IsControl(r):
89+ // Other control characters: skip.
90+
91+ default:
92+ // Keep the character.
93+ dstrunes = append(dstrunes, runes[src])
94+ }
95+ }
96+ return dstrunes
97+}
98+
99+type sanitizer struct {
100+ replaceNewLine []rune
101+ replaceTab []rune
102+}
vendor/charm.land/bubbles/v2/key/key.gonew file+140
@@ -0,0 +1,140 @@
1+// Package key provides some types and functions for generating user-definable
2+// keymappings useful in Bubble Tea components. There are a few different ways
3+// you can define a keymapping with this package. Here's one example:
4+//
5+// type KeyMap struct {
6+// Up key.Binding
7+// Down key.Binding
8+// }
9+//
10+// var DefaultKeyMap = KeyMap{
11+// Up: key.NewBinding(
12+// key.WithKeys("k", "up"), // actual keybindings
13+// key.WithHelp("↑/k", "move up"), // corresponding help text
14+// ),
15+// Down: key.NewBinding(
16+// key.WithKeys("j", "down"),
17+// key.WithHelp("↓/j", "move down"),
18+// ),
19+// }
20+//
21+// func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
22+// switch msg := msg.(type) {
23+// case tea.KeyPressMsg:
24+// switch {
25+// case key.Matches(msg, DefaultKeyMap.Up):
26+// // The user pressed up
27+// case key.Matches(msg, DefaultKeyMap.Down):
28+// // The user pressed down
29+// }
30+// }
31+//
32+// // ...
33+// }
34+//
35+// The help information, which is not used in the example above, can be used
36+// to render help text for keystrokes in your views.
37+package key
38+
39+import "fmt"
40+
41+// Binding describes a set of keybindings and, optionally, their associated
42+// help text.
43+type Binding struct {
44+ keys []string
45+ help Help
46+ disabled bool
47+}
48+
49+// BindingOpt is an initialization option for a keybinding. It's used as an
50+// argument to NewBinding.
51+type BindingOpt func(*Binding)
52+
53+// NewBinding returns a new keybinding from a set of BindingOpt options.
54+func NewBinding(opts ...BindingOpt) Binding {
55+ b := &Binding{}
56+ for _, opt := range opts {
57+ opt(b)
58+ }
59+ return *b
60+}
61+
62+// WithKeys initializes a keybinding with the given keystrokes.
63+func WithKeys(keys ...string) BindingOpt {
64+ return func(b *Binding) {
65+ b.keys = keys
66+ }
67+}
68+
69+// WithHelp initializes a keybinding with the given help text.
70+func WithHelp(key, desc string) BindingOpt {
71+ return func(b *Binding) {
72+ b.help = Help{Key: key, Desc: desc}
73+ }
74+}
75+
76+// WithDisabled initializes a disabled keybinding.
77+func WithDisabled() BindingOpt {
78+ return func(b *Binding) {
79+ b.disabled = true
80+ }
81+}
82+
83+// SetKeys sets the keys for the keybinding.
84+func (b *Binding) SetKeys(keys ...string) {
85+ b.keys = keys
86+}
87+
88+// Keys returns the keys for the keybinding.
89+func (b Binding) Keys() []string {
90+ return b.keys
91+}
92+
93+// SetHelp sets the help text for the keybinding.
94+func (b *Binding) SetHelp(key, desc string) {
95+ b.help = Help{Key: key, Desc: desc}
96+}
97+
98+// Help returns the Help information for the keybinding.
99+func (b Binding) Help() Help {
100+ return b.help
101+}
102+
103+// Enabled returns whether or not the keybinding is enabled. Disabled
104+// keybindings won't be activated and won't show up in help. Keybindings are
105+// enabled by default.
106+func (b Binding) Enabled() bool {
107+ return !b.disabled && b.keys != nil
108+}
109+
110+// SetEnabled enables or disables the keybinding.
111+func (b *Binding) SetEnabled(v bool) {
112+ b.disabled = !v
113+}
114+
115+// Unbind removes the keys and help from this binding, effectively nullifying
116+// it. This is a step beyond disabling it, since applications can enable
117+// or disable key bindings based on application state.
118+func (b *Binding) Unbind() {
119+ b.keys = nil
120+ b.help = Help{}
121+}
122+
123+// Help is help information for a given keybinding.
124+type Help struct {
125+ Key string
126+ Desc string
127+}
128+
129+// Matches checks if the given key matches the given bindings.
130+func Matches[Key fmt.Stringer](k Key, b ...Binding) bool {
131+ keys := k.String()
132+ for _, binding := range b {
133+ for _, v := range binding.keys {
134+ if keys == v && binding.Enabled() {
135+ return true
136+ }
137+ }
138+ }
139+ return false
140+}
vendor/charm.land/bubbles/v2/spinner/spinner.gonew file+211
@@ -0,0 +1,211 @@
1+// Package spinner provides a spinner component for Bubble Tea applications.
2+package spinner
3+
4+import (
5+ "sync/atomic"
6+ "time"
7+
8+ tea "charm.land/bubbletea/v2"
9+ "charm.land/lipgloss/v2"
10+)
11+
12+// Internal ID management. Used during animating to ensure that frame messages
13+// are received only by spinner components that sent them.
14+var lastID int64
15+
16+func nextID() int {
17+ return int(atomic.AddInt64(&lastID, 1))
18+}
19+
20+// Spinner is a set of frames used in animating the spinner.
21+type Spinner struct {
22+ Frames []string
23+ FPS time.Duration
24+}
25+
26+// Some spinners to choose from. You could also make your own.
27+var (
28+ Line = Spinner{
29+ Frames: []string{"|", "/", "-", "\\"},
30+ FPS: time.Second / 10, //nolint:mnd
31+ }
32+ Dot = Spinner{
33+ Frames: []string{"⣾ ", "⣽ ", "⣻ ", "⢿ ", "⡿ ", "⣟ ", "⣯ ", "⣷ "},
34+ FPS: time.Second / 10, //nolint:mnd
35+ }
36+ MiniDot = Spinner{
37+ Frames: []string{"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"},
38+ FPS: time.Second / 12, //nolint:mnd
39+ }
40+ Jump = Spinner{
41+ Frames: []string{"⢄", "⢂", "⢁", "⡁", "⡈", "⡐", "⡠"},
42+ FPS: time.Second / 10, //nolint:mnd
43+ }
44+ Pulse = Spinner{
45+ Frames: []string{"█", "▓", "▒", "░"},
46+ FPS: time.Second / 8, //nolint:mnd
47+ }
48+ Points = Spinner{
49+ Frames: []string{"∙∙∙", "●∙∙", "∙●∙", "∙∙●"},
50+ FPS: time.Second / 7, //nolint:mnd
51+ }
52+ Globe = Spinner{
53+ Frames: []string{"🌍", "🌎", "🌏"},
54+ FPS: time.Second / 4, //nolint:mnd
55+ }
56+ Moon = Spinner{
57+ Frames: []string{"🌑", "🌒", "🌓", "🌔", "🌕", "🌖", "🌗", "🌘"},
58+ FPS: time.Second / 8, //nolint:mnd
59+ }
60+ Monkey = Spinner{
61+ Frames: []string{"🙈", "🙉", "🙊"},
62+ FPS: time.Second / 3, //nolint:mnd
63+ }
64+ Meter = Spinner{
65+ Frames: []string{
66+ "▱▱▱",
67+ "▰▱▱",
68+ "▰▰▱",
69+ "▰▰▰",
70+ "▰▰▱",
71+ "▰▱▱",
72+ "▱▱▱",
73+ },
74+ FPS: time.Second / 7, //nolint:mnd
75+ }
76+ Hamburger = Spinner{
77+ Frames: []string{"☱", "☲", "☴", "☲"},
78+ FPS: time.Second / 3, //nolint:mnd
79+ }
80+ Ellipsis = Spinner{
81+ Frames: []string{"", ".", "..", "..."},
82+ FPS: time.Second / 3, //nolint:mnd
83+ }
84+)
85+
86+// Model contains the state for the spinner. Use New to create new models
87+// rather than using Model as a struct literal.
88+type Model struct {
89+ // Spinner settings to use. See type Spinner.
90+ Spinner Spinner
91+
92+ // Style sets the styling for the spinner. Most of the time you'll just
93+ // want foreground and background coloring, and potentially some padding.
94+ //
95+ // For an introduction to styling with Lip Gloss see:
96+ // https://github.com/charmbracelet/lipgloss
97+ Style lipgloss.Style
98+
99+ frame int
100+ id int
101+ tag int
102+}
103+
104+// ID returns the spinner's unique ID.
105+func (m Model) ID() int {
106+ return m.id
107+}
108+
109+// New returns a model with default values.
110+func New(opts ...Option) Model {
111+ m := Model{
112+ Spinner: Line,
113+ id: nextID(),
114+ }
115+
116+ for _, opt := range opts {
117+ opt(&m)
118+ }
119+
120+ return m
121+}
122+
123+// TickMsg indicates that the timer has ticked and we should render a frame.
124+type TickMsg struct {
125+ Time time.Time
126+ tag int
127+ ID int
128+}
129+
130+// Update is the Tea update function.
131+func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
132+ switch msg := msg.(type) {
133+ case TickMsg:
134+ // If an ID is set, and the ID doesn't belong to this spinner, reject
135+ // the message.
136+ if msg.ID > 0 && msg.ID != m.id {
137+ return m, nil
138+ }
139+
140+ // If a tag is set, and it's not the one we expect, reject the message.
141+ // This prevents the spinner from receiving too many messages and
142+ // thus spinning too fast.
143+ if msg.tag > 0 && msg.tag != m.tag {
144+ return m, nil
145+ }
146+
147+ m.frame++
148+ if m.frame >= len(m.Spinner.Frames) {
149+ m.frame = 0
150+ }
151+
152+ m.tag++
153+ return m, m.tick(m.id, m.tag)
154+ default:
155+ return m, nil
156+ }
157+}
158+
159+// View renders the model's view.
160+func (m Model) View() string {
161+ if m.frame >= len(m.Spinner.Frames) {
162+ return "(error)"
163+ }
164+
165+ return m.Style.Render(m.Spinner.Frames[m.frame])
166+}
167+
168+// Tick is the command used to advance the spinner one frame. Use this command
169+// to effectively start the spinner.
170+func (m Model) Tick() tea.Msg {
171+ return TickMsg{
172+ // The time at which the tick occurred.
173+ Time: time.Now(),
174+
175+ // The ID of the spinner that this message belongs to. This can be
176+ // helpful when routing messages, however bear in mind that spinners
177+ // will ignore messages that don't contain ID by default.
178+ ID: m.id,
179+
180+ tag: m.tag,
181+ }
182+}
183+
184+func (m Model) tick(id, tag int) tea.Cmd {
185+ return tea.Tick(m.Spinner.FPS, func(t time.Time) tea.Msg {
186+ return TickMsg{
187+ Time: t,
188+ ID: id,
189+ tag: tag,
190+ }
191+ })
192+}
193+
194+// Option is used to set options in New. For example:
195+//
196+// spinner := New(WithSpinner(Dot))
197+type Option func(*Model)
198+
199+// WithSpinner is an option to set the spinner. Pass this to [Spinner.New].
200+func WithSpinner(spinner Spinner) Option {
201+ return func(m *Model) {
202+ m.Spinner = spinner
203+ }
204+}
205+
206+// WithStyle is an option to set the spinner style. Pass this to [Spinner.New].
207+func WithStyle(style lipgloss.Style) Option {
208+ return func(m *Model) {
209+ m.Style = style
210+ }
211+}
vendor/charm.land/bubbles/v2/textarea/textarea.gonew file+1897
@@ -0,0 +1,1897 @@
1+// Package textarea provides a multi-line text input component for Bubble Tea
2+// applications.
3+package textarea
4+
5+import (
6+ "crypto/sha256"
7+ "fmt"
8+ "image/color"
9+ "slices"
10+ "strconv"
11+ "strings"
12+ "time"
13+ "unicode"
14+
15+ "charm.land/bubbles/v2/cursor"
16+ "charm.land/bubbles/v2/internal/memoization"
17+ "charm.land/bubbles/v2/internal/runeutil"
18+ "charm.land/bubbles/v2/key"
19+ "charm.land/bubbles/v2/viewport"
20+ tea "charm.land/bubbletea/v2"
21+ "charm.land/lipgloss/v2"
22+ "github.com/atotto/clipboard"
23+ "github.com/charmbracelet/x/ansi"
24+ rw "github.com/mattn/go-runewidth"
25+ "github.com/rivo/uniseg"
26+)
27+
28+const (
29+ minHeight = 1
30+ defaultHeight = 6
31+ defaultWidth = 40
32+ defaultCharLimit = 0 // no limit
33+ defaultMaxHeight = 99
34+ defaultMaxWidth = 500
35+
36+ // XXX: in v2, make max lines dynamic and default max lines configurable.
37+ maxLines = 10000
38+)
39+
40+// Internal messages for clipboard operations.
41+type (
42+ pasteMsg string
43+ pasteErrMsg struct{ error }
44+)
45+
46+// KeyMap is the key bindings for different actions within the textarea.
47+type KeyMap struct {
48+ CharacterBackward key.Binding
49+ CharacterForward key.Binding
50+ DeleteAfterCursor key.Binding
51+ DeleteBeforeCursor key.Binding
52+ DeleteCharacterBackward key.Binding
53+ DeleteCharacterForward key.Binding
54+ DeleteWordBackward key.Binding
55+ DeleteWordForward key.Binding
56+ InsertNewline key.Binding
57+ LineEnd key.Binding
58+ LineNext key.Binding
59+ LinePrevious key.Binding
60+ LineStart key.Binding
61+ PageUp key.Binding
62+ PageDown key.Binding
63+ Paste key.Binding
64+ WordBackward key.Binding
65+ WordForward key.Binding
66+ InputBegin key.Binding
67+ InputEnd key.Binding
68+
69+ UppercaseWordForward key.Binding
70+ LowercaseWordForward key.Binding
71+ CapitalizeWordForward key.Binding
72+
73+ TransposeCharacterBackward key.Binding
74+}
75+
76+// DefaultKeyMap returns the default set of key bindings for navigating and acting
77+// upon the textarea.
78+func DefaultKeyMap() KeyMap {
79+ return KeyMap{
80+ CharacterForward: key.NewBinding(key.WithKeys("right", "ctrl+f"), key.WithHelp("right", "character forward")),
81+ CharacterBackward: key.NewBinding(key.WithKeys("left", "ctrl+b"), key.WithHelp("left", "character backward")),
82+ WordForward: key.NewBinding(key.WithKeys("alt+right", "alt+f"), key.WithHelp("alt+right", "word forward")),
83+ WordBackward: key.NewBinding(key.WithKeys("alt+left", "alt+b"), key.WithHelp("alt+left", "word backward")),
84+ LineNext: key.NewBinding(key.WithKeys("down", "ctrl+n"), key.WithHelp("down", "next line")),
85+ LinePrevious: key.NewBinding(key.WithKeys("up", "ctrl+p"), key.WithHelp("up", "previous line")),
86+ DeleteWordBackward: key.NewBinding(key.WithKeys("alt+backspace", "ctrl+w"), key.WithHelp("alt+backspace", "delete word backward")),
87+ DeleteWordForward: key.NewBinding(key.WithKeys("alt+delete", "alt+d"), key.WithHelp("alt+delete", "delete word forward")),
88+ DeleteAfterCursor: key.NewBinding(key.WithKeys("ctrl+k"), key.WithHelp("ctrl+k", "delete after cursor")),
89+ DeleteBeforeCursor: key.NewBinding(key.WithKeys("ctrl+u"), key.WithHelp("ctrl+u", "delete before cursor")),
90+ InsertNewline: key.NewBinding(key.WithKeys("enter", "ctrl+m"), key.WithHelp("enter", "insert newline")),
91+ DeleteCharacterBackward: key.NewBinding(key.WithKeys("backspace", "ctrl+h"), key.WithHelp("backspace", "delete character backward")),
92+ DeleteCharacterForward: key.NewBinding(key.WithKeys("delete", "ctrl+d"), key.WithHelp("delete", "delete character forward")),
93+ LineStart: key.NewBinding(key.WithKeys("home", "ctrl+a"), key.WithHelp("home", "line start")),
94+ LineEnd: key.NewBinding(key.WithKeys("end", "ctrl+e"), key.WithHelp("end", "line end")),
95+ PageUp: key.NewBinding(key.WithKeys("pgup"), key.WithHelp("pgup", "page up")),
96+ PageDown: key.NewBinding(key.WithKeys("pgdown"), key.WithHelp("pgdown", "page down")),
97+ Paste: key.NewBinding(key.WithKeys("ctrl+v"), key.WithHelp("ctrl+v", "paste")),
98+ InputBegin: key.NewBinding(key.WithKeys("alt+<", "ctrl+home"), key.WithHelp("alt+<", "input begin")),
99+ InputEnd: key.NewBinding(key.WithKeys("alt+>", "ctrl+end"), key.WithHelp("alt+>", "input end")),
100+
101+ CapitalizeWordForward: key.NewBinding(key.WithKeys("alt+c"), key.WithHelp("alt+c", "capitalize word forward")),
102+ LowercaseWordForward: key.NewBinding(key.WithKeys("alt+l"), key.WithHelp("alt+l", "lowercase word forward")),
103+ UppercaseWordForward: key.NewBinding(key.WithKeys("alt+u"), key.WithHelp("alt+u", "uppercase word forward")),
104+
105+ TransposeCharacterBackward: key.NewBinding(key.WithKeys("ctrl+t"), key.WithHelp("ctrl+t", "transpose character backward")),
106+ }
107+}
108+
109+// LineInfo is a helper for keeping track of line information regarding
110+// soft-wrapped lines.
111+type LineInfo struct {
112+ // Width is the number of columns in the line.
113+ Width int
114+
115+ // CharWidth is the number of characters in the line to account for
116+ // double-width runes.
117+ CharWidth int
118+
119+ // Height is the number of rows in the line.
120+ Height int
121+
122+ // StartColumn is the index of the first column of the line.
123+ StartColumn int
124+
125+ // ColumnOffset is the number of columns that the cursor is offset from the
126+ // start of the line.
127+ ColumnOffset int
128+
129+ // RowOffset is the number of rows that the cursor is offset from the start
130+ // of the line.
131+ RowOffset int
132+
133+ // CharOffset is the number of characters that the cursor is offset
134+ // from the start of the line. This will generally be equivalent to
135+ // ColumnOffset, but will be different there are double-width runes before
136+ // the cursor.
137+ CharOffset int
138+}
139+
140+// PromptInfo is a struct that can be used to store information about the
141+// prompt.
142+type PromptInfo struct {
143+ LineNumber int
144+ Focused bool
145+}
146+
147+// CursorStyle is the style for real and virtual cursors.
148+type CursorStyle struct {
149+ // Style styles the cursor block.
150+ //
151+ // For real cursors, the foreground color set here will be used as the
152+ // cursor color.
153+ Color color.Color
154+
155+ // Shape is the cursor shape. The following shapes are available:
156+ //
157+ // - tea.CursorBlock
158+ // - tea.CursorUnderline
159+ // - tea.CursorBar
160+ //
161+ // This is only used for real cursors.
162+ Shape tea.CursorShape
163+
164+ // CursorBlink determines whether or not the cursor should blink.
165+ Blink bool
166+
167+ // BlinkSpeed is the speed at which the virtual cursor blinks. This has no
168+ // effect on real cursors as well as no effect if the cursor is set not to
169+ // [CursorBlink].
170+ //
171+ // By default, the blink speed is set to about 500ms.
172+ BlinkSpeed time.Duration
173+}
174+
175+// Styles are the styles for the textarea, separated into focused and blurred
176+// states. The appropriate styles will be chosen based on the focus state of
177+// the textarea.
178+type Styles struct {
179+ Focused StyleState
180+ Blurred StyleState
181+ Cursor CursorStyle
182+}
183+
184+// StyleState that will be applied to the text area.
185+//
186+// StyleState can be applied to focused and unfocused states to change the styles
187+// depending on the focus state.
188+//
189+// For an introduction to styling with Lip Gloss see:
190+// https://github.com/charmbracelet/lipgloss
191+type StyleState struct {
192+ Base lipgloss.Style
193+ Text lipgloss.Style
194+ LineNumber lipgloss.Style
195+ CursorLineNumber lipgloss.Style
196+ CursorLine lipgloss.Style
197+ EndOfBuffer lipgloss.Style
198+ Placeholder lipgloss.Style
199+ Prompt lipgloss.Style
200+}
201+
202+func (s StyleState) computedCursorLine() lipgloss.Style {
203+ return s.CursorLine.Inherit(s.Base).Inline(true)
204+}
205+
206+func (s StyleState) computedCursorLineNumber() lipgloss.Style {
207+ return s.CursorLineNumber.
208+ Inherit(s.CursorLine).
209+ Inherit(s.Base).
210+ Inline(true)
211+}
212+
213+func (s StyleState) computedEndOfBuffer() lipgloss.Style {
214+ return s.EndOfBuffer.Inherit(s.Base).Inline(true)
215+}
216+
217+func (s StyleState) computedLineNumber() lipgloss.Style {
218+ return s.LineNumber.Inherit(s.Base).Inline(true)
219+}
220+
221+func (s StyleState) computedPlaceholder() lipgloss.Style {
222+ return s.Placeholder.Inherit(s.Base).Inline(true)
223+}
224+
225+func (s StyleState) computedPrompt() lipgloss.Style {
226+ return s.Prompt.Inherit(s.Base).Inline(true)
227+}
228+
229+func (s StyleState) computedText() lipgloss.Style {
230+ return s.Text.Inherit(s.Base).Inline(true)
231+}
232+
233+// line is the input to the text wrapping function. This is stored in a struct
234+// so that it can be hashed and memoized.
235+type line struct {
236+ runes []rune
237+ width int
238+}
239+
240+// Hash returns a hash of the line.
241+func (w line) Hash() string {
242+ v := fmt.Sprintf("%s:%d", string(w.runes), w.width)
243+ return fmt.Sprintf("%x", sha256.Sum256([]byte(v)))
244+}
245+
246+// Model is the Bubble Tea model for this text area element.
247+type Model struct {
248+ Err error
249+
250+ // General settings.
251+ cache *memoization.MemoCache[line, [][]rune]
252+
253+ // Prompt is printed at the beginning of each line.
254+ //
255+ // When changing the value of Prompt after the model has been
256+ // initialized, ensure that SetWidth() gets called afterwards.
257+ //
258+ // See also [SetPromptFunc] for a dynamic prompt.
259+ Prompt string
260+
261+ // Placeholder is the text displayed when the user
262+ // hasn't entered anything yet.
263+ Placeholder string
264+
265+ // ShowLineNumbers, if enabled, causes line numbers to be printed
266+ // after the prompt.
267+ ShowLineNumbers bool
268+
269+ // EndOfBufferCharacter is displayed at the end of the input.
270+ EndOfBufferCharacter rune
271+
272+ // KeyMap encodes the keybindings recognized by the widget.
273+ KeyMap KeyMap
274+
275+ // virtualCursor manages the virtual cursor.
276+ virtualCursor cursor.Model
277+
278+ // CharLimit is the maximum number of characters this input element will
279+ // accept. If 0 or less, there's no limit.
280+ CharLimit int
281+
282+ // MaxHeight is the maximum height of the text area in rows. If 0 or less,
283+ // there's no limit.
284+ MaxHeight int
285+
286+ // MaxWidth is the maximum width of the text area in columns. If 0 or less,
287+ // there's no limit.
288+ MaxWidth int
289+
290+ // DynamicHeight, when true, causes the textarea to automatically grow
291+ // and shrink its height to fit the content. The height is clamped between
292+ // MinHeight and MaxHeight.
293+ DynamicHeight bool
294+
295+ // MinHeight is the minimum height of the text area in rows when
296+ // DynamicHeight is enabled. If 0 or less, defaults to 1.
297+ MinHeight int
298+
299+ // MaxContentHeight is the maximum content height in visual rows
300+ // (accounting for soft wraps). When set (> 0), input is blocked once
301+ // the total visual lines reach this limit, while MaxHeight controls
302+ // only the visible viewport height. When 0, the content guard falls
303+ // back to the legacy MaxHeight behavior (blocking at MaxHeight
304+ // logical lines) for backward compatibility.
305+ MaxContentHeight int
306+
307+ // Styling. Styles are defined in [Styles]. Use [SetStyles] and [GetStyles]
308+ // to work with this value publicly.
309+ styles Styles
310+
311+ // useVirtualCursor determines whether or not to use the virtual cursor.
312+ // Use [SetVirtualCursor] and [VirtualCursor] to work with this this
313+ // value publicly.
314+ useVirtualCursor bool
315+
316+ // If promptFunc is set, it replaces Prompt as a generator for
317+ // prompt strings at the beginning of each line.
318+ promptFunc func(PromptInfo) string
319+
320+ // promptWidth is the width of the prompt.
321+ promptWidth int
322+
323+ // width is the maximum number of characters that can be displayed at once.
324+ // If 0 or less this setting is ignored.
325+ width int
326+
327+ // height is the maximum number of lines that can be displayed at once. It
328+ // essentially treats the text field like a vertically scrolling viewport
329+ // if there are more lines than the permitted height.
330+ height int
331+
332+ // Underlying text value.
333+ value [][]rune
334+
335+ // focus indicates whether user input focus should be on this input
336+ // component. When false, ignore keyboard input and hide the cursor.
337+ focus bool
338+
339+ // Cursor column.
340+ col int
341+
342+ // Cursor row.
343+ row int
344+
345+ // Last character offset, used to maintain state when the cursor is moved
346+ // vertically such that we can maintain the same navigating position.
347+ lastCharOffset int
348+
349+ // viewport is the vertically-scrollable viewport of the multi-line text
350+ // input.
351+ viewport *viewport.Model
352+
353+ // rune sanitizer for input.
354+ rsan runeutil.Sanitizer
355+}
356+
357+// New creates a new model with default settings.
358+func New() Model {
359+ vp := viewport.New()
360+ vp.KeyMap = viewport.KeyMap{}
361+ cur := cursor.New()
362+
363+ styles := DefaultDarkStyles()
364+
365+ m := Model{
366+ CharLimit: defaultCharLimit,
367+ MaxHeight: defaultMaxHeight,
368+ MaxWidth: defaultMaxWidth,
369+ Prompt: lipgloss.ThickBorder().Left + " ",
370+ styles: styles,
371+ cache: memoization.NewMemoCache[line, [][]rune](maxLines),
372+ EndOfBufferCharacter: ' ',
373+ ShowLineNumbers: true,
374+ useVirtualCursor: true,
375+ virtualCursor: cur,
376+ KeyMap: DefaultKeyMap(),
377+
378+ value: make([][]rune, minHeight, maxLines),
379+ focus: false,
380+ col: 0,
381+ row: 0,
382+
383+ viewport: &vp,
384+ }
385+
386+ m.SetHeight(defaultHeight)
387+ m.SetWidth(defaultWidth)
388+
389+ return m
390+}
391+
392+// DefaultStyles returns the default styles for focused and blurred states for
393+// the textarea.
394+func DefaultStyles(isDark bool) Styles {
395+ lightDark := lipgloss.LightDark(isDark)
396+
397+ var s Styles
398+ s.Focused = StyleState{
399+ Base: lipgloss.NewStyle(),
400+ CursorLine: lipgloss.NewStyle().Background(lightDark(lipgloss.Color("255"), lipgloss.Color("0"))),
401+ CursorLineNumber: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("240"), lipgloss.Color("240"))),
402+ EndOfBuffer: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("254"), lipgloss.Color("0"))),
403+ LineNumber: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("249"), lipgloss.Color("7"))),
404+ Placeholder: lipgloss.NewStyle().Foreground(lipgloss.Color("240")),
405+ Prompt: lipgloss.NewStyle().Foreground(lipgloss.Color("7")),
406+ Text: lipgloss.NewStyle(),
407+ }
408+ s.Blurred = StyleState{
409+ Base: lipgloss.NewStyle(),
410+ CursorLine: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("245"), lipgloss.Color("7"))),
411+ CursorLineNumber: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("249"), lipgloss.Color("7"))),
412+ EndOfBuffer: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("254"), lipgloss.Color("0"))),
413+ LineNumber: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("249"), lipgloss.Color("7"))),
414+ Placeholder: lipgloss.NewStyle().Foreground(lipgloss.Color("240")),
415+ Prompt: lipgloss.NewStyle().Foreground(lipgloss.Color("7")),
416+ Text: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("245"), lipgloss.Color("7"))),
417+ }
418+ s.Cursor = CursorStyle{
419+ Color: lipgloss.Color("7"),
420+ Shape: tea.CursorBlock,
421+ Blink: true,
422+ }
423+ return s
424+}
425+
426+// DefaultLightStyles returns the default styles for a light background.
427+func DefaultLightStyles() Styles {
428+ return DefaultStyles(false)
429+}
430+
431+// DefaultDarkStyles returns the default styles for a dark background.
432+func DefaultDarkStyles() Styles {
433+ return DefaultStyles(true)
434+}
435+
436+// Styles returns the current styles for the textarea.
437+func (m Model) Styles() Styles {
438+ return m.styles
439+}
440+
441+// SetStyles updates styling for the textarea.
442+func (m *Model) SetStyles(s Styles) {
443+ m.styles = s
444+ m.updateVirtualCursorStyle()
445+}
446+
447+// VirtualCursor returns whether or not the virtual cursor is enabled.
448+func (m Model) VirtualCursor() bool {
449+ return m.useVirtualCursor
450+}
451+
452+// SetVirtualCursor sets whether or not to use the virtual cursor.
453+func (m *Model) SetVirtualCursor(v bool) {
454+ m.useVirtualCursor = v
455+ m.updateVirtualCursorStyle()
456+}
457+
458+// updateVirtualCursorStyle sets styling on the virtual cursor based on the
459+// textarea's style settings.
460+func (m *Model) updateVirtualCursorStyle() {
461+ if !m.useVirtualCursor {
462+ m.virtualCursor.SetMode(cursor.CursorHide)
463+ return
464+ }
465+
466+ m.virtualCursor.Style = lipgloss.NewStyle().Foreground(m.styles.Cursor.Color)
467+
468+ // By default, the blink speed of the cursor is set to a default
469+ // internally.
470+ if m.styles.Cursor.Blink {
471+ if m.styles.Cursor.BlinkSpeed > 0 {
472+ m.virtualCursor.BlinkSpeed = m.styles.Cursor.BlinkSpeed
473+ }
474+ m.virtualCursor.SetMode(cursor.CursorBlink)
475+ return
476+ }
477+ m.virtualCursor.SetMode(cursor.CursorStatic)
478+}
479+
480+// SetValue sets the value of the text input.
481+func (m *Model) SetValue(s string) {
482+ m.Reset()
483+ m.InsertString(s)
484+ m.recalculateHeight()
485+}
486+
487+// InsertString inserts a string at the cursor position.
488+func (m *Model) InsertString(s string) {
489+ m.insertRunesFromUserInput([]rune(s))
490+ m.recalculateHeight()
491+}
492+
493+// InsertRune inserts a rune at the cursor position.
494+func (m *Model) InsertRune(r rune) {
495+ m.insertRunesFromUserInput([]rune{r})
496+ m.recalculateHeight()
497+}
498+
499+// insertRunesFromUserInput inserts runes at the current cursor position.
500+func (m *Model) insertRunesFromUserInput(runes []rune) {
501+ // Clean up any special characters in the input provided by the
502+ // clipboard. This avoids bugs due to e.g. tab characters and
503+ // whatnot.
504+ runes = m.san().Sanitize(runes)
505+
506+ if m.CharLimit > 0 {
507+ availSpace := m.CharLimit - m.Length()
508+ // If the char limit's been reached, cancel.
509+ if availSpace <= 0 {
510+ return
511+ }
512+ // If there's not enough space to paste the whole thing cut the pasted
513+ // runes down so they'll fit.
514+ if availSpace < len(runes) {
515+ runes = runes[:availSpace]
516+ }
517+ }
518+
519+ // Split the input into lines.
520+ var lines [][]rune
521+ lstart := 0
522+ for i := range runes {
523+ if runes[i] == '\n' {
524+ // Queue a line to become a new row in the text area below.
525+ // Beware to clamp the max capacity of the slice, to ensure no
526+ // data from different rows get overwritten when later edits
527+ // will modify this line.
528+ lines = append(lines, runes[lstart:i:i])
529+ lstart = i + 1
530+ }
531+ }
532+ if lstart <= len(runes) {
533+ // The last line did not end with a newline character.
534+ // Take it now.
535+ lines = append(lines, runes[lstart:])
536+ }
537+
538+ // Obey the maximum line limit.
539+ if maxLines > 0 && len(m.value)+len(lines)-1 > maxLines {
540+ allowedHeight := max(0, maxLines-len(m.value)+1)
541+ lines = lines[:allowedHeight]
542+ }
543+
544+ // Obey MaxContentHeight in visual rows when set.
545+ if m.MaxContentHeight > 0 {
546+ budget := m.MaxContentHeight - m.totalVisualLines()
547+ // Trim lines from the end until we fit within the budget.
548+ for len(lines) > 1 && m.visualLinesForInsert(lines) > budget {
549+ lines = lines[:len(lines)-1]
550+ }
551+ if m.visualLinesForInsert(lines) > budget {
552+ return
553+ }
554+ }
555+
556+ if len(lines) == 0 {
557+ // Nothing left to insert.
558+ return
559+ }
560+
561+ // Save the remainder of the original line at the current
562+ // cursor position.
563+ tail := make([]rune, len(m.value[m.row][m.col:]))
564+ copy(tail, m.value[m.row][m.col:])
565+
566+ // Paste the first line at the current cursor position.
567+ m.value[m.row] = append(m.value[m.row][:m.col], lines[0]...)
568+ m.col += len(lines[0])
569+
570+ if numExtraLines := len(lines) - 1; numExtraLines > 0 {
571+ // Add the new lines.
572+ // We try to reuse the slice if there's already space.
573+ var newGrid [][]rune
574+ if cap(m.value) >= len(m.value)+numExtraLines {
575+ // Can reuse the extra space.
576+ newGrid = m.value[:len(m.value)+numExtraLines]
577+ } else {
578+ // No space left; need a new slice.
579+ newGrid = make([][]rune, len(m.value)+numExtraLines)
580+ copy(newGrid, m.value[:m.row+1])
581+ }
582+ // Add all the rows that were after the cursor in the original
583+ // grid at the end of the new grid.
584+ copy(newGrid[m.row+1+numExtraLines:], m.value[m.row+1:])
585+ m.value = newGrid
586+ // Insert all the new lines in the middle.
587+ for _, l := range lines[1:] {
588+ m.row++
589+ m.value[m.row] = l
590+ m.col = len(l)
591+ }
592+ }
593+
594+ // Finally add the tail at the end of the last line inserted.
595+ m.value[m.row] = append(m.value[m.row], tail...)
596+
597+ m.SetCursorColumn(m.col)
598+}
599+
600+// Value returns the value of the text input.
601+func (m Model) Value() string {
602+ if m.value == nil {
603+ return ""
604+ }
605+
606+ var v strings.Builder
607+ for _, l := range m.value {
608+ v.WriteString(string(l))
609+ v.WriteByte('\n')
610+ }
611+
612+ return strings.TrimSuffix(v.String(), "\n")
613+}
614+
615+// Length returns the number of characters currently in the text input.
616+func (m *Model) Length() int {
617+ var l int
618+ for _, row := range m.value {
619+ l += uniseg.StringWidth(string(row))
620+ }
621+ // We add len(m.value) to include the newline characters.
622+ return l + len(m.value) - 1
623+}
624+
625+// LineCount returns the number of lines that are currently in the text input.
626+func (m *Model) LineCount() int {
627+ return len(m.value)
628+}
629+
630+// Line returns the 0-indexed row position of the cursor.
631+func (m Model) Line() int {
632+ return m.row
633+}
634+
635+// Column returns the 0-indexed column position of the cursor.
636+func (m Model) Column() int {
637+ return m.col
638+}
639+
640+// ScrollYOffset returns the Y offset (top row) index of the current view, which
641+// can be used to calculate the current scroll position.
642+func (m Model) ScrollYOffset() int {
643+ return m.viewport.YOffset()
644+}
645+
646+// ScrollPercent returns the amount of the textarea that is currently scrolled
647+// through, clamped between 0 and 1.
648+func (m Model) ScrollPercent() float64 {
649+ return m.viewport.ScrollPercent()
650+}
651+
652+// setCursorLineRelative moves the cursor by the given number of lines. Negative
653+// values move the cursor up, positive values move the cursor down.
654+func (m *Model) setCursorLineRelative(delta int) {
655+ if delta == 0 {
656+ return
657+ }
658+
659+ li := m.LineInfo()
660+ charOffset := max(m.lastCharOffset, li.CharOffset)
661+ m.lastCharOffset = charOffset
662+
663+ // 2 columns to account for the trailing space wrapping.
664+ const trailingSpace = 2
665+
666+ if delta > 0 { //nolint:nestif
667+ // Moving down.
668+ for range delta {
669+ if li.RowOffset+1 >= li.Height && m.row < len(m.value)-1 {
670+ m.row++
671+ m.col = 0
672+ } else {
673+ // Move the cursor to the start of the next virtual line.
674+ m.col = min(li.StartColumn+li.Width+trailingSpace, len(m.value[m.row])-1)
675+ }
676+ li = m.LineInfo()
677+ }
678+ } else {
679+ // Moving up.
680+ for range -delta {
681+ if li.RowOffset <= 0 && m.row > 0 {
682+ m.row--
683+ m.col = len(m.value[m.row])
684+ } else {
685+ // Move the cursor to the end of the previous line.
686+ m.col = li.StartColumn - trailingSpace
687+ }
688+ li = m.LineInfo()
689+ }
690+ }
691+
692+ nli := m.LineInfo()
693+ m.col = nli.StartColumn
694+
695+ if nli.Width <= 0 {
696+ m.repositionView()
697+ return
698+ }
699+
700+ offset := 0
701+ for offset < charOffset {
702+ if m.row >= len(m.value) || m.col >= len(m.value[m.row]) || offset >= nli.CharWidth-1 {
703+ break
704+ }
705+ offset += rw.RuneWidth(m.value[m.row][m.col])
706+ m.col++
707+ }
708+ m.repositionView()
709+}
710+
711+// CursorDown moves the cursor down by one line.
712+func (m *Model) CursorDown() {
713+ m.setCursorLineRelative(1)
714+}
715+
716+// CursorUp moves the cursor up by one line.
717+func (m *Model) CursorUp() {
718+ m.setCursorLineRelative(-1)
719+}
720+
721+// SetCursorColumn moves the cursor to the given position. If the position is
722+// out of bounds the cursor will be moved to the start or end accordingly.
723+func (m *Model) SetCursorColumn(col int) {
724+ m.col = clamp(col, 0, len(m.value[m.row]))
725+ // Any time that we move the cursor horizontally we need to reset the last
726+ // offset so that the horizontal position when navigating is adjusted.
727+ m.lastCharOffset = 0
728+}
729+
730+// CursorStart moves the cursor to the start of the input field.
731+func (m *Model) CursorStart() {
732+ m.SetCursorColumn(0)
733+}
734+
735+// CursorEnd moves the cursor to the end of the input field.
736+func (m *Model) CursorEnd() {
737+ m.SetCursorColumn(len(m.value[m.row]))
738+}
739+
740+// Focused returns the focus state on the model.
741+func (m Model) Focused() bool {
742+ return m.focus
743+}
744+
745+// activeStyle returns the appropriate set of styles to use depending on
746+// whether the textarea is focused or blurred.
747+func (m Model) activeStyle() *StyleState {
748+ if m.focus {
749+ return &m.styles.Focused
750+ }
751+ return &m.styles.Blurred
752+}
753+
754+// Focus sets the focus state on the model. When the model is in focus it can
755+// receive keyboard input and the cursor will be hidden.
756+func (m *Model) Focus() tea.Cmd {
757+ m.focus = true
758+ return m.virtualCursor.Focus()
759+}
760+
761+// Blur removes the focus state on the model. When the model is blurred it can
762+// not receive keyboard input and the cursor will be hidden.
763+func (m *Model) Blur() {
764+ m.focus = false
765+ m.virtualCursor.Blur()
766+}
767+
768+// Reset sets the input to its default state with no input.
769+func (m *Model) Reset() {
770+ m.value = make([][]rune, minHeight, maxLines)
771+ m.col = 0
772+ m.row = 0
773+ m.viewport.GotoTop()
774+ m.SetCursorColumn(0)
775+ m.recalculateHeight()
776+}
777+
778+// Word returns the word at the cursor position.
779+// A word is delimited by spaces or line-breaks.
780+func (m *Model) Word() string {
781+ line := m.value[m.row]
782+ col := m.col - 1
783+
784+ if col < 0 {
785+ return ""
786+ }
787+
788+ // If cursor is beyond the line, return empty string
789+ if col >= len(line) {
790+ return ""
791+ }
792+
793+ // If cursor is on a space, return empty string
794+ if unicode.IsSpace(line[col]) {
795+ return ""
796+ }
797+
798+ // Find the start of the word by moving left
799+ start := col
800+ for start > 0 && !unicode.IsSpace(line[start-1]) {
801+ start--
802+ }
803+
804+ // Find the end of the word by moving right
805+ end := col
806+ for end < len(line) && !unicode.IsSpace(line[end]) {
807+ end++
808+ }
809+
810+ return string(line[start:end])
811+}
812+
813+// san initializes or retrieves the rune sanitizer.
814+func (m *Model) san() runeutil.Sanitizer {
815+ if m.rsan == nil {
816+ // Textinput has all its input on a single line so collapse
817+ // newlines/tabs to single spaces.
818+ m.rsan = runeutil.NewSanitizer()
819+ }
820+ return m.rsan
821+}
822+
823+// deleteBeforeCursor deletes all text before the cursor. Returns whether or
824+// not the cursor blink should be reset.
825+func (m *Model) deleteBeforeCursor() {
826+ m.value[m.row] = m.value[m.row][m.col:]
827+ m.SetCursorColumn(0)
828+}
829+
830+// deleteAfterCursor deletes all text after the cursor. Returns whether or not
831+// the cursor blink should be reset. If input is masked delete everything after
832+// the cursor so as not to reveal word breaks in the masked input.
833+func (m *Model) deleteAfterCursor() {
834+ m.value[m.row] = m.value[m.row][:m.col]
835+ m.SetCursorColumn(len(m.value[m.row]))
836+}
837+
838+// transposeLeft exchanges the runes at the cursor and immediately
839+// before. No-op if the cursor is at the beginning of the line. If
840+// the cursor is not at the end of the line yet, moves the cursor to
841+// the right.
842+func (m *Model) transposeLeft() {
843+ if m.col == 0 || len(m.value[m.row]) < 2 {
844+ return
845+ }
846+ if m.col >= len(m.value[m.row]) {
847+ m.SetCursorColumn(m.col - 1)
848+ }
849+ m.value[m.row][m.col-1], m.value[m.row][m.col] = m.value[m.row][m.col], m.value[m.row][m.col-1]
850+ if m.col < len(m.value[m.row]) {
851+ m.SetCursorColumn(m.col + 1)
852+ }
853+}
854+
855+// deleteWordLeft deletes the word left to the cursor. Returns whether or not
856+// the cursor blink should be reset.
857+func (m *Model) deleteWordLeft() {
858+ if m.col == 0 || len(m.value[m.row]) == 0 {
859+ return
860+ }
861+
862+ // Linter note: it's critical that we acquire the initial cursor position
863+ // here prior to altering it via SetCursor() below. As such, moving this
864+ // call into the corresponding if clause does not apply here.
865+ oldCol := m.col
866+
867+ m.SetCursorColumn(m.col - 1)
868+ for unicode.IsSpace(m.value[m.row][m.col]) {
869+ if m.col <= 0 {
870+ break
871+ }
872+ // ignore series of whitespace before cursor
873+ m.SetCursorColumn(m.col - 1)
874+ }
875+
876+ for m.col > 0 {
877+ if !unicode.IsSpace(m.value[m.row][m.col]) {
878+ m.SetCursorColumn(m.col - 1)
879+ } else {
880+ if m.col > 0 {
881+ // keep the previous space
882+ m.SetCursorColumn(m.col + 1)
883+ }
884+ break
885+ }
886+ }
887+
888+ if oldCol > len(m.value[m.row]) {
889+ m.value[m.row] = m.value[m.row][:m.col]
890+ } else {
891+ m.value[m.row] = append(m.value[m.row][:m.col], m.value[m.row][oldCol:]...)
892+ }
893+}
894+
895+// deleteWordRight deletes the word right to the cursor.
896+func (m *Model) deleteWordRight() {
897+ if m.col >= len(m.value[m.row]) || len(m.value[m.row]) == 0 {
898+ return
899+ }
900+
901+ oldCol := m.col
902+
903+ for m.col < len(m.value[m.row]) && unicode.IsSpace(m.value[m.row][m.col]) {
904+ // ignore series of whitespace after cursor
905+ m.SetCursorColumn(m.col + 1)
906+ }
907+
908+ for m.col < len(m.value[m.row]) {
909+ if !unicode.IsSpace(m.value[m.row][m.col]) {
910+ m.SetCursorColumn(m.col + 1)
911+ } else {
912+ break
913+ }
914+ }
915+
916+ if m.col > len(m.value[m.row]) {
917+ m.value[m.row] = m.value[m.row][:oldCol]
918+ } else {
919+ m.value[m.row] = append(m.value[m.row][:oldCol], m.value[m.row][m.col:]...)
920+ }
921+
922+ m.SetCursorColumn(oldCol)
923+}
924+
925+// characterRight moves the cursor one character to the right.
926+func (m *Model) characterRight() {
927+ if m.col < len(m.value[m.row]) {
928+ m.SetCursorColumn(m.col + 1)
929+ } else {
930+ if m.row < len(m.value)-1 {
931+ m.row++
932+ m.CursorStart()
933+ }
934+ }
935+}
936+
937+// characterLeft moves the cursor one character to the left.
938+// If insideLine is set, the cursor is moved to the last
939+// character in the previous line, instead of one past that.
940+func (m *Model) characterLeft(insideLine bool) {
941+ if m.col == 0 && m.row != 0 {
942+ m.row--
943+ m.CursorEnd()
944+ if !insideLine {
945+ return
946+ }
947+ }
948+ if m.col > 0 {
949+ m.SetCursorColumn(m.col - 1)
950+ }
951+}
952+
953+// wordLeft moves the cursor one word to the left. Returns whether or not the
954+// cursor blink should be reset. If input is masked, move input to the start
955+// so as not to reveal word breaks in the masked input.
956+func (m *Model) wordLeft() {
957+ for {
958+ m.characterLeft(true /* insideLine */)
959+ if m.col < len(m.value[m.row]) && !unicode.IsSpace(m.value[m.row][m.col]) {
960+ break
961+ }
962+ }
963+
964+ for m.col > 0 {
965+ if unicode.IsSpace(m.value[m.row][m.col-1]) {
966+ break
967+ }
968+ m.SetCursorColumn(m.col - 1)
969+ }
970+}
971+
972+// wordRight moves the cursor one word to the right. Returns whether or not the
973+// cursor blink should be reset. If the input is masked, move input to the end
974+// so as not to reveal word breaks in the masked input.
975+func (m *Model) wordRight() {
976+ m.doWordRight(func(int, int) { /* nothing */ })
977+}
978+
979+func (m *Model) doWordRight(fn func(charIdx int, pos int)) {
980+ // Skip spaces forward.
981+ for m.col >= len(m.value[m.row]) || unicode.IsSpace(m.value[m.row][m.col]) {
982+ if m.row == len(m.value)-1 && m.col == len(m.value[m.row]) {
983+ // End of text.
984+ break
985+ }
986+ m.characterRight()
987+ }
988+
989+ charIdx := 0
990+ for m.col < len(m.value[m.row]) {
991+ if unicode.IsSpace(m.value[m.row][m.col]) {
992+ break
993+ }
994+ fn(charIdx, m.col)
995+ m.SetCursorColumn(m.col + 1)
996+ charIdx++
997+ }
998+}
999+
1000+// uppercaseRight changes the word to the right to uppercase.
1001+func (m *Model) uppercaseRight() {
1002+ m.doWordRight(func(_ int, i int) {
1003+ m.value[m.row][i] = unicode.ToUpper(m.value[m.row][i])
1004+ })
1005+}
1006+
1007+// lowercaseRight changes the word to the right to lowercase.
1008+func (m *Model) lowercaseRight() {
1009+ m.doWordRight(func(_ int, i int) {
1010+ m.value[m.row][i] = unicode.ToLower(m.value[m.row][i])
1011+ })
1012+}
1013+
1014+// capitalizeRight changes the word to the right to title case.
1015+func (m *Model) capitalizeRight() {
1016+ m.doWordRight(func(charIdx int, i int) {
1017+ if charIdx == 0 {
1018+ m.value[m.row][i] = unicode.ToTitle(m.value[m.row][i])
1019+ }
1020+ })
1021+}
1022+
1023+// LineInfo returns the number of characters from the start of the
1024+// (soft-wrapped) line and the (soft-wrapped) line width.
1025+func (m Model) LineInfo() LineInfo {
1026+ grid := m.memoizedWrap(m.value[m.row], m.width)
1027+
1028+ // Find out which line we are currently on. This can be determined by the
1029+ // m.col and counting the number of runes that we need to skip.
1030+ var counter int
1031+ for i, line := range grid {
1032+ // We've found the line that we are on
1033+ if counter+len(line) == m.col && i+1 < len(grid) {
1034+ // We wrap around to the next line if we are at the end of the
1035+ // previous line so that we can be at the very beginning of the row
1036+ return LineInfo{
1037+ CharOffset: 0,
1038+ ColumnOffset: 0,
1039+ Height: len(grid),
1040+ RowOffset: i + 1,
1041+ StartColumn: m.col,
1042+ Width: len(grid[i+1]),
1043+ CharWidth: uniseg.StringWidth(string(line)),
1044+ }
1045+ }
1046+
1047+ if counter+len(line) >= m.col {
1048+ return LineInfo{
1049+ CharOffset: uniseg.StringWidth(string(line[:max(0, m.col-counter)])),
1050+ ColumnOffset: m.col - counter,
1051+ Height: len(grid),
1052+ RowOffset: i,
1053+ StartColumn: counter,
1054+ Width: len(line),
1055+ CharWidth: uniseg.StringWidth(string(line)),
1056+ }
1057+ }
1058+
1059+ counter += len(line)
1060+ }
1061+ return LineInfo{}
1062+}
1063+
1064+// repositionView repositions the view of the viewport based on the defined
1065+// scrolling behavior.
1066+func (m *Model) repositionView() {
1067+ minimum := m.viewport.YOffset()
1068+ maximum := minimum + m.viewport.Height() - 1
1069+ if row := m.cursorLineNumber(); row < minimum {
1070+ m.viewport.ScrollUp(minimum - row)
1071+ } else if row > maximum {
1072+ m.viewport.ScrollDown(row - maximum)
1073+ }
1074+}
1075+
1076+// Width returns the width of the textarea.
1077+func (m Model) Width() int {
1078+ return m.width
1079+}
1080+
1081+// MoveToBegin moves the cursor to the beginning of the input.
1082+func (m *Model) MoveToBegin() {
1083+ m.row = 0
1084+ m.SetCursorColumn(0)
1085+ m.repositionView()
1086+}
1087+
1088+// MoveToEnd moves the cursor to the end of the input.
1089+func (m *Model) MoveToEnd() {
1090+ m.row = len(m.value) - 1
1091+ m.SetCursorColumn(len(m.value[m.row]))
1092+ m.repositionView()
1093+}
1094+
1095+// PageUp moves the cursor up by one page. First call snaps to the first visible
1096+// line, subsequent calls move up by a full page.
1097+func (m *Model) PageUp() {
1098+ // If not on the first visible line, snap to it.
1099+ if offset := m.viewport.YOffset() - m.cursorLineNumber(); offset < 0 {
1100+ m.setCursorLineRelative(offset)
1101+ return
1102+ }
1103+
1104+ // Already on first visible line, move up by a full page.
1105+ m.setCursorLineRelative(-m.height)
1106+}
1107+
1108+// PageDown moves the cursor down by one page. First call snaps to the last
1109+// visible line, subsequent calls move down by a full page.
1110+func (m *Model) PageDown() {
1111+ // If not on the last visible line, snap to it.
1112+ if offset := m.cursorLineNumber() - m.viewport.YOffset(); offset < m.height-1 {
1113+ m.setCursorLineRelative(m.height - 1 - offset)
1114+ return
1115+ }
1116+
1117+ // Already on last visible line, move down by a full page.
1118+ m.setCursorLineRelative(m.height)
1119+}
1120+
1121+// SetWidth sets the width of the textarea to fit exactly within the given width.
1122+// This means that the textarea will account for the width of the prompt and
1123+// whether or not line numbers are being shown.
1124+//
1125+// Ensure that SetWidth is called after setting the Prompt and ShowLineNumbers,
1126+// It is important that the width of the textarea be exactly the given width
1127+// and no more.
1128+func (m *Model) SetWidth(w int) {
1129+ // Update prompt width only if there is no prompt function as
1130+ // [SetPromptFunc] updates the prompt width when it is called.
1131+ if m.promptFunc == nil {
1132+ // XXX: Do we even need this or can we calculate the prompt width
1133+ // at render time?
1134+ m.promptWidth = uniseg.StringWidth(m.Prompt)
1135+ }
1136+
1137+ // Add base style borders and padding to reserved outer width.
1138+ reservedOuter := m.activeStyle().Base.GetHorizontalFrameSize()
1139+
1140+ // Add prompt width to reserved inner width.
1141+ reservedInner := m.promptWidth
1142+
1143+ // Add line number width to reserved inner width.
1144+ if m.ShowLineNumbers {
1145+ // XXX: this was originally documented as needing "1 cell" but was,
1146+ // in practice, effectively hardcoded to 2 cells. We can, and should,
1147+ // reduce this to one gap and update the tests accordingly.
1148+ const gap = 2
1149+
1150+ // Number of digits plus 1 cell for the margin.
1151+ reservedInner += numDigits(m.MaxHeight) + gap
1152+ }
1153+
1154+ // Input width must be at least one more than the reserved inner and outer
1155+ // width. This gives us a minimum input width of 1.
1156+ minWidth := reservedInner + reservedOuter + 1
1157+ inputWidth := max(w, minWidth)
1158+
1159+ // Input width must be no more than maximum width.
1160+ if m.MaxWidth > 0 {
1161+ inputWidth = min(inputWidth, m.MaxWidth)
1162+ }
1163+
1164+ // Since the width of the viewport and input area is dependent on the width of
1165+ // borders, prompt and line numbers, we need to calculate it by subtracting
1166+ // the reserved width from them.
1167+
1168+ m.viewport.SetWidth(inputWidth - reservedOuter)
1169+ m.width = inputWidth - reservedOuter - reservedInner
1170+ m.recalculateHeight()
1171+}
1172+
1173+// SetPromptFunc supersedes the Prompt field and sets a dynamic prompt instead.
1174+//
1175+// If the function returns a prompt that is shorter than the specified
1176+// promptWidth, it will be padded to the left. If it returns a prompt that is
1177+// longer, display artifacts may occur; the caller is responsible for computing
1178+// an adequate promptWidth.
1179+func (m *Model) SetPromptFunc(promptWidth int, fn func(PromptInfo) string) {
1180+ m.promptFunc = fn
1181+ m.promptWidth = promptWidth
1182+}
1183+
1184+// Height returns the current height of the textarea.
1185+func (m Model) Height() int {
1186+ return m.height
1187+}
1188+
1189+// SetHeight sets the height of the textarea.
1190+func (m *Model) SetHeight(h int) {
1191+ if m.MaxHeight > 0 {
1192+ m.height = clamp(h, minHeight, m.MaxHeight)
1193+ m.viewport.SetHeight(clamp(h, minHeight, m.MaxHeight))
1194+ } else {
1195+ m.height = max(h, minHeight)
1196+ m.viewport.SetHeight(max(h, minHeight))
1197+ }
1198+
1199+ m.repositionView()
1200+}
1201+
1202+// Update is the Bubble Tea update loop.
1203+func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
1204+ if !m.focus {
1205+ m.virtualCursor.Blur()
1206+ return m, nil
1207+ }
1208+
1209+ // Used to determine if the cursor should blink.
1210+ oldRow, oldCol := m.cursorLineNumber(), m.col
1211+
1212+ var cmds []tea.Cmd
1213+
1214+ if m.value[m.row] == nil {
1215+ m.value[m.row] = make([]rune, 0)
1216+ }
1217+
1218+ if m.MaxHeight > 0 && m.MaxHeight != m.cache.Capacity() {
1219+ m.cache = memoization.NewMemoCache[line, [][]rune](m.MaxHeight)
1220+ }
1221+
1222+ switch msg := msg.(type) {
1223+ case tea.PasteMsg:
1224+ m.insertRunesFromUserInput([]rune(msg.Content))
1225+ case tea.KeyPressMsg:
1226+ switch {
1227+ case key.Matches(msg, m.KeyMap.DeleteAfterCursor):
1228+ m.col = clamp(m.col, 0, len(m.value[m.row]))
1229+ if m.col >= len(m.value[m.row]) {
1230+ m.mergeLineBelow(m.row)
1231+ break
1232+ }
1233+ m.deleteAfterCursor()
1234+ case key.Matches(msg, m.KeyMap.DeleteBeforeCursor):
1235+ m.col = clamp(m.col, 0, len(m.value[m.row]))
1236+ if m.col <= 0 {
1237+ m.mergeLineAbove(m.row)
1238+ break
1239+ }
1240+ m.deleteBeforeCursor()
1241+ case key.Matches(msg, m.KeyMap.DeleteCharacterBackward):
1242+ m.col = clamp(m.col, 0, len(m.value[m.row]))
1243+ if m.col <= 0 {
1244+ m.mergeLineAbove(m.row)
1245+ break
1246+ }
1247+ if len(m.value[m.row]) > 0 {
1248+ m.value[m.row] = append(m.value[m.row][:max(0, m.col-1)], m.value[m.row][m.col:]...)
1249+ if m.col > 0 {
1250+ m.SetCursorColumn(m.col - 1)
1251+ }
1252+ }
1253+ case key.Matches(msg, m.KeyMap.DeleteCharacterForward):
1254+ if len(m.value[m.row]) > 0 && m.col < len(m.value[m.row]) {
1255+ m.value[m.row] = slices.Delete(m.value[m.row], m.col, m.col+1)
1256+ }
1257+ if m.col >= len(m.value[m.row]) {
1258+ m.mergeLineBelow(m.row)
1259+ break
1260+ }
1261+ case key.Matches(msg, m.KeyMap.DeleteWordBackward):
1262+ if m.col <= 0 {
1263+ m.mergeLineAbove(m.row)
1264+ break
1265+ }
1266+ m.deleteWordLeft()
1267+ case key.Matches(msg, m.KeyMap.DeleteWordForward):
1268+ m.col = clamp(m.col, 0, len(m.value[m.row]))
1269+ if m.col >= len(m.value[m.row]) {
1270+ m.mergeLineBelow(m.row)
1271+ break
1272+ }
1273+ m.deleteWordRight()
1274+ case key.Matches(msg, m.KeyMap.InsertNewline):
1275+ if m.atContentLimit() {
1276+ return m, nil
1277+ }
1278+ m.col = clamp(m.col, 0, len(m.value[m.row]))
1279+ m.splitLine(m.row, m.col)
1280+ case key.Matches(msg, m.KeyMap.LineEnd):
1281+ m.CursorEnd()
1282+ case key.Matches(msg, m.KeyMap.LineStart):
1283+ m.CursorStart()
1284+ case key.Matches(msg, m.KeyMap.CharacterForward):
1285+ m.characterRight()
1286+ case key.Matches(msg, m.KeyMap.LineNext):
1287+ m.CursorDown()
1288+ case key.Matches(msg, m.KeyMap.WordForward):
1289+ m.wordRight()
1290+ case key.Matches(msg, m.KeyMap.Paste):
1291+ return m, Paste
1292+ case key.Matches(msg, m.KeyMap.CharacterBackward):
1293+ m.characterLeft(false /* insideLine */)
1294+ case key.Matches(msg, m.KeyMap.LinePrevious):
1295+ m.CursorUp()
1296+ case key.Matches(msg, m.KeyMap.WordBackward):
1297+ m.wordLeft()
1298+ case key.Matches(msg, m.KeyMap.InputBegin):
1299+ m.MoveToBegin()
1300+ case key.Matches(msg, m.KeyMap.InputEnd):
1301+ m.MoveToEnd()
1302+ case key.Matches(msg, m.KeyMap.PageUp):
1303+ m.PageUp()
1304+ case key.Matches(msg, m.KeyMap.PageDown):
1305+ m.PageDown()
1306+ case key.Matches(msg, m.KeyMap.LowercaseWordForward):
1307+ m.lowercaseRight()
1308+ case key.Matches(msg, m.KeyMap.UppercaseWordForward):
1309+ m.uppercaseRight()
1310+ case key.Matches(msg, m.KeyMap.CapitalizeWordForward):
1311+ m.capitalizeRight()
1312+ case key.Matches(msg, m.KeyMap.TransposeCharacterBackward):
1313+ m.transposeLeft()
1314+
1315+ default:
1316+ m.insertRunesFromUserInput([]rune(msg.Text))
1317+ }
1318+
1319+ case pasteMsg:
1320+ m.insertRunesFromUserInput([]rune(msg))
1321+
1322+ case pasteErrMsg:
1323+ m.Err = msg
1324+ }
1325+
1326+ m.recalculateHeight()
1327+
1328+ // Make sure we set the content of the viewport before updating it.
1329+ view := m.view()
1330+ m.viewport.SetContent(view)
1331+ vp, cmd := m.viewport.Update(msg)
1332+ m.viewport = &vp
1333+ cmds = append(cmds, cmd)
1334+
1335+ if m.useVirtualCursor {
1336+ m.virtualCursor, cmd = m.virtualCursor.Update(msg)
1337+
1338+ // If the cursor has moved, reset the blink state. This is a small UX
1339+ // nuance that makes cursor movement obvious and feel snappy.
1340+ newRow, newCol := m.cursorLineNumber(), m.col
1341+ if (newRow != oldRow || newCol != oldCol) && m.virtualCursor.Mode() == cursor.CursorBlink {
1342+ m.virtualCursor.IsBlinked = false
1343+ cmd = m.virtualCursor.Blink()
1344+ }
1345+ cmds = append(cmds, cmd)
1346+ }
1347+
1348+ m.repositionView()
1349+
1350+ return m, tea.Batch(cmds...)
1351+}
1352+
1353+func (m *Model) view() string {
1354+ if len(m.Value()) == 0 && m.row == 0 && m.col == 0 && m.Placeholder != "" {
1355+ return m.placeholderView()
1356+ }
1357+ m.virtualCursor.TextStyle = m.activeStyle().computedCursorLine()
1358+
1359+ var (
1360+ s strings.Builder
1361+ style lipgloss.Style
1362+ newLines int
1363+ widestLineNumber int
1364+ lineInfo = m.LineInfo()
1365+ styles = m.activeStyle()
1366+ )
1367+
1368+ displayLine := 0
1369+ for l, line := range m.value {
1370+ wrappedLines := m.memoizedWrap(line, m.width)
1371+
1372+ if m.row == l {
1373+ style = styles.computedCursorLine()
1374+ } else {
1375+ style = styles.computedText()
1376+ }
1377+
1378+ for wl, wrappedLine := range wrappedLines {
1379+ prompt := m.promptView(displayLine)
1380+ s.WriteString(style.Render(prompt))
1381+ displayLine++
1382+
1383+ var ln string
1384+ if m.ShowLineNumbers {
1385+ if wl == 0 { // normal line
1386+ isCursorLine := m.row == l
1387+ s.WriteString(m.lineNumberView(l+1, isCursorLine))
1388+ } else { // soft wrapped line
1389+ isCursorLine := m.row == l
1390+ s.WriteString(m.lineNumberView(-1, isCursorLine))
1391+ }
1392+ }
1393+
1394+ // Note the widest line number for padding purposes later.
1395+ lnw := uniseg.StringWidth(ln)
1396+ if lnw > widestLineNumber {
1397+ widestLineNumber = lnw
1398+ }
1399+
1400+ strwidth := uniseg.StringWidth(string(wrappedLine))
1401+ padding := m.width - strwidth
1402+ // If the trailing space causes the line to be wider than the
1403+ // width, we should not draw it to the screen since it will result
1404+ // in an extra space at the end of the line which can look off when
1405+ // the cursor line is showing.
1406+ if strwidth > m.width {
1407+ // The character causing the line to be wider than the width is
1408+ // guaranteed to be a space since any other character would
1409+ // have been wrapped.
1410+ wrappedLine = []rune(strings.TrimSuffix(string(wrappedLine), " "))
1411+ padding -= m.width - strwidth
1412+ }
1413+ if m.row == l && lineInfo.RowOffset == wl {
1414+ s.WriteString(style.Render(string(wrappedLine[:lineInfo.ColumnOffset])))
1415+ if m.col >= len(line) && lineInfo.CharOffset >= m.width {
1416+ m.virtualCursor.SetChar(" ")
1417+ s.WriteString(m.virtualCursor.View())
1418+ } else {
1419+ m.virtualCursor.SetChar(string(wrappedLine[lineInfo.ColumnOffset]))
1420+ s.WriteString(style.Render(m.virtualCursor.View()))
1421+ s.WriteString(style.Render(string(wrappedLine[lineInfo.ColumnOffset+1:])))
1422+ }
1423+ } else {
1424+ s.WriteString(style.Render(string(wrappedLine)))
1425+ }
1426+ s.WriteString(style.Render(strings.Repeat(" ", max(0, padding))))
1427+ s.WriteRune('\n')
1428+ newLines++
1429+ }
1430+ }
1431+
1432+ // Always show at least `m.Height` lines at all times.
1433+ // To do this we can simply pad out a few extra new lines in the view.
1434+ for range m.height {
1435+ s.WriteString(m.promptView(displayLine))
1436+ displayLine++
1437+
1438+ // Write end of buffer content
1439+ leftGutter := string(m.EndOfBufferCharacter)
1440+ rightGapWidth := m.Width() - uniseg.StringWidth(leftGutter) + widestLineNumber
1441+ rightGap := strings.Repeat(" ", max(0, rightGapWidth))
1442+ s.WriteString(styles.computedEndOfBuffer().Render(leftGutter + rightGap))
1443+ s.WriteRune('\n')
1444+ }
1445+
1446+ return s.String()
1447+}
1448+
1449+// View renders the text area in its current state.
1450+func (m Model) View() string {
1451+ // XXX: This is a workaround for the case where the viewport hasn't
1452+ // been initialized yet like during the initial render. In that case,
1453+ // we need to render the view again because Update hasn't been called
1454+ // yet to set the content of the viewport.
1455+ m.viewport.SetContent(m.view())
1456+ view := m.viewport.View()
1457+ styles := m.activeStyle()
1458+ return styles.Base.Render(view)
1459+}
1460+
1461+// promptView renders a single line of the prompt.
1462+func (m Model) promptView(displayLine int) (prompt string) {
1463+ prompt = m.Prompt
1464+ if m.promptFunc != nil {
1465+ prompt = m.promptFunc(PromptInfo{
1466+ LineNumber: displayLine,
1467+ Focused: m.focus,
1468+ })
1469+ width := lipgloss.Width(prompt)
1470+ if width < m.promptWidth {
1471+ prompt = fmt.Sprintf("%*s%s", m.promptWidth-width, "", prompt)
1472+ }
1473+ }
1474+
1475+ return m.activeStyle().computedPrompt().Render(prompt)
1476+}
1477+
1478+// lineNumberView renders the line number.
1479+//
1480+// If the argument is less than 0, a space styled as a line number is returned
1481+// instead. Such cases are used for soft-wrapped lines.
1482+//
1483+// The second argument indicates whether this line number is for a 'cursorline'
1484+// line number.
1485+func (m Model) lineNumberView(n int, isCursorLine bool) (str string) {
1486+ if !m.ShowLineNumbers {
1487+ return ""
1488+ }
1489+
1490+ if n <= 0 {
1491+ str = " "
1492+ } else {
1493+ str = strconv.Itoa(n)
1494+ }
1495+
1496+ // XXX: is textStyle really necessary here?
1497+ textStyle := m.activeStyle().computedText()
1498+ lineNumberStyle := m.activeStyle().computedLineNumber()
1499+ if isCursorLine {
1500+ textStyle = m.activeStyle().computedCursorLine()
1501+ lineNumberStyle = m.activeStyle().computedCursorLineNumber()
1502+ }
1503+
1504+ // Format line number dynamically based on the maximum number of lines.
1505+ digits := len(strconv.Itoa(m.MaxHeight))
1506+ str = fmt.Sprintf(" %*v ", digits, str)
1507+
1508+ return textStyle.Render(lineNumberStyle.Render(str))
1509+}
1510+
1511+// placeholderView returns the prompt and placeholder, if any.
1512+func (m Model) placeholderView() string {
1513+ var (
1514+ s strings.Builder
1515+ p = m.Placeholder
1516+ styles = m.activeStyle()
1517+ )
1518+ // word wrap lines
1519+ pwordwrap := ansi.Wordwrap(p, m.width, "")
1520+ // hard wrap lines (handles lines that could not be word wrapped)
1521+ pwrap := ansi.Hardwrap(pwordwrap, m.width, true)
1522+ // split string by new lines
1523+ plines := strings.Split(strings.TrimSpace(pwrap), "\n")
1524+
1525+ for i := range m.height {
1526+ isLineNumber := len(plines) > i
1527+
1528+ lineStyle := styles.computedPlaceholder()
1529+ if len(plines) > i {
1530+ lineStyle = styles.computedCursorLine()
1531+ }
1532+
1533+ // render prompt
1534+ prompt := m.promptView(i)
1535+ s.WriteString(lineStyle.Render(prompt))
1536+
1537+ // when show line numbers enabled:
1538+ // - render line number for only the cursor line
1539+ // - indent other placeholder lines
1540+ // this is consistent with vim with line numbers enabled
1541+ if m.ShowLineNumbers {
1542+ var ln int
1543+
1544+ switch {
1545+ case i == 0:
1546+ ln = i + 1
1547+ fallthrough
1548+ case len(plines) > i:
1549+ s.WriteString(m.lineNumberView(ln, isLineNumber))
1550+ default:
1551+ }
1552+ }
1553+
1554+ switch {
1555+ // first line
1556+ case i == 0:
1557+ // first character of first line as cursor with character
1558+ m.virtualCursor.TextStyle = styles.computedPlaceholder()
1559+
1560+ ch, rest, _, _ := uniseg.FirstGraphemeClusterInString(plines[0], 0)
1561+ m.virtualCursor.SetChar(ch)
1562+ s.WriteString(lineStyle.Render(m.virtualCursor.View()))
1563+
1564+ // the rest of the first line
1565+ s.WriteString(lineStyle.Render(styles.computedPlaceholder().Render(rest)))
1566+
1567+ // extend the first line with spaces to fill the width, so that
1568+ // the entire line is filled when cursorline is enabled.
1569+ gap := strings.Repeat(" ", max(0, m.width-lipgloss.Width(plines[0])))
1570+ s.WriteString(lineStyle.Render(gap))
1571+ // remaining lines
1572+ case len(plines) > i:
1573+ // current line placeholder text
1574+ if len(plines) > i {
1575+ placeholderLine := plines[i]
1576+ gap := strings.Repeat(" ", max(0, m.width-uniseg.StringWidth(plines[i])))
1577+ s.WriteString(lineStyle.Render(placeholderLine + gap))
1578+ }
1579+ default:
1580+ // end of line buffer character
1581+ eob := styles.computedEndOfBuffer().Render(string(m.EndOfBufferCharacter))
1582+ s.WriteString(eob)
1583+ }
1584+
1585+ // terminate with new line
1586+ s.WriteRune('\n')
1587+ }
1588+
1589+ m.viewport.SetContent(s.String())
1590+ return styles.Base.Render(m.viewport.View())
1591+}
1592+
1593+// Blink returns the blink command for the virtual cursor.
1594+func Blink() tea.Msg {
1595+ return cursor.Blink()
1596+}
1597+
1598+// Cursor returns a [tea.Cursor] for rendering a real cursor in a Bubble Tea
1599+// program. This requires that [Model.VirtualCursor] is set to false.
1600+//
1601+// Note that you will almost certainly also need to adjust the offset cursor
1602+// position per the textarea's per the textarea's position in the terminal.
1603+//
1604+// Example:
1605+//
1606+// // In your top-level View function:
1607+// f := tea.NewFrame(m.textarea.View())
1608+// f.Cursor = m.textarea.Cursor()
1609+// f.Cursor.Position.X += offsetX
1610+// f.Cursor.Position.Y += offsetY
1611+func (m Model) Cursor() *tea.Cursor {
1612+ if m.useVirtualCursor || !m.Focused() {
1613+ return nil
1614+ }
1615+
1616+ lineInfo := m.LineInfo()
1617+ w := lipgloss.Width
1618+ baseStyle := m.activeStyle().Base
1619+
1620+ xOffset := lineInfo.CharOffset +
1621+ w(m.promptView(0)) +
1622+ w(m.lineNumberView(0, false)) +
1623+ baseStyle.GetMarginLeft() +
1624+ baseStyle.GetPaddingLeft() +
1625+ baseStyle.GetBorderLeftSize()
1626+
1627+ yOffset := m.cursorLineNumber() -
1628+ m.viewport.YOffset() +
1629+ baseStyle.GetMarginTop() +
1630+ baseStyle.GetPaddingTop() +
1631+ baseStyle.GetBorderTopSize()
1632+
1633+ c := tea.NewCursor(xOffset, yOffset)
1634+ c.Blink = m.styles.Cursor.Blink
1635+ c.Color = m.styles.Cursor.Color
1636+ c.Shape = m.styles.Cursor.Shape
1637+ return c
1638+}
1639+
1640+func (m Model) memoizedWrap(runes []rune, width int) [][]rune {
1641+ input := line{runes: runes, width: width}
1642+ if v, ok := m.cache.Get(input); ok {
1643+ return v
1644+ }
1645+ v := wrap(runes, width)
1646+ m.cache.Set(input, v)
1647+ return v
1648+}
1649+
1650+// cursorLineNumber returns the line number that the cursor is on.
1651+// This accounts for soft wrapped lines.
1652+func (m Model) cursorLineNumber() int {
1653+ line := 0
1654+ for i := range m.row {
1655+ // Calculate the number of lines that the current line will be split
1656+ // into.
1657+ line += len(m.memoizedWrap(m.value[i], m.width))
1658+ }
1659+ line += m.LineInfo().RowOffset
1660+ return line
1661+}
1662+
1663+// totalVisualLines returns the total number of display lines across all
1664+// logical lines, accounting for soft wraps.
1665+func (m *Model) totalVisualLines() int {
1666+ n := 0
1667+ for _, line := range m.value {
1668+ n += len(m.memoizedWrap(line, m.width))
1669+ }
1670+ return n
1671+}
1672+
1673+// recalculateHeight recomputes and applies the textarea height based on
1674+// content when DynamicHeight is enabled. It is a no-op otherwise.
1675+func (m *Model) recalculateHeight() {
1676+ if !m.DynamicHeight {
1677+ return
1678+ }
1679+ minH := max(m.MinHeight, minHeight)
1680+ total := m.totalVisualLines()
1681+ h := max(total, minH)
1682+ if m.MaxHeight > 0 {
1683+ h = min(h, m.MaxHeight)
1684+ }
1685+ if maxOffset := total - h; m.viewport.YOffset() > maxOffset {
1686+ m.viewport.SetYOffset(max(0, maxOffset))
1687+ }
1688+ m.SetHeight(h)
1689+}
1690+
1691+// atContentLimit reports whether the textarea has reached its content limit.
1692+// When MaxContentHeight is set (> 0), it checks total visual lines.
1693+// Otherwise it falls back to the legacy MaxHeight logical-line check for
1694+// backward compatibility.
1695+func (m *Model) atContentLimit() bool {
1696+ if m.MaxContentHeight > 0 {
1697+ return m.totalVisualLines() >= m.MaxContentHeight
1698+ }
1699+ return m.MaxHeight > 0 && len(m.value) >= m.MaxHeight
1700+}
1701+
1702+// visualLinesForInsert estimates how many additional visual lines would result
1703+// from inserting the given lines at the current cursor position. The first
1704+// element merges into the current line; subsequent elements become new lines.
1705+func (m *Model) visualLinesForInsert(lines [][]rune) int {
1706+ if len(lines) == 0 {
1707+ return 0
1708+ }
1709+
1710+ // The current row's visual line count before insertion.
1711+ currentRowVisual := len(m.memoizedWrap(m.value[m.row], m.width))
1712+
1713+ // Simulate merging the first paste line into the current row.
1714+ merged := make([]rune, m.col+len(lines[0]))
1715+ copy(merged, m.value[m.row][:m.col])
1716+ copy(merged[m.col:], lines[0])
1717+ if len(lines) == 1 {
1718+ merged = append(merged, m.value[m.row][m.col:]...)
1719+ }
1720+ delta := len(m.memoizedWrap(merged, m.width)) - currentRowVisual
1721+
1722+ // Each additional line is a new logical line.
1723+ for i, content := range lines {
1724+ if i == len(lines)-1 {
1725+ content = append(content, m.value[m.row][m.col:]...)
1726+ }
1727+ delta += len(m.memoizedWrap(content, m.width))
1728+ }
1729+
1730+ return delta
1731+}
1732+
1733+// mergeLineBelow merges the current line the cursor is on with the line below.
1734+func (m *Model) mergeLineBelow(row int) {
1735+ if row >= len(m.value)-1 {
1736+ return
1737+ }
1738+
1739+ // To perform a merge, we will need to combine the two lines and then
1740+ m.value[row] = append(m.value[row], m.value[row+1]...)
1741+
1742+ // Shift all lines up by one
1743+ for i := row + 1; i < len(m.value)-1; i++ {
1744+ m.value[i] = m.value[i+1]
1745+ }
1746+
1747+ // And, remove the last line
1748+ if len(m.value) > 0 {
1749+ m.value = m.value[:len(m.value)-1]
1750+ }
1751+}
1752+
1753+// mergeLineAbove merges the current line the cursor is on with the line above.
1754+func (m *Model) mergeLineAbove(row int) {
1755+ if row <= 0 {
1756+ return
1757+ }
1758+
1759+ m.col = len(m.value[row-1])
1760+ m.row = m.row - 1
1761+
1762+ // To perform a merge, we will need to combine the two lines and then
1763+ m.value[row-1] = append(m.value[row-1], m.value[row]...)
1764+
1765+ // Shift all lines up by one
1766+ for i := row; i < len(m.value)-1; i++ {
1767+ m.value[i] = m.value[i+1]
1768+ }
1769+
1770+ // And, remove the last line
1771+ if len(m.value) > 0 {
1772+ m.value = m.value[:len(m.value)-1]
1773+ }
1774+}
1775+
1776+func (m *Model) splitLine(row, col int) {
1777+ // To perform a split, take the current line and keep the content before
1778+ // the cursor, take the content after the cursor and make it the content of
1779+ // the line underneath, and shift the remaining lines down by one
1780+ head, tailSrc := m.value[row][:col], m.value[row][col:]
1781+ tail := make([]rune, len(tailSrc))
1782+ copy(tail, tailSrc)
1783+
1784+ m.value = append(m.value[:row+1], m.value[row:]...)
1785+
1786+ m.value[row] = head
1787+ m.value[row+1] = tail
1788+
1789+ m.col = 0
1790+ m.row++
1791+}
1792+
1793+// Paste is a command for pasting from the clipboard into the text input.
1794+func Paste() tea.Msg {
1795+ str, err := clipboard.ReadAll()
1796+ if err != nil {
1797+ return pasteErrMsg{err}
1798+ }
1799+ return pasteMsg(str)
1800+}
1801+
1802+func wrap(runes []rune, width int) [][]rune {
1803+ var (
1804+ lines = [][]rune{{}}
1805+ word = []rune{}
1806+ row int
1807+ spaces int
1808+ )
1809+
1810+ // Word wrap the runes
1811+ for _, r := range runes {
1812+ if unicode.IsSpace(r) {
1813+ spaces++
1814+ } else {
1815+ word = append(word, r)
1816+ }
1817+
1818+ if spaces > 0 { //nolint:nestif
1819+ if uniseg.StringWidth(string(lines[row]))+uniseg.StringWidth(string(word))+spaces > width {
1820+ row++
1821+ lines = append(lines, []rune{})
1822+ lines[row] = append(lines[row], word...)
1823+ lines[row] = append(lines[row], repeatSpaces(spaces)...)
1824+ spaces = 0
1825+ word = nil
1826+ } else {
1827+ lines[row] = append(lines[row], word...)
1828+ lines[row] = append(lines[row], repeatSpaces(spaces)...)
1829+ spaces = 0
1830+ word = nil
1831+ }
1832+ } else {
1833+ // If the last character is a double-width rune, then we may not be able to add it to this line
1834+ // as it might cause us to go past the width.
1835+ lastCharLen := rw.RuneWidth(word[len(word)-1])
1836+ if uniseg.StringWidth(string(word))+lastCharLen > width {
1837+ // If the current line has any content, let's move to the next
1838+ // line because the current word fills up the entire line.
1839+ if len(lines[row]) > 0 {
1840+ row++
1841+ lines = append(lines, []rune{})
1842+ }
1843+ lines[row] = append(lines[row], word...)
1844+ word = nil
1845+ }
1846+ }
1847+ }
1848+
1849+ if uniseg.StringWidth(string(lines[row]))+uniseg.StringWidth(string(word))+spaces >= width {
1850+ lines = append(lines, []rune{})
1851+ lines[row+1] = append(lines[row+1], word...)
1852+ // We add an extra space at the end of the line to account for the
1853+ // trailing space at the end of the previous soft-wrapped lines so that
1854+ // behaviour when navigating is consistent and so that we don't need to
1855+ // continually add edges to handle the last line of the wrapped input.
1856+ spaces++
1857+ lines[row+1] = append(lines[row+1], repeatSpaces(spaces)...)
1858+ } else {
1859+ lines[row] = append(lines[row], word...)
1860+ spaces++
1861+ lines[row] = append(lines[row], repeatSpaces(spaces)...)
1862+ }
1863+
1864+ return lines
1865+}
1866+
1867+func repeatSpaces(n int) []rune {
1868+ return []rune(strings.Repeat(string(' '), n))
1869+}
1870+
1871+// numDigits returns the number of digits in an integer.
1872+func numDigits(n int) int {
1873+ if n == 0 {
1874+ return 1
1875+ }
1876+ count := 0
1877+ num := abs(n)
1878+ for num > 0 {
1879+ count++
1880+ num /= 10
1881+ }
1882+ return count
1883+}
1884+
1885+func clamp(v, low, high int) int {
1886+ if high < low {
1887+ low, high = high, low
1888+ }
1889+ return min(high, max(low, v))
1890+}
1891+
1892+func abs(n int) int {
1893+ if n < 0 {
1894+ return -n
1895+ }
1896+ return n
1897+}
vendor/charm.land/bubbles/v2/textinput/styles.gonew file+96
@@ -0,0 +1,96 @@
1+package textinput
2+
3+import (
4+ "image/color"
5+ "time"
6+
7+ tea "charm.land/bubbletea/v2"
8+ "charm.land/lipgloss/v2"
9+)
10+
11+// DefaultStyles returns the default styles for focused and blurred states for
12+// the textarea.
13+func DefaultStyles(isDark bool) Styles {
14+ lightDark := lipgloss.LightDark(isDark)
15+
16+ var s Styles
17+ s.Focused = StyleState{
18+ Placeholder: lipgloss.NewStyle().Foreground(lipgloss.Color("240")),
19+ Suggestion: lipgloss.NewStyle().Foreground(lipgloss.Color("240")),
20+ Prompt: lipgloss.NewStyle().Foreground(lipgloss.Color("7")),
21+ Text: lipgloss.NewStyle(),
22+ }
23+ s.Blurred = StyleState{
24+ Placeholder: lipgloss.NewStyle().Foreground(lipgloss.Color("240")),
25+ Suggestion: lipgloss.NewStyle().Foreground(lipgloss.Color("240")),
26+ Prompt: lipgloss.NewStyle().Foreground(lipgloss.Color("7")),
27+ Text: lipgloss.NewStyle().Foreground(lightDark(lipgloss.Color("245"), lipgloss.Color("7"))),
28+ }
29+ s.Cursor = CursorStyle{
30+ Color: lipgloss.Color("7"),
31+ Shape: tea.CursorBlock,
32+ Blink: true,
33+ }
34+ return s
35+}
36+
37+// DefaultLightStyles returns the default styles for a light background.
38+func DefaultLightStyles() Styles {
39+ return DefaultStyles(false)
40+}
41+
42+// DefaultDarkStyles returns the default styles for a dark background.
43+func DefaultDarkStyles() Styles {
44+ return DefaultStyles(true)
45+}
46+
47+// Styles are the styles for the textarea, separated into focused and blurred
48+// states. The appropriate styles will be chosen based on the focus state of
49+// the textarea.
50+type Styles struct {
51+ Focused StyleState
52+ Blurred StyleState
53+ Cursor CursorStyle
54+}
55+
56+// StyleState that will be applied to the text area.
57+//
58+// StyleState can be applied to focused and unfocused states to change the styles
59+// depending on the focus state.
60+//
61+// For an introduction to styling with Lip Gloss see:
62+// https://github.com/charmbracelet/lipgloss
63+type StyleState struct {
64+ Text lipgloss.Style
65+ Placeholder lipgloss.Style
66+ Suggestion lipgloss.Style
67+ Prompt lipgloss.Style
68+}
69+
70+// CursorStyle is the style for real and virtual cursors.
71+type CursorStyle struct {
72+ // Style styles the cursor block.
73+ //
74+ // For real cursors, the foreground color set here will be used as the
75+ // cursor color.
76+ Color color.Color
77+
78+ // Shape is the cursor shape. The following shapes are available:
79+ //
80+ // - tea.CursorBlock
81+ // - tea.CursorUnderline
82+ // - tea.CursorBar
83+ //
84+ // This is only used for real cursors.
85+ Shape tea.CursorShape
86+
87+ // CursorBlink determines whether or not the cursor should blink.
88+ Blink bool
89+
90+ // BlinkSpeed is the speed at which the virtual cursor blinks. This has no
91+ // effect on real cursors as well as no effect if the cursor is set not to
92+ // [CursorBlink].
93+ //
94+ // By default, the blink speed is set to about 500ms.
95+ BlinkSpeed time.Duration
96+}
vendor/charm.land/bubbles/v2/textinput/textinput.gonew file+968
@@ -0,0 +1,968 @@
1+// Package textinput provides a text input component for Bubble Tea
2+// applications.
3+package textinput
4+
5+import (
6+ "reflect"
7+ "slices"
8+ "strings"
9+ "unicode"
10+
11+ "charm.land/bubbles/v2/cursor"
12+ "charm.land/bubbles/v2/internal/runeutil"
13+ "charm.land/bubbles/v2/key"
14+ tea "charm.land/bubbletea/v2"
15+ "charm.land/lipgloss/v2"
16+ "github.com/atotto/clipboard"
17+ rw "github.com/mattn/go-runewidth"
18+ "github.com/rivo/uniseg"
19+)
20+
21+// Internal messages for clipboard operations.
22+type (
23+ pasteMsg string
24+ pasteErrMsg struct{ error }
25+)
26+
27+// EchoMode sets the input behavior of the text input field.
28+type EchoMode int
29+
30+const (
31+ // EchoNormal displays text as is. This is the default behavior.
32+ EchoNormal EchoMode = iota
33+
34+ // EchoPassword displays the EchoCharacter mask instead of actual
35+ // characters. This is commonly used for password fields.
36+ EchoPassword
37+
38+ // EchoNone displays nothing as characters are entered. This is commonly
39+ // seen for password fields on the command line.
40+ EchoNone
41+)
42+
43+// ValidateFunc is a function that returns an error if the input is invalid.
44+type ValidateFunc func(string) error
45+
46+// KeyMap is the key bindings for different actions within the textinput.
47+type KeyMap struct {
48+ CharacterForward key.Binding
49+ CharacterBackward key.Binding
50+ WordForward key.Binding
51+ WordBackward key.Binding
52+ DeleteWordBackward key.Binding
53+ DeleteWordForward key.Binding
54+ DeleteAfterCursor key.Binding
55+ DeleteBeforeCursor key.Binding
56+ DeleteCharacterBackward key.Binding
57+ DeleteCharacterForward key.Binding
58+ LineStart key.Binding
59+ LineEnd key.Binding
60+ Paste key.Binding
61+ AcceptSuggestion key.Binding
62+ NextSuggestion key.Binding
63+ PrevSuggestion key.Binding
64+}
65+
66+// DefaultKeyMap is the default set of key bindings for navigating and acting
67+// upon the textinput.
68+func DefaultKeyMap() KeyMap {
69+ return KeyMap{
70+ CharacterForward: key.NewBinding(key.WithKeys("right", "ctrl+f")),
71+ CharacterBackward: key.NewBinding(key.WithKeys("left", "ctrl+b")),
72+ WordForward: key.NewBinding(key.WithKeys("alt+right", "ctrl+right", "alt+f")),
73+ WordBackward: key.NewBinding(key.WithKeys("alt+left", "ctrl+left", "alt+b")),
74+ DeleteWordBackward: key.NewBinding(key.WithKeys("alt+backspace", "ctrl+w")),
75+ DeleteWordForward: key.NewBinding(key.WithKeys("alt+delete", "alt+d")),
76+ DeleteAfterCursor: key.NewBinding(key.WithKeys("ctrl+k")),
77+ DeleteBeforeCursor: key.NewBinding(key.WithKeys("ctrl+u")),
78+ DeleteCharacterBackward: key.NewBinding(key.WithKeys("backspace", "ctrl+h")),
79+ DeleteCharacterForward: key.NewBinding(key.WithKeys("delete", "ctrl+d")),
80+ LineStart: key.NewBinding(key.WithKeys("home", "ctrl+a")),
81+ LineEnd: key.NewBinding(key.WithKeys("end", "ctrl+e")),
82+ Paste: key.NewBinding(key.WithKeys("ctrl+v")),
83+ AcceptSuggestion: key.NewBinding(key.WithKeys("tab")),
84+ NextSuggestion: key.NewBinding(key.WithKeys("down", "ctrl+n")),
85+ PrevSuggestion: key.NewBinding(key.WithKeys("up", "ctrl+p")),
86+ }
87+}
88+
89+// Model is the Bubble Tea model for this text input element.
90+type Model struct {
91+ Err error
92+
93+ // General settings.
94+ Prompt string
95+ Placeholder string
96+ EchoMode EchoMode
97+ EchoCharacter rune
98+
99+ // useVirtualCursor determines whether or not to use the virtual cursor. If
100+ // set to false, use [Model.Cursor] to return a real cursor for rendering.
101+ useVirtualCursor bool
102+
103+ // Virtual cursor manager.
104+ virtualCursor cursor.Model
105+
106+ // CharLimit is the maximum amount of characters this input element will
107+ // accept. If 0 or less, there's no limit.
108+ CharLimit int
109+
110+ // Styling. FocusedStyle and BlurredStyle are used to style the textarea in
111+ // focused and blurred states.
112+ styles Styles
113+
114+ // Width is the maximum number of characters that can be displayed at once.
115+ // It essentially treats the text field like a horizontally scrolling
116+ // viewport. If 0 or less this setting is ignored.
117+ width int
118+
119+ // KeyMap encodes the keybindings recognized by the widget.
120+ KeyMap KeyMap
121+
122+ // Underlying text value.
123+ value []rune
124+
125+ // focus indicates whether user input focus should be on this input
126+ // component. When false, ignore keyboard input and hide the cursor.
127+ focus bool
128+
129+ // Cursor position.
130+ pos int
131+
132+ // Used to emulate a viewport when width is set and the content is
133+ // overflowing.
134+ offset int
135+ offsetRight int
136+
137+ // Validate is a function that checks whether or not the text within the
138+ // input is valid. If it is not valid, the `Err` field will be set to the
139+ // error returned by the function. If the function is not defined, all
140+ // input is considered valid.
141+ Validate ValidateFunc
142+
143+ // rune sanitizer for input.
144+ rsan runeutil.Sanitizer
145+
146+ // Should the input suggest to complete
147+ ShowSuggestions bool
148+
149+ // suggestions is a list of suggestions that may be used to complete the
150+ // input.
151+ suggestions [][]rune
152+ matchedSuggestions [][]rune
153+ currentSuggestionIndex int
154+}
155+
156+// New creates a new model with default settings.
157+func New() Model {
158+ m := Model{
159+ Prompt: "> ",
160+ EchoCharacter: '*',
161+ CharLimit: 0,
162+ styles: DefaultDarkStyles(),
163+ ShowSuggestions: false,
164+ useVirtualCursor: true,
165+ virtualCursor: cursor.New(),
166+ KeyMap: DefaultKeyMap(),
167+ suggestions: [][]rune{},
168+ value: nil,
169+ focus: false,
170+ pos: 0,
171+ }
172+ m.updateVirtualCursorStyle()
173+ return m
174+}
175+
176+// VirtualCursor returns whether the model is using a virtual cursor.
177+func (m Model) VirtualCursor() bool {
178+ return m.useVirtualCursor
179+}
180+
181+// SetVirtualCursor sets whether the model should use a virtual cursor. If
182+// disabled, use [Model.Cursor] to return a real cursor for rendering.
183+func (m *Model) SetVirtualCursor(v bool) {
184+ m.useVirtualCursor = v
185+ m.updateVirtualCursorStyle()
186+}
187+
188+// Styles returns the current set of styles.
189+func (m Model) Styles() Styles {
190+ return m.styles
191+}
192+
193+// SetStyles sets the styles for the text input.
194+func (m *Model) SetStyles(s Styles) {
195+ m.styles = s
196+ m.updateVirtualCursorStyle()
197+}
198+
199+// Width returns the width of the text input.
200+func (m Model) Width() int {
201+ return m.width
202+}
203+
204+// SetWidth sets the width of the text input.
205+func (m *Model) SetWidth(w int) {
206+ m.width = w
207+}
208+
209+// SetValue sets the value of the text input.
210+func (m *Model) SetValue(s string) {
211+ // Clean up any special characters in the input provided by the
212+ // caller. This avoids bugs due to e.g. tab characters and whatnot.
213+ runes := m.san().Sanitize([]rune(s))
214+ err := m.validate(runes)
215+ m.setValueInternal(runes, err)
216+}
217+
218+func (m *Model) setValueInternal(runes []rune, err error) {
219+ m.Err = err
220+
221+ empty := len(m.value) == 0
222+
223+ if m.CharLimit > 0 && len(runes) > m.CharLimit {
224+ m.value = runes[:m.CharLimit]
225+ } else {
226+ m.value = runes
227+ }
228+ if (m.pos == 0 && empty) || m.pos > len(m.value) {
229+ m.SetCursor(len(m.value))
230+ }
231+ m.handleOverflow()
232+}
233+
234+// Value returns the value of the text input.
235+func (m Model) Value() string {
236+ return string(m.value)
237+}
238+
239+// Position returns the cursor position.
240+func (m Model) Position() int {
241+ return m.pos
242+}
243+
244+// SetCursor moves the cursor to the given position. If the position is
245+// out of bounds the cursor will be moved to the start or end accordingly.
246+func (m *Model) SetCursor(pos int) {
247+ m.pos = clamp(pos, 0, len(m.value))
248+ m.handleOverflow()
249+}
250+
251+// CursorStart moves the cursor to the start of the input field.
252+func (m *Model) CursorStart() {
253+ m.SetCursor(0)
254+}
255+
256+// CursorEnd moves the cursor to the end of the input field.
257+func (m *Model) CursorEnd() {
258+ m.SetCursor(len(m.value))
259+}
260+
261+// Focused returns the focus state on the model.
262+func (m Model) Focused() bool {
263+ return m.focus
264+}
265+
266+// Focus sets the focus state on the model. When the model is in focus it can
267+// receive keyboard input and the cursor will be shown.
268+func (m *Model) Focus() tea.Cmd {
269+ m.focus = true
270+ return m.virtualCursor.Focus()
271+}
272+
273+// Blur removes the focus state on the model. When the model is blurred it can
274+// not receive keyboard input and the cursor will be hidden.
275+func (m *Model) Blur() {
276+ m.focus = false
277+ m.virtualCursor.Blur()
278+}
279+
280+// Reset sets the input to its default state with no input.
281+func (m *Model) Reset() {
282+ m.value = nil
283+ m.SetCursor(0)
284+}
285+
286+// SetSuggestions sets the suggestions for the input.
287+func (m *Model) SetSuggestions(suggestions []string) {
288+ m.suggestions = make([][]rune, len(suggestions))
289+ for i, s := range suggestions {
290+ m.suggestions[i] = []rune(s)
291+ }
292+
293+ m.updateSuggestions()
294+}
295+
296+// rsan initializes or retrieves the rune sanitizer.
297+func (m *Model) san() runeutil.Sanitizer {
298+ if m.rsan == nil {
299+ // Textinput has all its input on a single line so collapse
300+ // newlines/tabs to single spaces.
301+ m.rsan = runeutil.NewSanitizer(
302+ runeutil.ReplaceTabs(" "), runeutil.ReplaceNewlines(" "))
303+ }
304+ return m.rsan
305+}
306+
307+func (m *Model) insertRunesFromUserInput(v []rune) {
308+ // Clean up any special characters in the input provided by the
309+ // clipboard. This avoids bugs due to e.g. tab characters and
310+ // whatnot.
311+ paste := m.san().Sanitize(v)
312+
313+ var availSpace int
314+ if m.CharLimit > 0 {
315+ availSpace = m.CharLimit - len(m.value)
316+
317+ // If the char limit's been reached, cancel.
318+ if availSpace <= 0 {
319+ return
320+ }
321+
322+ // If there's not enough space to paste the whole thing cut the pasted
323+ // runes down so they'll fit.
324+ if availSpace < len(paste) {
325+ paste = paste[:availSpace]
326+ }
327+ }
328+
329+ // Stuff before and after the cursor
330+ head := m.value[:m.pos]
331+ tailSrc := m.value[m.pos:]
332+ tail := make([]rune, len(tailSrc))
333+ copy(tail, tailSrc)
334+
335+ // Insert pasted runes
336+ for _, r := range paste {
337+ head = append(head, r)
338+ m.pos++
339+ if m.CharLimit > 0 {
340+ availSpace--
341+ if availSpace <= 0 {
342+ break
343+ }
344+ }
345+ }
346+
347+ // Put it all back together
348+ value := append(head, tail...)
349+ inputErr := m.validate(value)
350+ m.setValueInternal(value, inputErr)
351+}
352+
353+// If a max width is defined, perform some logic to treat the visible area
354+// as a horizontally scrolling viewport.
355+func (m *Model) handleOverflow() {
356+ if m.Width() <= 0 || uniseg.StringWidth(string(m.value)) <= m.Width() {
357+ m.offset = 0
358+ m.offsetRight = len(m.value)
359+ return
360+ }
361+
362+ // Correct right offset if we've deleted characters
363+ m.offsetRight = min(m.offsetRight, len(m.value))
364+
365+ if m.pos < m.offset {
366+ m.offset = m.pos
367+
368+ w := 0
369+ i := 0
370+ runes := m.value[m.offset:]
371+
372+ for i < len(runes) && w <= m.Width() {
373+ w += rw.RuneWidth(runes[i])
374+ if w <= m.Width()+1 {
375+ i++
376+ }
377+ }
378+
379+ m.offsetRight = m.offset + i
380+ } else if m.pos >= m.offsetRight {
381+ m.offsetRight = m.pos
382+
383+ w := 0
384+ runes := m.value[:m.offsetRight]
385+ i := len(runes) - 1
386+
387+ for i > 0 && w < m.Width() {
388+ w += rw.RuneWidth(runes[i])
389+ if w <= m.Width() {
390+ i--
391+ }
392+ }
393+
394+ m.offset = m.offsetRight - (len(runes) - 1 - i)
395+ }
396+}
397+
398+// deleteBeforeCursor deletes all text before the cursor.
399+func (m *Model) deleteBeforeCursor() {
400+ m.value = m.value[m.pos:]
401+ m.Err = m.validate(m.value)
402+ m.offset = 0
403+ m.SetCursor(0)
404+}
405+
406+// deleteAfterCursor deletes all text after the cursor. If input is masked
407+// delete everything after the cursor so as not to reveal word breaks in the
408+// masked input.
409+func (m *Model) deleteAfterCursor() {
410+ m.value = m.value[:m.pos]
411+ m.Err = m.validate(m.value)
412+ m.SetCursor(len(m.value))
413+}
414+
415+// deleteWordBackward deletes the word left to the cursor.
416+func (m *Model) deleteWordBackward() {
417+ if m.pos == 0 || len(m.value) == 0 {
418+ return
419+ }
420+
421+ if m.EchoMode != EchoNormal {
422+ m.deleteBeforeCursor()
423+ return
424+ }
425+
426+ // Linter note: it's critical that we acquire the initial cursor position
427+ // here prior to altering it via SetCursor() below. As such, moving this
428+ // call into the corresponding if clause does not apply here.
429+ oldPos := m.pos
430+
431+ m.SetCursor(m.pos - 1)
432+ for unicode.IsSpace(m.value[m.pos]) {
433+ if m.pos <= 0 {
434+ break
435+ }
436+ // ignore series of whitespace before cursor
437+ m.SetCursor(m.pos - 1)
438+ }
439+
440+ for m.pos > 0 {
441+ if !unicode.IsSpace(m.value[m.pos]) {
442+ m.SetCursor(m.pos - 1)
443+ } else {
444+ if m.pos > 0 {
445+ // keep the previous space
446+ m.SetCursor(m.pos + 1)
447+ }
448+ break
449+ }
450+ }
451+
452+ if oldPos > len(m.value) {
453+ m.value = m.value[:m.pos]
454+ } else {
455+ m.value = append(m.value[:m.pos], m.value[oldPos:]...)
456+ }
457+ m.Err = m.validate(m.value)
458+}
459+
460+// deleteWordForward deletes the word right to the cursor. If input is masked
461+// delete everything after the cursor so as not to reveal word breaks in the
462+// masked input.
463+func (m *Model) deleteWordForward() {
464+ if m.pos >= len(m.value) || len(m.value) == 0 {
465+ return
466+ }
467+
468+ if m.EchoMode != EchoNormal {
469+ m.deleteAfterCursor()
470+ return
471+ }
472+
473+ oldPos := m.pos
474+ m.SetCursor(m.pos + 1)
475+ for unicode.IsSpace(m.value[m.pos]) {
476+ // ignore series of whitespace after cursor
477+ m.SetCursor(m.pos + 1)
478+
479+ if m.pos >= len(m.value) {
480+ break
481+ }
482+ }
483+
484+ for m.pos < len(m.value) {
485+ if !unicode.IsSpace(m.value[m.pos]) {
486+ m.SetCursor(m.pos + 1)
487+ } else {
488+ break
489+ }
490+ }
491+
492+ if m.pos > len(m.value) {
493+ m.value = m.value[:oldPos]
494+ } else {
495+ m.value = append(m.value[:oldPos], m.value[m.pos:]...)
496+ }
497+ m.Err = m.validate(m.value)
498+
499+ m.SetCursor(oldPos)
500+}
501+
502+// wordBackward moves the cursor one word to the left. If input is masked, move
503+// input to the start so as not to reveal word breaks in the masked input.
504+func (m *Model) wordBackward() {
505+ if m.pos == 0 || len(m.value) == 0 {
506+ return
507+ }
508+
509+ if m.EchoMode != EchoNormal {
510+ m.CursorStart()
511+ return
512+ }
513+
514+ i := m.pos - 1
515+ for i >= 0 {
516+ if unicode.IsSpace(m.value[i]) {
517+ m.SetCursor(m.pos - 1)
518+ i--
519+ } else {
520+ break
521+ }
522+ }
523+
524+ for i >= 0 {
525+ if !unicode.IsSpace(m.value[i]) {
526+ m.SetCursor(m.pos - 1)
527+ i--
528+ } else {
529+ break
530+ }
531+ }
532+}
533+
534+// wordForward moves the cursor one word to the right. If the input is masked,
535+// move input to the end so as not to reveal word breaks in the masked input.
536+func (m *Model) wordForward() {
537+ if m.pos >= len(m.value) || len(m.value) == 0 {
538+ return
539+ }
540+
541+ if m.EchoMode != EchoNormal {
542+ m.CursorEnd()
543+ return
544+ }
545+
546+ i := m.pos
547+ for i < len(m.value) {
548+ if unicode.IsSpace(m.value[i]) {
549+ m.SetCursor(m.pos + 1)
550+ i++
551+ } else {
552+ break
553+ }
554+ }
555+
556+ for i < len(m.value) {
557+ if !unicode.IsSpace(m.value[i]) {
558+ m.SetCursor(m.pos + 1)
559+ i++
560+ } else {
561+ break
562+ }
563+ }
564+}
565+
566+func (m Model) echoTransform(v string) string {
567+ switch m.EchoMode {
568+ case EchoPassword:
569+ return strings.Repeat(string(m.EchoCharacter), uniseg.StringWidth(v))
570+ case EchoNone:
571+ return ""
572+ case EchoNormal:
573+ return v
574+ default:
575+ return v
576+ }
577+}
578+
579+// Update is the Bubble Tea update loop.
580+func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
581+ if !m.focus {
582+ return m, nil
583+ }
584+
585+ // Need to check for completion before, because key is configurable and might be double assigned
586+ keyMsg, ok := msg.(tea.KeyPressMsg)
587+ if ok && key.Matches(keyMsg, m.KeyMap.AcceptSuggestion) {
588+ if m.canAcceptSuggestion() {
589+ m.value = append(m.value, m.matchedSuggestions[m.currentSuggestionIndex][len(m.value):]...)
590+ m.CursorEnd()
591+ }
592+ }
593+
594+ // Let's remember where the position of the cursor currently is so that if
595+ // the cursor position changes, we can reset the blink.
596+ oldPos := m.pos
597+
598+ switch msg := msg.(type) {
599+ case tea.KeyPressMsg:
600+ switch {
601+ case key.Matches(msg, m.KeyMap.DeleteWordBackward):
602+ m.deleteWordBackward()
603+ case key.Matches(msg, m.KeyMap.DeleteCharacterBackward):
604+ m.Err = nil
605+ if len(m.value) > 0 {
606+ m.value = append(m.value[:max(0, m.pos-1)], m.value[m.pos:]...)
607+ m.Err = m.validate(m.value)
608+ if m.pos > 0 {
609+ m.SetCursor(m.pos - 1)
610+ }
611+ }
612+ case key.Matches(msg, m.KeyMap.WordBackward):
613+ m.wordBackward()
614+ case key.Matches(msg, m.KeyMap.CharacterBackward):
615+ if m.pos > 0 {
616+ m.SetCursor(m.pos - 1)
617+ }
618+ case key.Matches(msg, m.KeyMap.WordForward):
619+ m.wordForward()
620+ case key.Matches(msg, m.KeyMap.CharacterForward):
621+ if m.pos < len(m.value) {
622+ m.SetCursor(m.pos + 1)
623+ }
624+ case key.Matches(msg, m.KeyMap.LineStart):
625+ m.CursorStart()
626+ case key.Matches(msg, m.KeyMap.DeleteCharacterForward):
627+ if len(m.value) > 0 && m.pos < len(m.value) {
628+ m.value = slices.Delete(m.value, m.pos, m.pos+1)
629+ m.Err = m.validate(m.value)
630+ }
631+ case key.Matches(msg, m.KeyMap.LineEnd):
632+ m.CursorEnd()
633+ case key.Matches(msg, m.KeyMap.DeleteAfterCursor):
634+ m.deleteAfterCursor()
635+ case key.Matches(msg, m.KeyMap.DeleteBeforeCursor):
636+ m.deleteBeforeCursor()
637+ case key.Matches(msg, m.KeyMap.Paste):
638+ return m, Paste
639+ case key.Matches(msg, m.KeyMap.DeleteWordForward):
640+ m.deleteWordForward()
641+ case key.Matches(msg, m.KeyMap.NextSuggestion):
642+ m.nextSuggestion()
643+ case key.Matches(msg, m.KeyMap.PrevSuggestion):
644+ m.previousSuggestion()
645+ default:
646+ // Input one or more regular characters.
647+ m.insertRunesFromUserInput([]rune(msg.Text))
648+ }
649+
650+ // Check again if can be completed
651+ // because value might be something that does not match the completion prefix
652+ m.updateSuggestions()
653+
654+ case tea.PasteMsg:
655+ m.insertRunesFromUserInput([]rune(msg.Content))
656+
657+ case pasteMsg:
658+ m.insertRunesFromUserInput([]rune(msg))
659+
660+ case pasteErrMsg:
661+ m.Err = msg
662+ }
663+
664+ var cmds []tea.Cmd
665+ var cmd tea.Cmd
666+
667+ if m.useVirtualCursor {
668+ m.virtualCursor, cmd = m.virtualCursor.Update(msg)
669+ cmds = append(cmds, cmd)
670+
671+ // If the cursor position changed, reset the blink state. This is a
672+ // small UX nuance that makes cursor movement obvious and feel snappy.
673+ if oldPos != m.pos && m.virtualCursor.Mode() == cursor.CursorBlink {
674+ m.virtualCursor.IsBlinked = false
675+ cmds = append(cmds, m.virtualCursor.Blink())
676+ }
677+ }
678+
679+ m.handleOverflow()
680+ return m, tea.Batch(cmds...)
681+}
682+
683+// View renders the textinput in its current state.
684+func (m Model) View() string {
685+ // Placeholder text
686+ if len(m.value) == 0 && m.Placeholder != "" {
687+ return m.placeholderView()
688+ }
689+
690+ styles := m.activeStyle()
691+
692+ styleText := styles.Text.Inline(true).Render
693+
694+ value := m.value[m.offset:m.offsetRight]
695+ pos := max(0, m.pos-m.offset)
696+ v := styleText(m.echoTransform(string(value[:pos])))
697+
698+ if pos < len(value) { //nolint:nestif
699+ char := m.echoTransform(string(value[pos]))
700+ m.virtualCursor.SetChar(char)
701+ v += m.virtualCursor.View() // cursor and text under it
702+ v += styleText(m.echoTransform(string(value[pos+1:]))) // text after cursor
703+ v += m.completionView(0) // suggested completion
704+ } else {
705+ if m.focus && m.canAcceptSuggestion() {
706+ suggestion := m.matchedSuggestions[m.currentSuggestionIndex]
707+ if len(value) < len(suggestion) {
708+ m.virtualCursor.TextStyle = styles.Suggestion
709+ m.virtualCursor.SetChar(m.echoTransform(string(suggestion[pos])))
710+ v += m.virtualCursor.View()
711+ v += m.completionView(1)
712+ } else {
713+ m.virtualCursor.SetChar(" ")
714+ v += m.virtualCursor.View()
715+ }
716+ } else {
717+ m.virtualCursor.SetChar(" ")
718+ v += m.virtualCursor.View()
719+ }
720+ }
721+
722+ // If a max width and background color were set fill the empty spaces with
723+ // the background color.
724+ valWidth := uniseg.StringWidth(string(value))
725+ if m.Width() > 0 && valWidth <= m.Width() {
726+ padding := max(0, m.Width()-valWidth)
727+ if valWidth+padding <= m.Width() && pos < len(value) {
728+ padding++
729+ }
730+ v += styleText(strings.Repeat(" ", padding))
731+ }
732+
733+ return m.promptView() + v
734+}
735+
736+func (m Model) promptView() string {
737+ return m.activeStyle().Prompt.Render(m.Prompt)
738+}
739+
740+// placeholderView returns the prompt and placeholder view, if any.
741+func (m Model) placeholderView() string {
742+ var (
743+ v string
744+ styles = m.activeStyle()
745+ render = styles.Placeholder.Render
746+ )
747+
748+ p := make([]rune, m.Width()+1)
749+ copy(p, []rune(m.Placeholder))
750+
751+ m.virtualCursor.TextStyle = styles.Placeholder
752+ m.virtualCursor.SetChar(string(p[:1]))
753+ v += m.virtualCursor.View()
754+
755+ // If the entire placeholder is already set and no padding is needed, finish
756+ if m.Width() < 1 && len(p) <= 1 {
757+ return styles.Prompt.Render(m.Prompt) + v
758+ }
759+
760+ // If Width is set then size placeholder accordingly
761+ if m.Width() > 0 {
762+ // available width is width - len + cursor offset of 1
763+ minWidth := lipgloss.Width(m.Placeholder)
764+ availWidth := m.Width() - minWidth + 1
765+
766+ // if width < len, 'subtract'(add) number to len and dont add padding
767+ if availWidth < 0 {
768+ minWidth += availWidth
769+ availWidth = 0
770+ }
771+ // append placeholder[len] - cursor, append padding
772+ v += render(string(p[1:minWidth]))
773+ v += render(strings.Repeat(" ", availWidth))
774+ } else {
775+ // if there is no width, the placeholder can be any length
776+ v += render(string(p[1:]))
777+ }
778+
779+ return styles.Prompt.Render(m.Prompt) + v
780+}
781+
782+// Blink is a command used to initialize cursor blinking.
783+func Blink() tea.Msg {
784+ return cursor.Blink()
785+}
786+
787+// Paste is a command for pasting from the clipboard into the text input.
788+func Paste() tea.Msg {
789+ str, err := clipboard.ReadAll()
790+ if err != nil {
791+ return pasteErrMsg{err}
792+ }
793+ return pasteMsg(str)
794+}
795+
796+func clamp(v, low, high int) int {
797+ if high < low {
798+ low, high = high, low
799+ }
800+ return min(high, max(low, v))
801+}
802+
803+func (m Model) completionView(offset int) string {
804+ if !m.canAcceptSuggestion() {
805+ return ""
806+ }
807+ value := m.value
808+ suggestion := m.matchedSuggestions[m.currentSuggestionIndex]
809+ if len(value) < len(suggestion) {
810+ return m.activeStyle().Suggestion.Inline(true).
811+ Render(string(suggestion[len(value)+offset:]))
812+ }
813+ return ""
814+}
815+
816+func (m *Model) getSuggestions(sugs [][]rune) []string {
817+ suggestions := make([]string, len(sugs))
818+ for i, s := range sugs {
819+ suggestions[i] = string(s)
820+ }
821+ return suggestions
822+}
823+
824+// AvailableSuggestions returns the list of available suggestions.
825+func (m *Model) AvailableSuggestions() []string {
826+ return m.getSuggestions(m.suggestions)
827+}
828+
829+// MatchedSuggestions returns the list of matched suggestions.
830+func (m *Model) MatchedSuggestions() []string {
831+ return m.getSuggestions(m.matchedSuggestions)
832+}
833+
834+// CurrentSuggestionIndex returns the currently selected suggestion index.
835+func (m *Model) CurrentSuggestionIndex() int {
836+ return m.currentSuggestionIndex
837+}
838+
839+// CurrentSuggestion returns the currently selected suggestion.
840+func (m *Model) CurrentSuggestion() string {
841+ if m.currentSuggestionIndex >= len(m.matchedSuggestions) {
842+ return ""
843+ }
844+
845+ return string(m.matchedSuggestions[m.currentSuggestionIndex])
846+}
847+
848+// canAcceptSuggestion returns whether there is an acceptable suggestion to
849+// autocomplete the current value.
850+func (m *Model) canAcceptSuggestion() bool {
851+ return len(m.matchedSuggestions) > 0
852+}
853+
854+// updateSuggestions refreshes the list of matching suggestions.
855+func (m *Model) updateSuggestions() {
856+ if !m.ShowSuggestions {
857+ return
858+ }
859+
860+ if len(m.value) <= 0 || len(m.suggestions) <= 0 {
861+ m.matchedSuggestions = [][]rune{}
862+ return
863+ }
864+
865+ matches := [][]rune{}
866+ for _, s := range m.suggestions {
867+ suggestion := string(s)
868+
869+ if strings.HasPrefix(strings.ToLower(suggestion), strings.ToLower(string(m.value))) {
870+ matches = append(matches, []rune(suggestion))
871+ }
872+ }
873+ if !reflect.DeepEqual(matches, m.matchedSuggestions) {
874+ m.currentSuggestionIndex = 0
875+ }
876+
877+ m.matchedSuggestions = matches
878+}
879+
880+// nextSuggestion selects the next suggestion.
881+func (m *Model) nextSuggestion() {
882+ m.currentSuggestionIndex = (m.currentSuggestionIndex + 1)
883+ if m.currentSuggestionIndex >= len(m.matchedSuggestions) {
884+ m.currentSuggestionIndex = 0
885+ }
886+}
887+
888+// previousSuggestion selects the previous suggestion.
889+func (m *Model) previousSuggestion() {
890+ m.currentSuggestionIndex = (m.currentSuggestionIndex - 1)
891+ if m.currentSuggestionIndex < 0 {
892+ m.currentSuggestionIndex = len(m.matchedSuggestions) - 1
893+ }
894+}
895+
896+func (m Model) validate(v []rune) error {
897+ if m.Validate != nil {
898+ return m.Validate(string(v))
899+ }
900+ return nil
901+}
902+
903+// Cursor returns a [tea.Cursor] for rendering a real cursor in a Bubble Tea
904+// program. This requires that [Model.VirtualCursor] is set to false.
905+//
906+// Note that you will almost certainly also need to adjust the offset cursor
907+// position per the textarea's per the textarea's position in the terminal.
908+//
909+// Example:
910+//
911+// // In your top-level View function:
912+// f := tea.NewFrame(m.textarea.View())
913+// f.Cursor = m.textarea.Cursor()
914+// f.Cursor.Position.X += offsetX
915+// f.Cursor.Position.Y += offsetY
916+func (m Model) Cursor() *tea.Cursor {
917+ if m.useVirtualCursor || !m.Focused() {
918+ return nil
919+ }
920+
921+ w := lipgloss.Width
922+
923+ promptWidth := w(m.promptView())
924+ xOffset := m.Position() +
925+ promptWidth
926+ if m.width > 0 {
927+ xOffset = min(xOffset, m.width+promptWidth)
928+ }
929+
930+ style := m.styles.Cursor
931+ c := tea.NewCursor(xOffset, 0)
932+ c.Blink = style.Blink
933+ c.Color = style.Color
934+ c.Shape = style.Shape
935+ return c
936+}
937+
938+// updateVirtualCursorStyle sets styling on the virtual cursor based on the
939+// textarea's style settings.
940+func (m *Model) updateVirtualCursorStyle() {
941+ if !m.useVirtualCursor {
942+ // Hide the virtual cursor if we're using a real cursor.
943+ m.virtualCursor.SetMode(cursor.CursorHide)
944+ return
945+ }
946+
947+ m.virtualCursor.Style = lipgloss.NewStyle().Foreground(m.styles.Cursor.Color)
948+
949+ // By default, the blink speed of the cursor is set to a default
950+ // internally.
951+ if m.styles.Cursor.Blink {
952+ if m.styles.Cursor.BlinkSpeed > 0 {
953+ m.virtualCursor.BlinkSpeed = m.styles.Cursor.BlinkSpeed
954+ }
955+ m.virtualCursor.SetMode(cursor.CursorBlink)
956+ return
957+ }
958+ m.virtualCursor.SetMode(cursor.CursorStatic)
959+}
960+
961+// activeStyle returns the appropriate set of styles to use depending on
962+// whether the textarea is focused or blurred.
963+func (m Model) activeStyle() *StyleState {
964+ if m.focus {
965+ return &m.styles.Focused
966+ }
967+ return &m.styles.Blurred
968+}
vendor/charm.land/bubbles/v2/viewport/highlight.gonew file+141
@@ -0,0 +1,141 @@
1+package viewport
2+
3+import (
4+ "charm.land/lipgloss/v2"
5+ "github.com/charmbracelet/x/ansi"
6+ "github.com/rivo/uniseg"
7+)
8+
9+// parseMatches converts the given matches into highlight ranges.
10+//
11+// Assumptions:
12+// - matches are measured in bytes, e.g. what [regex.FindAllStringIndex] would return
13+// - matches were made against the given content
14+// - matches are in order
15+// - matches do not overlap
16+// - content is line terminated with \n only
17+//
18+// We'll then convert the ranges into [highlightInfo]s, which hold the starting
19+// line and the grapheme positions.
20+func parseMatches(
21+ content string,
22+ matches [][]int,
23+) []highlightInfo {
24+ if len(matches) == 0 {
25+ return nil
26+ }
27+
28+ line := 0
29+ graphemePos := 0
30+ previousLinesOffset := 0
31+ bytePos := 0
32+
33+ highlights := make([]highlightInfo, 0, len(matches))
34+ gr := uniseg.NewGraphemes(ansi.Strip(content))
35+
36+ for _, match := range matches {
37+ byteStart, byteEnd := match[0], match[1]
38+
39+ // hilight for this match:
40+ hi := highlightInfo{
41+ lines: map[int][2]int{},
42+ }
43+
44+ // find the beginning of this byte range, setup current line and
45+ // grapheme position.
46+ for byteStart > bytePos {
47+ if !gr.Next() {
48+ break
49+ }
50+ if content[bytePos] == '\n' {
51+ previousLinesOffset = graphemePos + 1
52+ line++
53+ }
54+ graphemePos += max(1, gr.Width())
55+ bytePos += len(gr.Str())
56+ }
57+
58+ hi.lineStart = line
59+ hi.lineEnd = line
60+
61+ graphemeStart := graphemePos
62+
63+ // loop until we find the end
64+ for byteEnd > bytePos {
65+ if !gr.Next() {
66+ break
67+ }
68+
69+ // if it ends with a new line, add the range, increase line, and continue
70+ if content[bytePos] == '\n' {
71+ colstart := max(0, graphemeStart-previousLinesOffset)
72+ colend := max(graphemePos-previousLinesOffset+1, colstart) // +1 its \n itself
73+
74+ if colend > colstart {
75+ hi.lines[line] = [2]int{colstart, colend}
76+ hi.lineEnd = line
77+ }
78+
79+ previousLinesOffset = graphemePos + 1
80+ line++
81+ }
82+
83+ graphemePos += max(1, gr.Width())
84+ bytePos += len(gr.Str())
85+ }
86+
87+ // we found it!, add highlight and continue
88+ if bytePos == byteEnd {
89+ colstart := max(0, graphemeStart-previousLinesOffset)
90+ colend := max(graphemePos-previousLinesOffset, colstart)
91+
92+ if colend > colstart {
93+ hi.lines[line] = [2]int{colstart, colend}
94+ hi.lineEnd = line
95+ }
96+ }
97+
98+ highlights = append(highlights, hi)
99+ }
100+
101+ return highlights
102+}
103+
104+type highlightInfo struct {
105+ // in which line this highlight starts and ends
106+ lineStart, lineEnd int
107+
108+ // the grapheme highlight ranges for each of these lines
109+ lines map[int][2]int
110+}
111+
112+// coords returns the line x column of this highlight.
113+func (hi highlightInfo) coords() (int, int, int) {
114+ for i := hi.lineStart; i <= hi.lineEnd; i++ {
115+ hl, ok := hi.lines[i]
116+ if !ok {
117+ continue
118+ }
119+ return i, hl[0], hl[1]
120+ }
121+ return hi.lineStart, 0, 0
122+}
123+
124+func makeHighlightRanges(
125+ highlights []highlightInfo,
126+ line int,
127+ style lipgloss.Style,
128+) []lipgloss.Range {
129+ result := []lipgloss.Range{}
130+ for _, hi := range highlights {
131+ lihi, ok := hi.lines[line]
132+ if !ok {
133+ continue
134+ }
135+ if lihi == [2]int{} {
136+ continue
137+ }
138+ result = append(result, lipgloss.NewRange(lihi[0], lihi[1], style))
139+ }
140+ return result
141+}
vendor/charm.land/bubbles/v2/viewport/keymap.gonew file+58
@@ -0,0 +1,58 @@
1+// Package viewport provides a component for rendering a viewport in a Bubble
2+// Tea.
3+package viewport
4+
5+import "charm.land/bubbles/v2/key"
6+
7+// KeyMap defines the keybindings for the viewport. Note that you don't
8+// necessary need to use keybindings at all; the viewport can be controlled
9+// programmatically with methods like Model.LineDown(1). See the GoDocs for
10+// details.
11+type KeyMap struct {
12+ PageDown key.Binding
13+ PageUp key.Binding
14+ HalfPageUp key.Binding
15+ HalfPageDown key.Binding
16+ Down key.Binding
17+ Up key.Binding
18+ Left key.Binding
19+ Right key.Binding
20+}
21+
22+// DefaultKeyMap returns a set of pager-like default keybindings.
23+func DefaultKeyMap() KeyMap {
24+ return KeyMap{
25+ PageDown: key.NewBinding(
26+ key.WithKeys("pgdown", "space", "f"),
27+ key.WithHelp("f/pgdn", "page down"),
28+ ),
29+ PageUp: key.NewBinding(
30+ key.WithKeys("pgup", "b"),
31+ key.WithHelp("b/pgup", "page up"),
32+ ),
33+ HalfPageUp: key.NewBinding(
34+ key.WithKeys("u", "ctrl+u"),
35+ key.WithHelp("u", "½ page up"),
36+ ),
37+ HalfPageDown: key.NewBinding(
38+ key.WithKeys("d", "ctrl+d"),
39+ key.WithHelp("d", "½ page down"),
40+ ),
41+ Up: key.NewBinding(
42+ key.WithKeys("up", "k"),
43+ key.WithHelp("↑/k", "up"),
44+ ),
45+ Down: key.NewBinding(
46+ key.WithKeys("down", "j"),
47+ key.WithHelp("↓/j", "down"),
48+ ),
49+ Left: key.NewBinding(
50+ key.WithKeys("left", "h"),
51+ key.WithHelp("←/h", "move left"),
52+ ),
53+ Right: key.NewBinding(
54+ key.WithKeys("right", "l"),
55+ key.WithHelp("→/l", "move right"),
56+ ),
57+ }
58+}
vendor/charm.land/bubbles/v2/viewport/viewport.gonew file+765
@@ -0,0 +1,765 @@
1+package viewport
2+
3+import (
4+ "cmp"
5+ "math"
6+ "slices"
7+ "strings"
8+
9+ "charm.land/bubbles/v2/key"
10+ tea "charm.land/bubbletea/v2"
11+ "charm.land/lipgloss/v2"
12+ "github.com/charmbracelet/x/ansi"
13+)
14+
15+const (
16+ defaultHorizontalStep = 6
17+)
18+
19+// Option is a configuration option that works in conjunction with [New]. For
20+// example:
21+//
22+// timer := New(WithWidth(10, WithHeight(5)))
23+type Option func(*Model)
24+
25+// WithWidth is an initialization option that sets the width of the
26+// viewport. Pass as an argument to [New].
27+func WithWidth(w int) Option {
28+ return func(m *Model) {
29+ m.width = w
30+ }
31+}
32+
33+// WithHeight is an initialization option that sets the height of the
34+// viewport. Pass as an argument to [New].
35+func WithHeight(h int) Option {
36+ return func(m *Model) {
37+ m.height = h
38+ }
39+}
40+
41+// New returns a new model with the given width and height as well as default
42+// key mappings.
43+func New(opts ...Option) (m Model) {
44+ for _, opt := range opts {
45+ opt(&m)
46+ }
47+ m.setInitialValues()
48+ return m
49+}
50+
51+// Model is the Bubble Tea model for this viewport element.
52+type Model struct {
53+ width int
54+ height int
55+ KeyMap KeyMap
56+
57+ // Whether or not to wrap text. If false, it'll allow horizontal scrolling
58+ // instead.
59+ SoftWrap bool
60+
61+ // Whether or not to fill to the height of the viewport with empty lines.
62+ FillHeight bool
63+
64+ // Whether or not to respond to the mouse. The mouse must be enabled in
65+ // Bubble Tea for this to work. For details, see the Bubble Tea docs.
66+ MouseWheelEnabled bool
67+
68+ // The number of lines the mouse wheel will scroll. By default, this is 3.
69+ MouseWheelDelta int
70+
71+ // yOffset is the vertical scroll position.
72+ yOffset int
73+
74+ // xOffset is the horizontal scroll position.
75+ xOffset int
76+
77+ // horizontalStep is the number of columns we move left or right during a
78+ // default horizontal scroll.
79+ horizontalStep int
80+
81+ // YPosition is the position of the viewport in relation to the terminal
82+ // window. It's used in high performance rendering only.
83+ YPosition int
84+
85+ // Style applies a lipgloss style to the viewport. Realistically, it's most
86+ // useful for setting borders, margins and padding.
87+ Style lipgloss.Style
88+
89+ // LeftGutterFunc allows to define a [GutterFunc] that adds a column into
90+ // the left of the viewport, which is kept when horizontal scrolling.
91+ // This can be used for things like line numbers, selection indicators,
92+ // show statuses, etc. It is expected that the real-width (as measured by
93+ // [lipgloss.Width]) of the returned value is always consistent, regardless
94+ // of index, soft wrapping, etc.
95+ LeftGutterFunc GutterFunc
96+
97+ initialized bool
98+ lines []string
99+ longestLineWidth int
100+
101+ // HighlightStyle highlights the ranges set with [SetHighligths].
102+ HighlightStyle lipgloss.Style
103+
104+ // SelectedHighlightStyle highlights the highlight range focused during
105+ // navigation.
106+ // Use [SetHighligths] to set the highlight ranges, and [HightlightNext]
107+ // and [HihglightPrevious] to navigate.
108+ SelectedHighlightStyle lipgloss.Style
109+
110+ // StyleLineFunc allows to return a [lipgloss.Style] for each line.
111+ // The argument is the line index.
112+ StyleLineFunc func(int) lipgloss.Style
113+
114+ highlights []highlightInfo
115+ hiIdx int
116+}
117+
118+// GutterFunc can be implemented and set into [Model.LeftGutterFunc].
119+//
120+// Example implementation showing line numbers:
121+//
122+// func(info GutterContext) string {
123+// if info.Soft {
124+// return " │ "
125+// }
126+// if info.Index >= info.TotalLines {
127+// return " ~ │ "
128+// }
129+// return fmt.Sprintf("%4d │ ", info.Index+1)
130+// }
131+type GutterFunc func(GutterContext) string
132+
133+// NoGutter is the default gutter used.
134+var NoGutter = func(GutterContext) string { return "" }
135+
136+// GutterContext provides context to a [GutterFunc].
137+type GutterContext struct {
138+ // Index is the line index of the line which the gutter is being rendered for.
139+ Index int
140+
141+ // TotalLines is the total number of lines in the viewport.
142+ TotalLines int
143+
144+ // Soft is whether or not the line is soft wrapped.
145+ Soft bool
146+}
147+
148+func (m *Model) setInitialValues() {
149+ m.KeyMap = DefaultKeyMap()
150+ m.MouseWheelEnabled = true
151+ m.MouseWheelDelta = 3
152+ m.horizontalStep = defaultHorizontalStep
153+ m.LeftGutterFunc = NoGutter
154+ m.initialized = true
155+}
156+
157+// Init exists to satisfy the tea.Model interface for composability purposes.
158+func (m Model) Init() tea.Cmd {
159+ return nil
160+}
161+
162+// Height returns the height of the viewport.
163+func (m Model) Height() int {
164+ return m.height
165+}
166+
167+// SetHeight sets the height of the viewport.
168+func (m *Model) SetHeight(h int) {
169+ m.height = h
170+}
171+
172+// Width returns the width of the viewport.
173+func (m Model) Width() int {
174+ return m.width
175+}
176+
177+// SetWidth sets the width of the viewport.
178+func (m *Model) SetWidth(w int) {
179+ m.width = w
180+}
181+
182+// AtTop returns whether or not the viewport is at the very top position.
183+func (m Model) AtTop() bool {
184+ return m.YOffset() <= 0
185+}
186+
187+// AtBottom returns whether or not the viewport is at or past the very bottom
188+// position.
189+func (m Model) AtBottom() bool {
190+ return m.YOffset() >= m.maxYOffset()
191+}
192+
193+// PastBottom returns whether or not the viewport is scrolled beyond the last
194+// line. This can happen when adjusting the viewport height.
195+func (m Model) PastBottom() bool {
196+ return m.YOffset() > m.maxYOffset()
197+}
198+
199+// ScrollPercent returns the amount scrolled as a float between 0 and 1.
200+func (m Model) ScrollPercent() float64 {
201+ total, _, _ := m.calculateLine(0)
202+ if m.Height() >= total {
203+ return 1.0
204+ }
205+ y := float64(m.YOffset())
206+ h := float64(m.Height())
207+ t := float64(total)
208+ v := y / (t - h)
209+ return clamp(v, 0, 1)
210+}
211+
212+// HorizontalScrollPercent returns the amount horizontally scrolled as a float
213+// between 0 and 1.
214+func (m Model) HorizontalScrollPercent() float64 {
215+ if m.xOffset >= m.longestLineWidth-m.Width() {
216+ return 1.0
217+ }
218+ y := float64(m.xOffset)
219+ h := float64(m.Width())
220+ t := float64(m.longestLineWidth)
221+ v := y / (t - h)
222+ return clamp(v, 0, 1)
223+}
224+
225+// SetContent set the pager's text content. Line endings will be normalized to '\n'.
226+func (m *Model) SetContent(s string) {
227+ m.SetContentLines(strings.Split(s, "\n"))
228+}
229+
230+// SetContentLines allows to set the lines to be shown instead of the content.
231+// If a given line has a \n in it, it will still be split into multiple lines
232+// similar to that of [Model.SetContent]. See also [Model.SetContent].
233+func (m *Model) SetContentLines(lines []string) {
234+ // if there's no content, set content to actual nil instead of one empty
235+ // line.
236+ m.lines = lines
237+ if len(m.lines) == 1 && ansi.StringWidth(m.lines[0]) == 0 {
238+ m.lines = nil
239+ } else {
240+ // iterate in reverse, so we can safely modify the slice.
241+ var subLines []string
242+ for i := len(m.lines) - 1; i >= 0; i-- {
243+ if !strings.ContainsAny(m.lines[i], "\r\n") {
244+ continue
245+ }
246+
247+ m.lines[i] = strings.ReplaceAll(m.lines[i], "\r\n", "\n") // normalize line endings
248+ subLines = strings.Split(m.lines[i], "\n")
249+ if len(subLines) > 1 {
250+ m.lines = slices.Insert(m.lines, i+1, subLines[1:]...)
251+ m.lines[i] = subLines[0]
252+ }
253+ }
254+ }
255+
256+ m.longestLineWidth = maxLineWidth(m.lines)
257+ m.ClearHighlights()
258+
259+ if m.YOffset() > m.maxYOffset() {
260+ m.GotoBottom()
261+ }
262+}
263+
264+// GetContent returns the entire content as a single string.
265+// Line endings are normalized to '\n'.
266+func (m Model) GetContent() string {
267+ return strings.Join(m.lines, "\n")
268+}
269+
270+// calculateLine taking soft wrapping into account, returns the total viewable
271+// lines and the real-line index for the given yoffset, as well as the virtual
272+// line offset.
273+func (m Model) calculateLine(yoffset int) (total, ridx, voffset int) {
274+ if !m.SoftWrap {
275+ total = len(m.lines)
276+ ridx = min(yoffset, len(m.lines))
277+ return total, ridx, 0
278+ }
279+
280+ maxWidth := float64(m.maxWidth())
281+ var lineHeight int
282+
283+ for i, line := range m.lines {
284+ lineHeight = max(1, int(math.Ceil(float64(ansi.StringWidth(line))/maxWidth)))
285+
286+ if yoffset >= total && yoffset < total+lineHeight {
287+ ridx = i
288+ voffset = yoffset - total
289+ }
290+ total += lineHeight
291+ }
292+
293+ if yoffset >= total {
294+ ridx = len(m.lines)
295+ voffset = 0
296+ }
297+
298+ return total, ridx, voffset
299+}
300+
301+// maxYOffset returns the maximum possible value of the y-offset based on the
302+// viewport's content and set height.
303+func (m Model) maxYOffset() int {
304+ total, _, _ := m.calculateLine(0)
305+ return max(0, total-m.Height()+m.Style.GetVerticalFrameSize())
306+}
307+
308+// maxXOffset returns the maximum possible value of the x-offset based on the
309+// viewport's content and set width.
310+func (m Model) maxXOffset() int {
311+ return max(0, m.longestLineWidth-m.Width())
312+}
313+
314+// maxWidth returns the maximum width of the viewport. It accounts for the frame
315+// size, in addition to the gutter size.
316+func (m Model) maxWidth() int {
317+ var gutterSize int
318+ if m.LeftGutterFunc != nil {
319+ gutterSize = ansi.StringWidth(m.LeftGutterFunc(GutterContext{}))
320+ }
321+ return max(0, m.Width()-m.Style.GetHorizontalFrameSize()-gutterSize)
322+}
323+
324+// maxHeight returns the maximum height of the viewport. It accounts for the frame
325+// size.
326+func (m Model) maxHeight() int {
327+ return max(0, m.Height()-m.Style.GetVerticalFrameSize())
328+}
329+
330+// visibleLines returns the lines that should currently be visible in the
331+// viewport.
332+func (m Model) visibleLines() (lines []string) {
333+ maxHeight := m.maxHeight()
334+ maxWidth := m.maxWidth()
335+
336+ if maxHeight == 0 || maxWidth == 0 {
337+ return nil
338+ }
339+
340+ total, ridx, voffset := m.calculateLine(m.YOffset())
341+ if total > 0 {
342+ bottom := clamp(ridx+maxHeight, ridx, len(m.lines))
343+ lines = m.styleLines(slices.Clone(m.lines[ridx:bottom]), ridx)
344+ lines = m.highlightLines(lines, ridx)
345+ }
346+
347+ for m.FillHeight && len(lines) < maxHeight {
348+ lines = append(lines, "")
349+ }
350+
351+ // if longest line fit within width, no need to do anything else.
352+ if (m.xOffset == 0 && m.longestLineWidth <= maxWidth) || maxWidth == 0 {
353+ return m.setupGutter(lines, total, ridx)
354+ }
355+
356+ if m.SoftWrap {
357+ return m.softWrap(lines, maxWidth, maxHeight, total, ridx, voffset)
358+ }
359+
360+ // Cut the lines to the viewport width.
361+ for i := range lines {
362+ lines[i] = ansi.Cut(lines[i], m.xOffset, m.xOffset+maxWidth)
363+ }
364+ return m.setupGutter(lines, total, ridx)
365+}
366+
367+// styleLines styles the lines using [Model.StyleLineFunc].
368+func (m Model) styleLines(lines []string, offset int) []string {
369+ if m.StyleLineFunc == nil {
370+ return lines
371+ }
372+ for i := range lines {
373+ lines[i] = m.StyleLineFunc(i + offset).Render(lines[i])
374+ }
375+ return lines
376+}
377+
378+// highlightLines highlights the lines with [Model.HighlightStyle] and
379+// [Model.SelectedHighlightStyle].
380+func (m Model) highlightLines(lines []string, offset int) []string {
381+ if len(m.highlights) == 0 {
382+ return lines
383+ }
384+ for i := range lines {
385+ ranges := makeHighlightRanges(
386+ m.highlights,
387+ i+offset,
388+ m.HighlightStyle,
389+ )
390+ lines[i] = lipgloss.StyleRanges(lines[i], ranges...)
391+ if m.hiIdx < 0 {
392+ continue
393+ }
394+ sel := m.highlights[m.hiIdx]
395+ if hi, ok := sel.lines[i+offset]; ok {
396+ lines[i] = lipgloss.StyleRanges(lines[i], lipgloss.NewRange(
397+ hi[0],
398+ hi[1],
399+ m.SelectedHighlightStyle,
400+ ))
401+ }
402+ }
403+ return lines
404+}
405+
406+func (m Model) softWrap(lines []string, maxWidth, maxHeight, total, ridx, voffset int) []string {
407+ wrappedLines := make([]string, 0, maxHeight)
408+
409+ var idx, lineWidth int
410+ var truncatedLine string
411+
412+ for i, line := range lines {
413+ // If the line is less than or equal to the max width, it can be added
414+ // as is.
415+ lineWidth = ansi.StringWidth(line)
416+
417+ if lineWidth <= maxWidth {
418+ if m.LeftGutterFunc != nil {
419+ line = m.LeftGutterFunc(GutterContext{
420+ Index: i + ridx,
421+ TotalLines: total,
422+ Soft: false,
423+ }) + line
424+ }
425+ wrappedLines = append(wrappedLines, line)
426+ continue
427+ }
428+
429+ idx = 0
430+ for lineWidth > idx {
431+ truncatedLine = ansi.Cut(line, idx, maxWidth+idx)
432+ if m.LeftGutterFunc != nil {
433+ truncatedLine = m.LeftGutterFunc(GutterContext{
434+ Index: i + ridx,
435+ TotalLines: total,
436+ Soft: idx > 0,
437+ }) + truncatedLine
438+ }
439+ wrappedLines = append(wrappedLines, truncatedLine)
440+ idx += maxWidth
441+ }
442+ }
443+
444+ return wrappedLines[voffset:min(voffset+maxHeight, len(wrappedLines))]
445+}
446+
447+// setupGutter sets up the left gutter using [Model.LeftGutterFunc].
448+func (m Model) setupGutter(lines []string, total, ridx int) []string {
449+ if m.LeftGutterFunc == nil {
450+ return lines
451+ }
452+
453+ for i := range lines {
454+ lines[i] = m.LeftGutterFunc(GutterContext{
455+ Index: i + ridx,
456+ TotalLines: total,
457+ Soft: false,
458+ }) + lines[i]
459+ }
460+ return lines
461+}
462+
463+// SetYOffset sets the Y offset.
464+func (m *Model) SetYOffset(n int) {
465+ m.yOffset = clamp(n, 0, m.maxYOffset())
466+}
467+
468+// YOffset returns the current Y offset - the vertical scroll position.
469+func (m *Model) YOffset() int { return m.yOffset }
470+
471+// EnsureVisible ensures that the given line and column are in the viewport.
472+func (m *Model) EnsureVisible(line, colstart, colend int) {
473+ maxWidth := m.maxWidth()
474+ if colend <= maxWidth {
475+ m.SetXOffset(0)
476+ } else {
477+ m.SetXOffset(colstart - m.horizontalStep) // put one step to the left, feels more natural
478+ }
479+
480+ if line < m.YOffset() || line >= m.YOffset()+m.maxHeight() {
481+ m.SetYOffset(line)
482+ }
483+}
484+
485+// PageDown moves the view down by the number of lines in the viewport.
486+func (m *Model) PageDown() {
487+ if m.AtBottom() {
488+ return
489+ }
490+ m.ScrollDown(m.Height())
491+}
492+
493+// PageUp moves the view up by one height of the viewport.
494+func (m *Model) PageUp() {
495+ if m.AtTop() {
496+ return
497+ }
498+ m.ScrollUp(m.Height())
499+}
500+
501+// HalfPageDown moves the view down by half the height of the viewport.
502+func (m *Model) HalfPageDown() {
503+ if m.AtBottom() {
504+ return
505+ }
506+ m.ScrollDown(m.Height() / 2) //nolint:mnd
507+}
508+
509+// HalfPageUp moves the view up by half the height of the viewport.
510+func (m *Model) HalfPageUp() {
511+ if m.AtTop() {
512+ return
513+ }
514+ m.ScrollUp(m.Height() / 2) //nolint:mnd
515+}
516+
517+// ScrollDown moves the view down by the given number of lines.
518+func (m *Model) ScrollDown(n int) {
519+ if m.AtBottom() || n == 0 || len(m.lines) == 0 {
520+ return
521+ }
522+ // Make sure the number of lines by which we're going to scroll isn't
523+ // greater than the number of lines we actually have left before we reach
524+ // the bottom.
525+ m.SetYOffset(m.YOffset() + n)
526+ m.hiIdx = m.findNearestMatch()
527+}
528+
529+// ScrollUp moves the view up by the given number of lines.
530+func (m *Model) ScrollUp(n int) {
531+ if m.AtTop() || n == 0 || len(m.lines) == 0 {
532+ return
533+ }
534+ // Make sure the number of lines by which we're going to scroll isn't
535+ // greater than the number of lines we are from the top.
536+ m.SetYOffset(m.YOffset() - n)
537+ m.hiIdx = m.findNearestMatch()
538+}
539+
540+// SetHorizontalStep sets the amount of cells that the viewport moves in the
541+// default viewport keymapping. If set to 0 or less, horizontal scrolling is
542+// disabled.
543+func (m *Model) SetHorizontalStep(n int) {
544+ m.horizontalStep = max(0, n)
545+}
546+
547+// XOffset returns the current X offset - the horizontal scroll position.
548+func (m *Model) XOffset() int { return m.xOffset }
549+
550+// SetXOffset sets the X offset.
551+// No-op when soft wrap is enabled.
552+func (m *Model) SetXOffset(n int) {
553+ if m.SoftWrap {
554+ return
555+ }
556+ m.xOffset = clamp(n, 0, m.maxXOffset())
557+}
558+
559+// ScrollLeft moves the viewport to the left by the given number of columns.
560+func (m *Model) ScrollLeft(n int) {
561+ m.SetXOffset(m.xOffset - n)
562+}
563+
564+// ScrollRight moves viewport to the right by the given number of columns.
565+func (m *Model) ScrollRight(n int) {
566+ m.SetXOffset(m.xOffset + n)
567+}
568+
569+// TotalLineCount returns the total number of lines (both hidden and visible) within the viewport.
570+func (m Model) TotalLineCount() int {
571+ total, _, _ := m.calculateLine(0)
572+ return total
573+}
574+
575+// VisibleLineCount returns the number of the visible lines within the viewport.
576+func (m Model) VisibleLineCount() int {
577+ return len(m.visibleLines())
578+}
579+
580+// GotoTop sets the viewport to the top position.
581+func (m *Model) GotoTop() (lines []string) {
582+ if m.AtTop() {
583+ return nil
584+ }
585+ m.SetYOffset(0)
586+ m.hiIdx = m.findNearestMatch()
587+ return m.visibleLines()
588+}
589+
590+// GotoBottom sets the viewport to the bottom position.
591+func (m *Model) GotoBottom() (lines []string) {
592+ m.SetYOffset(m.maxYOffset())
593+ m.hiIdx = m.findNearestMatch()
594+ return m.visibleLines()
595+}
596+
597+// SetHighlights sets ranges of characters to highlight.
598+// For instance, `[]int{[]int{2, 10}, []int{20, 30}}` will highlight characters
599+// 2 to 10 and 20 to 30.
600+// Note that highlights are not expected to transpose each other, and are also
601+// expected to be in order.
602+// Use [Model.SetHighlights] to set the highlight ranges, and
603+// [Model.HighlightNext] and [Model.HighlightPrevious] to navigate.
604+// Use [Model.ClearHighlights] to remove all highlights.
605+func (m *Model) SetHighlights(matches [][]int) {
606+ if len(matches) == 0 || len(m.lines) == 0 {
607+ return
608+ }
609+ m.highlights = parseMatches(m.GetContent(), matches)
610+ m.hiIdx = m.findNearestMatch()
611+ m.showHighlight()
612+}
613+
614+// ClearHighlights clears previously set highlights.
615+func (m *Model) ClearHighlights() {
616+ m.highlights = nil
617+ m.hiIdx = -1
618+}
619+
620+func (m *Model) showHighlight() {
621+ if m.hiIdx == -1 {
622+ return
623+ }
624+ line, colstart, colend := m.highlights[m.hiIdx].coords()
625+ m.EnsureVisible(line, colstart, colend)
626+}
627+
628+// HighlightNext highlights the next match.
629+func (m *Model) HighlightNext() {
630+ if m.highlights == nil {
631+ return
632+ }
633+ m.hiIdx = (m.hiIdx + 1) % len(m.highlights)
634+ m.showHighlight()
635+}
636+
637+// HighlightPrevious highlights the previous match.
638+func (m *Model) HighlightPrevious() {
639+ if m.highlights == nil {
640+ return
641+ }
642+ m.hiIdx = (m.hiIdx - 1 + len(m.highlights)) % len(m.highlights)
643+ m.showHighlight()
644+}
645+
646+func (m Model) findNearestMatch() int {
647+ for i, match := range m.highlights {
648+ if match.lineStart >= m.YOffset() {
649+ return i
650+ }
651+ }
652+ return -1
653+}
654+
655+// Update handles standard message-based viewport updates.
656+func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
657+ m = m.updateAsModel(msg)
658+ return m, nil
659+}
660+
661+// Author's note: this method has been broken out to make it easier to
662+// potentially transition Update to satisfy tea.Model.
663+func (m Model) updateAsModel(msg tea.Msg) Model {
664+ if !m.initialized {
665+ m.setInitialValues()
666+ }
667+
668+ switch msg := msg.(type) {
669+ case tea.KeyPressMsg:
670+ switch {
671+ case key.Matches(msg, m.KeyMap.PageDown):
672+ m.PageDown()
673+
674+ case key.Matches(msg, m.KeyMap.PageUp):
675+ m.PageUp()
676+
677+ case key.Matches(msg, m.KeyMap.HalfPageDown):
678+ m.HalfPageDown()
679+
680+ case key.Matches(msg, m.KeyMap.HalfPageUp):
681+ m.HalfPageUp()
682+
683+ case key.Matches(msg, m.KeyMap.Down):
684+ m.ScrollDown(1)
685+
686+ case key.Matches(msg, m.KeyMap.Up):
687+ m.ScrollUp(1)
688+
689+ case key.Matches(msg, m.KeyMap.Left):
690+ m.ScrollLeft(m.horizontalStep)
691+
692+ case key.Matches(msg, m.KeyMap.Right):
693+ m.ScrollRight(m.horizontalStep)
694+ }
695+
696+ case tea.MouseWheelMsg:
697+ if !m.MouseWheelEnabled {
698+ break
699+ }
700+ switch msg.Button {
701+ case tea.MouseWheelDown:
702+ // NOTE: some terminal emulators don't send the shift event for
703+ // mouse actions.
704+ if msg.Mod.Contains(tea.ModShift) {
705+ m.ScrollRight(m.horizontalStep)
706+ break
707+ }
708+ m.ScrollDown(m.MouseWheelDelta)
709+ case tea.MouseWheelUp:
710+ // NOTE: some terminal emulators don't send the shift event for
711+ // mouse actions.
712+ if msg.Mod.Contains(tea.ModShift) {
713+ m.ScrollLeft(m.horizontalStep)
714+ break
715+ }
716+ m.ScrollUp(m.MouseWheelDelta)
717+ case tea.MouseWheelLeft:
718+ m.ScrollLeft(m.horizontalStep)
719+ case tea.MouseWheelRight:
720+ m.ScrollRight(m.horizontalStep)
721+ }
722+ }
723+
724+ return m
725+}
726+
727+// View renders the viewport into a string.
728+func (m Model) View() string {
729+ w, h := m.Width(), m.Height()
730+ if sw := m.Style.GetWidth(); sw != 0 {
731+ w = min(w, sw)
732+ }
733+ if sh := m.Style.GetHeight(); sh != 0 {
734+ h = min(h, sh)
735+ }
736+
737+ if w == 0 || h == 0 {
738+ return ""
739+ }
740+
741+ contentWidth := w - m.Style.GetHorizontalFrameSize()
742+ contentHeight := h - m.Style.GetVerticalFrameSize()
743+ contents := lipgloss.NewStyle().
744+ Width(contentWidth). // pad to width.
745+ Height(contentHeight). // pad to height.
746+ Render(strings.Join(m.visibleLines(), "\n"))
747+ return m.Style.
748+ UnsetWidth().UnsetHeight(). // Style size already applied in contents.
749+ Render(contents)
750+}
751+
752+func clamp[T cmp.Ordered](v, low, high T) T {
753+ if high < low {
754+ low, high = high, low
755+ }
756+ return min(high, max(low, v))
757+}
758+
759+func maxLineWidth(lines []string) int {
760+ result := 0
761+ for _, line := range lines {
762+ result = max(result, ansi.StringWidth(line))
763+ }
764+ return result
765+}
vendor/charm.land/bubbletea/v2/.gitattributesnew file+1
@@ -0,0 +1 @@
1+*.golden -text
vendor/charm.land/bubbletea/v2/.gitignorenew file+23
@@ -0,0 +1,23 @@
1+.DS_Store
2+.envrc
3+
4+examples/fullscreen/fullscreen
5+examples/help/help
6+examples/http/http
7+examples/list-default/list-default
8+examples/list-fancy/list-fancy
9+examples/list-simple/list-simple
10+examples/mouse/mouse
11+examples/pager/pager
12+examples/progress-download/color_vortex.blend
13+examples/progress-download/progress-download
14+examples/simple/simple
15+examples/spinner/spinner
16+examples/textinput/textinput
17+examples/textinputs/textinputs
18+examples/views/views
19+tutorials/basics/basics
20+tutorials/commands/commands
21+.idea
22+coverage.txt
23+dist/
vendor/charm.land/bubbletea/v2/.golangci.ymlnew file+47
@@ -0,0 +1,47 @@
1+version: "2"
2+run:
3+ tests: false
4+linters:
5+ enable:
6+ - bodyclose
7+ - exhaustive
8+ - goconst
9+ - godot
10+ - gomoddirectives
11+ - goprintffuncname
12+ - gosec
13+ - misspell
14+ - nakedret
15+ - nestif
16+ - nilerr
17+ - noctx
18+ - nolintlint
19+ - prealloc
20+ - revive
21+ - rowserrcheck
22+ - sqlclosecheck
23+ - tparallel
24+ - unconvert
25+ - unparam
26+ - whitespace
27+ - wrapcheck
28+ exclusions:
29+ rules:
30+ - text: '(slog|log)\.\w+'
31+ linters:
32+ - noctx
33+ generated: lax
34+ presets:
35+ - common-false-positives
36+ settings:
37+ exhaustive:
38+ default-signifies-exhaustive: true
39+issues:
40+ max-issues-per-linter: 0
41+ max-same-issues: 0
42+formatters:
43+ enable:
44+ - gofumpt
45+ - goimports
46+ exclusions:
47+ generated: lax
vendor/charm.land/bubbletea/v2/.goreleaser.ymlnew file+5
@@ -0,0 +1,5 @@
1+# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
2+version: 2
3+includes:
4+ - from_url:
5+ url: charmbracelet/meta/main/goreleaser-lib.yaml
vendor/charm.land/bubbletea/v2/LICENSEnew file+21
@@ -0,0 +1,21 @@
1+MIT License
2+
3+Copyright (c) 2020-2026 Charmbracelet, Inc.
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+
12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+
15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
vendor/charm.land/bubbletea/v2/README.mdnew file+402
@@ -0,0 +1,402 @@
1+# Bubble Tea
2+
3+<p>
4+ <img src="https://github.com/user-attachments/assets/ad408275-8799-488f-9303-441e7f869535" width="350"><br>
5+ <a href="https://github.com/charmbracelet/bubbletea/releases"><img src="https://img.shields.io/github/release/charmbracelet/bubbletea.svg" alt="Latest Release"></a>
6+ <a href="https://pkg.go.dev/charm.land/bubbletea/v2?tab=doc"><img src="https://godoc.org/charm.land/bubbletea/v2?status.svg" alt="GoDoc"></a>
7+ <a href="https://github.com/charmbracelet/bubbletea/actions"><img src="https://github.com/charmbracelet/bubbletea/actions/workflows/build.yml/badge.svg?branch=main" alt="Build Status"></a>
8+</p>
9+
10+The fun, functional and stateful way to build terminal apps. A Go framework
11+based on [The Elm Architecture][elm]. Bubble Tea is well-suited for simple and
12+complex terminal applications, either inline, full-window, or a mix of both.
13+
14+<p>
15+ <img src="https://stuff.charm.sh/bubbletea/bubbletea-example.gif" width="100%" alt="Bubble Tea Example">
16+</p>
17+
18+Bubble Tea is in use in production and includes a number of features and
19+performance optimizations we’ve added along the way. Among those is
20+a high-performance cell-based renderer, built-in color downsampling,
21+declarative views, high-fidelity keyboard and mouse handling, native clipboard
22+support, and more.
23+
24+To get started, see the tutorial below, the [examples][examples], the
25+[docs][docs], and some common [resources](#libraries-we-use-with-bubble-tea).
26+
27+> [!TIP]
28+>
29+> Upgrading from v1? Check out the [upgrade guide](./UPGRADE_GUIDE_V2.md), or
30+> point your LLM at it and let it go to town.
31+
32+## By the way
33+
34+Be sure to check out [Bubbles][bubbles], a library of common UI components for Bubble Tea.
35+
36+<p>
37+ <a href="https://github.com/charmbracelet/bubbles"><img src="https://github.com/user-attachments/assets/b6dc4638-b67a-4bfa-88d0-a8e8833c3ac9" width="172" alt="Bubbles Badge"></a>
38+ <a href="https://github.com/charmbracelet/bubbles"><img src="https://stuff.charm.sh/bubbles-examples/textinput.gif" width="400" alt="Text Input Example from Bubbles"></a>
39+</p>
40+
41+---
42+
43+## Tutorial
44+
45+Bubble Tea is based on the functional design paradigms of [The Elm
46+Architecture][elm], which happens to work nicely with Go. It's a delightful way
47+to build applications.
48+
49+This tutorial assumes you have a working knowledge of Go.
50+
51+By the way, the non-annotated source code for this program is available
52+[on GitHub][tut-source].
53+
54+[elm]: https://guide.elm-lang.org/architecture/
55+[tut-source]: https://github.com/charmbracelet/bubbletea/tree/main/tutorials/basics
56+
57+### Enough! Let's get to it.
58+
59+For this tutorial, we're making a shopping list.
60+
61+To start we'll define our package and import some libraries. Our only external
62+import will be the Bubble Tea library, which we'll call `tea` for short.
63+
64+```go
65+package main
66+
67+// These imports will be used later in the tutorial. If you save the file
68+// now, Go might complain they are unused, but that's fine.
69+// You may also need to run `go mod tidy` to download bubbletea and its
70+// dependencies.
71+import (
72+ "fmt"
73+ "os"
74+
75+ tea "charm.land/bubbletea/v2"
76+)
77+```
78+
79+Bubble Tea programs are comprised of a **model** that describes the application
80+state and three simple methods on that model:
81+
82+- **Init**, a function that returns an initial command for the application to run.
83+- **Update**, a function that handles incoming events and updates the model accordingly.
84+- **View**, a function that renders the UI based on the data in the model.
85+
86+### The Model
87+
88+So let's start by defining our model which will store our application's state.
89+It can be any type, but a `struct` usually makes the most sense.
90+
91+```go
92+type model struct {
93+ choices []string // items on the to-do list
94+ cursor int // which to-do list item our cursor is pointing at
95+ selected map[int]struct{} // which to-do items are selected
96+}
97+```
98+
99+## Initialization
100+
101+Next, we’ll define our application’s initial state. `Init` can return a `Cmd`
102+that could perform some initial I/O. For now, we don’t need to do any I/O, so
103+for the command, we’ll just return `nil`, which translates to “no command.”
104+
105+```go
106+func initialModel() model {
107+ return model{
108+ // Our to-do list is a grocery list
109+ choices: []string{"Buy carrots", "Buy celery", "Buy kohlrabi"},
110+
111+ // A map which indicates which choices are selected. We're using
112+ // the map like a mathematical set. The keys refer to the indexes
113+ // of the `choices` slice, above.
114+ selected: make(map[int]struct{}),
115+ }
116+}
117+```
118+
119+After that, we’ll define our application’s initial state in the `Init` method. `Init`
120+can return a `Cmd` that could perform some initial I/O. For now, we don't need
121+to do any I/O, so for the command, we'll just return `nil`, which translates to
122+"no command."
123+
124+```go
125+func (m model) Init() tea.Cmd {
126+ // Just return `nil`, which means "no I/O right now, please."
127+ return nil
128+}
129+```
130+
131+### The Update Method
132+
133+Next up is the update method. The update function is called when “things
134+happen.” Its job is to look at what has happened and return an updated model in
135+response. It can also return a `Cmd` to make more things happen, but for now
136+don't worry about that part.
137+
138+In our case, when a user presses the down arrow, `Update`’s job is to notice
139+that the down arrow was pressed and move the cursor accordingly (or not).
140+
141+The “something happened” comes in the form of a `Msg`, which can be any type.
142+Messages are the result of some I/O that took place, such as a keypress, timer
143+tick, or a response from a server.
144+
145+We usually figure out which type of `Msg` we received with a type switch, but
146+you could also use a type assertion.
147+
148+For now, we'll just deal with `tea.KeyPressMsg` messages, which are
149+automatically sent to the update function when keys are pressed.
150+
151+```go
152+func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
153+ switch msg := msg.(type) {
154+
155+ // Is it a key press?
156+ case tea.KeyPressMsg:
157+
158+ // Cool, what was the actual key pressed?
159+ switch msg.String() {
160+
161+ // These keys should exit the program.
162+ case "ctrl+c", "q":
163+ return m, tea.Quit
164+
165+ // The "up" and "k" keys move the cursor up
166+ case "up", "k":
167+ if m.cursor > 0 {
168+ m.cursor--
169+ }
170+
171+ // The "down" and "j" keys move the cursor down
172+ case "down", "j":
173+ if m.cursor < len(m.choices)-1 {
174+ m.cursor++
175+ }
176+
177+ // The "enter" key and the space bar toggle the selected state
178+ // for the item that the cursor is pointing at.
179+ case "enter", "space":
180+ _, ok := m.selected[m.cursor]
181+ if ok {
182+ delete(m.selected, m.cursor)
183+ } else {
184+ m.selected[m.cursor] = struct{}{}
185+ }
186+ }
187+ }
188+
189+ // Return the updated model to the Bubble Tea runtime for processing.
190+ // Note that we're not returning a command.
191+ return m, nil
192+}
193+```
194+
195+You may have noticed that <kbd>ctrl+c</kbd> and <kbd>q</kbd> above return
196+a `tea.Quit` command with the model. That’s a special command which instructs
197+the Bubble Tea runtime to quit, exiting the program.
198+
199+### The View Method
200+
201+At last, it’s time to render our UI. Of all the methods, the view is the
202+simplest. We look at the model in its current state and use it to build a
203+`tea.View`. The view declares our UI content and, optionally, terminal features
204+like alt screen mode, mouse tracking, cursor position, and more.
205+
206+Because the view describes the entire UI of your application, you don’t have to
207+worry about redrawing logic and stuff like that. Bubble Tea takes care of it
208+for you.
209+
210+```go
211+func (m model) View() tea.View {
212+ // The header
213+ s := "What should we buy at the market?\n\n"
214+
215+ // Iterate over our choices
216+ for i, choice := range m.choices {
217+
218+ // Is the cursor pointing at this choice?
219+ cursor := " " // no cursor
220+ if m.cursor == i {
221+ cursor = ">" // cursor!
222+ }
223+
224+ // Is this choice selected?
225+ checked := " " // not selected
226+ if _, ok := m.selected[i]; ok {
227+ checked = "x" // selected!
228+ }
229+
230+ // Render the row
231+ s += fmt.Sprintf("%s [%s] %s\n", cursor, checked, choice)
232+ }
233+
234+ // The footer
235+ s += "\nPress q to quit.\n"
236+
237+ // Send the UI for rendering
238+ return tea.NewView(s)
239+}
240+```
241+
242+### All Together Now
243+
244+The last step is to simply run our program. We pass our initial model to
245+`tea.NewProgram` and let it rip:
246+
247+```go
248+func main() {
249+ p := tea.NewProgram(initialModel())
250+ if _, err := p.Run(); err != nil {
251+ fmt.Printf("Alas, there's been an error: %v", err)
252+ os.Exit(1)
253+ }
254+}
255+```
256+
257+## What’s Next?
258+
259+This tutorial covers the basics of building an interactive terminal UI, but
260+in the real world you'll also need to perform I/O. To learn about that have a
261+look at the [Command Tutorial][cmd]. It's pretty simple.
262+
263+There are also several [Bubble Tea examples][examples] available and, of course,
264+there are [Go Docs][docs].
265+
266+[cmd]: https://github.com/charmbracelet/bubbletea/tree/main/tutorials/commands/
267+[examples]: https://github.com/charmbracelet/bubbletea/tree/main/examples
268+[docs]: https://pkg.go.dev/charm.land/bubbletea/v2?tab=doc
269+
270+## Debugging
271+
272+### Debugging with Delve
273+
274+Since Bubble Tea apps assume control of stdin and stdout, you’ll need to run
275+delve in headless mode and then connect to it:
276+
277+```bash
278+# Start the debugger
279+$ dlv debug --headless --api-version=2 --listen=127.0.0.1:43000 .
280+API server listening at: 127.0.0.1:43000
281+
282+# Connect to it from another terminal
283+$ dlv connect 127.0.0.1:43000
284+```
285+
286+If you do not explicitly supply the `--listen` flag, the port used will vary
287+per run, so passing this in makes the debugger easier to use from a script
288+or your IDE of choice.
289+
290+Additionally, we pass in `--api-version=2` because delve defaults to version 1
291+for backwards compatibility reasons. However, delve recommends using version 2
292+for all new development and some clients may no longer work with version 1.
293+For more information, see the [Delve documentation](https://github.com/go-delve/delve/tree/master/Documentation/api).
294+
295+### Logging Stuff
296+
297+You can’t really log to stdout with Bubble Tea because your TUI is busy
298+occupying that! You can, however, log to a file by including something like
299+the following prior to starting your Bubble Tea program:
300+
301+```go
302+if len(os.Getenv("DEBUG")) > 0 {
303+ f, err := tea.LogToFile("debug.log", "debug")
304+ if err != nil {
305+ fmt.Println("fatal:", err)
306+ os.Exit(1)
307+ }
308+ defer f.Close()
309+}
310+```
311+
312+To see what’s being logged in real time, run `tail -f debug.log` while you run
313+your program in another window.
314+
315+## Libraries we use with Bubble Tea
316+
317+- [Bubbles][bubbles]: Common Bubble Tea components such as text inputs, viewports, spinners and so on
318+- [Lip Gloss][lipgloss]: Style, format and layout tools for terminal applications
319+- [Harmonica][harmonica]: A spring animation library for smooth, natural motion
320+- [BubbleZone][bubblezone]: Easy mouse event tracking for Bubble Tea components
321+- [ntcharts][ntcharts]: A terminal charting library built for Bubble Tea and [Lip Gloss][lipgloss]
322+
323+[bubbles]: https://github.com/charmbracelet/bubbles
324+[lipgloss]: https://github.com/charmbracelet/lipgloss
325+[harmonica]: https://github.com/charmbracelet/harmonica
326+[bubblezone]: https://github.com/lrstanley/bubblezone
327+[ntcharts]: https://github.com/NimbleMarkets/ntcharts
328+
329+## Bubble Tea in the Wild
330+
331+There are over [18,000 applications](https://github.com/charmbracelet/bubbletea/network/dependents) built with Bubble Tea! Here are a handful of ’em.
332+
333+### Staff favourites
334+
335+- [chezmoi](https://github.com/twpayne/chezmoi): securely manage your dotfiles across multiple machines
336+- [circumflex](https://github.com/bensadeh/circumflex): read Hacker News in the terminal
337+- [gh-dash](https://www.github.com/dlvhdr/gh-dash): a GitHub CLI extension for PRs and issues
338+- [Tetrigo](https://github.com/Broderick-Westrope/tetrigo): Tetris in the terminal
339+- [Signls](https://github.com/emprcl/signls): a generative midi sequencer designed for composition and live performance
340+- [Superfile](https://github.com/yorukot/superfile): a super file manager
341+
342+### In Industry
343+
344+- Microsoft Azure – [Aztify](https://github.com/Azure/aztfy): bring Microsoft Azure resources under Terraform
345+- Daytona – [Daytona](https://github.com/daytonaio/daytona): an AI infrastructure platform
346+- Cockroach Labs – [CockroachDB](https://github.com/cockroachdb/cockroach): a cloud-native, high-availability distributed SQL database
347+- Truffle Security Co. – [Trufflehog](https://github.com/trufflesecurity/trufflehog): find leaked credentials
348+- NVIDIA – [container-canary](https://github.com/NVIDIA/container-canary): a container validator
349+- AWS – [eks-node-viewer](https://github.com/awslabs/eks-node-viewer): a tool for visualizing dynamic node usage within an EKS cluster
350+- MinIO – [mc](https://github.com/minio/mc): the official [MinIO](https://min.io) client
351+- Ubuntu – [Authd](https://github.com/ubuntu/authd): an authentication daemon for cloud-based identity providers
352+
353+### Charm stuff
354+
355+- [Glow](https://github.com/charmbracelet/glow): a markdown reader, browser, and online markdown stash
356+- [Huh?](https://github.com/charmbracelet/huh): an interactive prompt and form toolkit
357+- [Mods](https://github.com/charmbracelet/mods): AI on the CLI, built for pipelines
358+- [Wishlist](https://github.com/charmbracelet/wishlist): an SSH directory (and bastion!)
359+
360+### There’s so much more where that came from
361+
362+For more applications built with Bubble Tea see [Charm & Friends][community].
363+Is there something cool you made with Bubble Tea you want to share? [PRs][community] are
364+welcome!
365+
366+## Contributing
367+
368+See [contributing][contribute].
369+
370+[contribute]: https://github.com/charmbracelet/bubbletea/contribute
371+
372+## Feedback
373+
374+We’d love to hear your thoughts on this project. Feel free to drop us a note!
375+
376+- [Twitter](https://twitter.com/charmcli)
377+- [The Fediverse](https://mastodon.social/@charmcli)
378+- [Discord](https://charm.sh/chat)
379+
380+## Acknowledgments
381+
382+Bubble Tea is based on the paradigms of [The Elm Architecture][elm] by Evan
383+Czaplicki et alia and the excellent [go-tea][gotea] by TJ Holowaychuk. It’s
384+inspired by the many great [_Zeichenorientierte Benutzerschnittstellen_][zb]
385+of days past.
386+
387+[elm]: https://guide.elm-lang.org/architecture/
388+[gotea]: https://github.com/tj/go-tea
389+[zb]: https://de.wikipedia.org/wiki/Zeichenorientierte_Benutzerschnittstelle
390+[community]: https://github.com/charm-and-friends/charm-in-the-wild
391+
392+## License
393+
394+[MIT](https://github.com/charmbracelet/bubbletea/raw/main/LICENSE)
395+
396+---
397+
398+Part of [Charm](https://charm.sh).
399+
400+<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-banner-softy.jpg" width="400"></a>
401+
402+Charm热爱开源 • Charm loves open source • نحنُ نحب المصادر المفتوحة
vendor/charm.land/bubbletea/v2/Taskfile.yamlnew file+38
@@ -0,0 +1,38 @@
1+# https://taskfile.dev
2+
3+version: "3"
4+
5+tasks:
6+ lint:
7+ desc: Run lint
8+ cmds:
9+ - golangci-lint run
10+
11+ test:
12+ desc: Run tests
13+ cmds:
14+ - go test -race -count 4 -cpu 1,4 ./... {{.CLI_ARGS}}
15+
16+ release:
17+ desc: Create and push a new tag following semver
18+ vars:
19+ NEXT:
20+ sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always
21+ prompt: "This will release {{.NEXT}}. Continue?"
22+ preconditions:
23+ - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
24+ msg: Not on main branch
25+ - sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"
26+ msg: "Git is dirty"
27+ - sh: 'gh run list --workflow build.yml --commit $(git rev-parse HEAD) --status success --json conclusion -q ".[0].conclusion" | grep -q success'
28+ msg: "Test build for this commit failed or not present"
29+ cmds:
30+ - task: fetch-tags
31+ - git commit --allow-empty -m "{{.NEXT}}"
32+ - git tag --annotate --sign -m "{{.NEXT}}" {{.NEXT}} {{.CLI_ARGS}}
33+ - echo "Pushing {{.NEXT}}..."
34+ - git push origin main --follow-tags
35+
36+ fetch-tags:
37+ cmds:
38+ - git fetch --tags
vendor/charm.land/bubbletea/v2/UPGRADE_GUIDE_V2.mdnew file+573
@@ -0,0 +1,573 @@
1+# Bubble Tea v2 Upgrade Guide
2+
3+This guide covers everything you need to change when upgrading from Bubble Tea v1 to v2. For a tour of all the exciting new features, check out the [What's New](https://github.com/charmbracelet/bubbletea/releases/tag/v2.0.0) doc.
4+
5+> [!NOTE]
6+> We don't take API changes lightly and strive to make the upgrade process as simple as possible. If something feels way off, let us know.
7+
8+## Migration Checklist
9+
10+Here's the short version — a checklist you can follow top to bottom. Each item links to the relevant section below.
11+
12+- [ ] [Update import paths](#import-paths)
13+- [ ] [Change `View() string` to `View() tea.View`](#view-returns-a-teaview-now)
14+- [ ] [Replace `tea.KeyMsg` with `tea.KeyPressMsg`](#key-messages)
15+- [ ] [Update key fields: `msg.Type` / `msg.Runes` / `msg.Alt`](#key-messages)
16+- [ ] [Replace `case " ":` with `case "space":`](#key-messages)
17+- [ ] [Update mouse message usage](#mouse-messages)
18+- [ ] [Rename mouse button constants](#mouse-messages)
19+- [ ] [Remove old program options → use View fields](#removed-program-options)
20+- [ ] [Remove imperative commands → use View fields](#removed-commands)
21+- [ ] [Remove old program methods](#removed-program-methods)
22+- [ ] [Rename `tea.WindowSize()` → `tea.RequestWindowSize`](#renamed-apis)
23+- [ ] [Replace `tea.Sequentially(...)` → `tea.Sequence(...)`](#renamed-apis)
24+
25+## Import Paths
26+
27+The module path changed to a vanity domain. Lip Gloss moved too.
28+
29+```go
30+// Before
31+import tea "github.com/charmbracelet/bubbletea"
32+import "github.com/charmbracelet/lipgloss"
33+
34+// After
35+import tea "charm.land/bubbletea/v2"
36+import "charm.land/lipgloss/v2"
37+```
38+
39+## The Big Idea: Declarative Views
40+
41+The single biggest change in v2 is the shift from **imperative commands** to **declarative View fields**. In v1, you'd use program options like `tea.WithAltScreen()` and commands like `tea.EnterAltScreen` to toggle terminal features on and off. In v2, you just set fields on the `tea.View` struct in your `View()` method and Bubble Tea handles the rest.
42+
43+This means: no more startup option flags, no more toggle commands, no more fighting over state. Just declare what you want and Bubble Tea will make it so.
44+
45+```go
46+// v1: imperative — scattered across NewProgram, Init, and Update
47+p := tea.NewProgram(model{}, tea.WithAltScreen(), tea.WithMouseCellMotion())
48+
49+// v2: declarative — everything lives in View()
50+func (m model) View() tea.View {
51+ v := tea.NewView("Hello!")
52+ v.AltScreen = true
53+ v.MouseMode = tea.MouseModeCellMotion
54+ return v
55+}
56+```
57+
58+Keep this in mind as you go through the rest of the guide — most of the "removed" things simply moved into View fields.
59+
60+## View Returns a `tea.View` Now
61+
62+The `View()` method no longer returns a `string`. It returns a `tea.View` struct.
63+
64+```go
65+// Before:
66+func (m model) View() string {
67+ return "Hello, world!"
68+}
69+
70+// After:
71+func (m model) View() tea.View {
72+ return tea.NewView("Hello, world!")
73+}
74+```
75+
76+You can also use the longer form if you need to set additional fields:
77+
78+```go
79+func (m model) View() tea.View {
80+ var v tea.View
81+ v.SetContent("Hello, world!")
82+ v.AltScreen = true
83+ return v
84+}
85+```
86+
87+The `tea.View` struct has fields for everything that used to be controlled by options and commands:
88+
89+| View Field | What It Does |
90+|---|---|
91+| `Content` | The rendered string (set via `SetContent()` or `NewView()`) |
92+| `AltScreen` | Enter/exit the alternate screen buffer |
93+| `MouseMode` | `MouseModeNone`, `MouseModeCellMotion`, or `MouseModeAllMotion` |
94+| `ReportFocus` | Enable focus/blur event reporting |
95+| `DisableBracketedPasteMode` | Disable bracketed paste |
96+| `WindowTitle` | Set the terminal window title |
97+| `Cursor` | Control cursor position, shape, color, and blink |
98+| `ForegroundColor` | Set the terminal foreground color |
99+| `BackgroundColor` | Set the terminal background color |
100+| `ProgressBar` | Show a native terminal progress bar |
101+| `KeyboardEnhancements` | Request keyboard enhancement features |
102+| `OnMouse` | Intercept mouse messages based on view content |
103+
104+## Key Messages
105+
106+Key messages got a major overhaul. Here's the quick rundown:
107+
108+### `tea.KeyMsg` is now an interface
109+
110+In v1, `tea.KeyMsg` was a struct you'd match on for key presses. In v2, it's an **interface** that covers both key presses and releases. For most code, you want `tea.KeyPressMsg`:
111+
112+```go
113+// Before:
114+case tea.KeyMsg:
115+ switch msg.String() {
116+ case "q":
117+ return m, tea.Quit
118+ }
119+
120+// After:
121+case tea.KeyPressMsg:
122+ switch msg.String() {
123+ case "q":
124+ return m, tea.Quit
125+ }
126+```
127+
128+If you want to handle both presses and releases, use `tea.KeyMsg` and type-switch inside:
129+
130+```go
131+case tea.KeyMsg:
132+ switch key := msg.(type) {
133+ case tea.KeyPressMsg:
134+ // key press
135+ case tea.KeyReleaseMsg:
136+ // key release
137+ }
138+```
139+
140+### Key fields changed
141+
142+| v1 | v2 | Notes |
143+|---|---|---|
144+| `msg.Type` | `msg.Code` | A `rune` — can be `tea.KeyEnter`, `'a'`, etc. |
145+| `msg.Runes` | `msg.Text` | Now a `string`, not `[]rune` |
146+| `msg.Alt` | `msg.Mod` | `msg.Mod.Contains(tea.ModAlt)` for alt, etc. |
147+| `tea.KeyRune` | — | Check `len(msg.Text) > 0` instead |
148+| `tea.KeyCtrlC` | — | Use `msg.String() == "ctrl+c"` or check `msg.Code` + `msg.Mod` |
149+
150+### Space bar changed
151+
152+Space bar now returns `"space"` instead of `" "` when using `msg.String()`:
153+
154+```go
155+// Before:
156+case " ":
157+
158+// After:
159+case "space":
160+```
161+
162+`key.Code` is still `' '` and `key.Text` is still `" "`, but `String()` returns `"space"`.
163+
164+### Ctrl+key matching
165+
166+```go
167+// Before:
168+case tea.KeyCtrlC:
169+ // ctrl+c
170+
171+// After (option A — string matching):
172+case tea.KeyPressMsg:
173+ switch msg.String() {
174+ case "ctrl+c":
175+ // ctrl+c
176+ }
177+
178+// After (option B — field matching):
179+case tea.KeyPressMsg:
180+ if msg.Code == 'c' && msg.Mod == tea.ModCtrl {
181+ // ctrl+c
182+ }
183+```
184+
185+### New Key fields
186+
187+These are new in v2 and don't have v1 equivalents:
188+
189+- **`key.ShiftedCode`** — the shifted key code (e.g., `'B'` when pressing shift+b)
190+- **`key.BaseCode`** — the key on a US PC-101 layout (handy for international keyboards)
191+- **`key.IsRepeat`** — whether the key is auto-repeating (Kitty protocol / Windows Console only)
192+- **`key.Keystroke()`** — like `String()` but always includes modifier info
193+
194+## Paste Messages
195+
196+Paste events no longer come in as `tea.KeyMsg` with a `Paste` flag. They're now their own message types:
197+
198+```go
199+// Before:
200+case tea.KeyMsg:
201+ if msg.Paste {
202+ m.text += string(msg.Runes)
203+ }
204+
205+// After:
206+case tea.PasteMsg:
207+ m.text += msg.Content
208+case tea.PasteStartMsg:
209+ // paste started
210+case tea.PasteEndMsg:
211+ // paste ended
212+```
213+
214+## Mouse Messages
215+
216+### `tea.MouseMsg` is now an interface
217+
218+In v1, `tea.MouseMsg` was a struct with `X`, `Y`, `Button`, etc. In v2, it's an **interface**. You get the coordinates by calling `msg.Mouse()`:
219+
220+```go
221+// Before:
222+case tea.MouseMsg:
223+ x, y := msg.X, msg.Y
224+
225+// After:
226+case tea.MouseMsg:
227+ mouse := msg.Mouse()
228+ x, y := mouse.X, mouse.Y
229+```
230+
231+### Mouse events are split by type
232+
233+Instead of checking `msg.Action`, match on specific message types:
234+
235+```go
236+// Before:
237+case tea.MouseMsg:
238+ if msg.Action == tea.MouseActionPress && msg.Button == tea.MouseButtonLeft {
239+ // left click
240+ }
241+
242+// After:
243+case tea.MouseClickMsg:
244+ if msg.Button == tea.MouseLeft {
245+ // left click
246+ }
247+case tea.MouseReleaseMsg:
248+ // release
249+case tea.MouseWheelMsg:
250+ // scroll
251+case tea.MouseMotionMsg:
252+ // movement
253+```
254+
255+### Button constants renamed
256+
257+| v1 | v2 |
258+|---|---|
259+| `tea.MouseButtonLeft` | `tea.MouseLeft` |
260+| `tea.MouseButtonRight` | `tea.MouseRight` |
261+| `tea.MouseButtonMiddle` | `tea.MouseMiddle` |
262+| `tea.MouseButtonWheelUp` | `tea.MouseWheelUp` |
263+| `tea.MouseButtonWheelDown` | `tea.MouseWheelDown` |
264+| `tea.MouseButtonWheelLeft` | `tea.MouseWheelLeft` |
265+| `tea.MouseButtonWheelRight` | `tea.MouseWheelRight` |
266+
267+### `tea.MouseEvent` → `tea.Mouse`
268+
269+The `MouseEvent` struct is gone. The new `Mouse` struct has `X`, `Y`, `Button`, and `Mod` fields.
270+
271+### Mouse mode is now a View field
272+
273+```go
274+// Before:
275+p := tea.NewProgram(model{}, tea.WithMouseCellMotion())
276+
277+// After:
278+func (m model) View() tea.View {
279+ v := tea.NewView("...")
280+ v.MouseMode = tea.MouseModeCellMotion
281+ return v
282+}
283+```
284+
285+## Removed Program Options
286+
287+These options no longer exist. They all moved to View fields.
288+
289+| Removed Option | Do This Instead |
290+|---|---|
291+| `tea.WithAltScreen()` | `view.AltScreen = true` |
292+| `tea.WithMouseCellMotion()` | `view.MouseMode = tea.MouseModeCellMotion` |
293+| `tea.WithMouseAllMotion()` | `view.MouseMode = tea.MouseModeAllMotion` |
294+| `tea.WithReportFocus()` | `view.ReportFocus = true` |
295+| `tea.WithoutBracketedPaste()` | `view.DisableBracketedPasteMode = true` |
296+| `tea.WithInputTTY()` | Just remove it — v2 always opens the TTY for input automatically |
297+| `tea.WithANSICompressor()` | Just remove it — the new renderer handles optimization automatically |
298+
299+## Removed Commands
300+
301+These commands no longer exist. Set the corresponding View field instead.
302+
303+| Removed Command | Do This Instead |
304+|---|---|
305+| `tea.EnterAltScreen` | `view.AltScreen = true` |
306+| `tea.ExitAltScreen` | `view.AltScreen = false` |
307+| `tea.EnableMouseCellMotion` | `view.MouseMode = tea.MouseModeCellMotion` |
308+| `tea.EnableMouseAllMotion` | `view.MouseMode = tea.MouseModeAllMotion` |
309+| `tea.DisableMouse` | `view.MouseMode = tea.MouseModeNone` |
310+| `tea.HideCursor` | `view.Cursor = nil` |
311+| `tea.ShowCursor` | `view.Cursor = &tea.Cursor{...}` or `tea.NewCursor(x, y)` |
312+| `tea.EnableBracketedPaste` | `view.DisableBracketedPasteMode = false` |
313+| `tea.DisableBracketedPaste` | `view.DisableBracketedPasteMode = true` |
314+| `tea.EnableReportFocus` | `view.ReportFocus = true` |
315+| `tea.DisableReportFocus` | `view.ReportFocus = false` |
316+| `tea.SetWindowTitle("...")` | `view.WindowTitle = "..."` |
317+
318+## Removed Program Methods
319+
320+These methods on `*Program` are gone.
321+
322+| Removed Method | Do This Instead |
323+|---|---|
324+| `p.Start()` | `p.Run()` |
325+| `p.StartReturningModel()` | `p.Run()` |
326+| `p.EnterAltScreen()` | `view.AltScreen = true` in `View()` |
327+| `p.ExitAltScreen()` | `view.AltScreen = false` in `View()` |
328+| `p.EnableMouseCellMotion()` | `view.MouseMode` in `View()` |
329+| `p.DisableMouseCellMotion()` | `view.MouseMode = tea.MouseModeNone` in `View()` |
330+| `p.EnableMouseAllMotion()` | `view.MouseMode` in `View()` |
331+| `p.DisableMouseAllMotion()` | `view.MouseMode = tea.MouseModeNone` in `View()` |
332+| `p.SetWindowTitle(...)` | `view.WindowTitle` in `View()` |
333+
334+## Renamed APIs
335+
336+| v1 | v2 | Notes |
337+|---|---|---|
338+| `tea.Sequentially(...)` | `tea.Sequence(...)` | `Sequentially` was already deprecated in v1 |
339+| `tea.WindowSize()` | `tea.RequestWindowSize` | Now returns `Msg` directly, not a `Cmd` |
340+
341+## New Program Options
342+
343+These are new in v2:
344+
345+| Option | What It Does |
346+|---|---|
347+| `tea.WithColorProfile(p)` | Force a specific color profile (great for testing) |
348+| `tea.WithWindowSize(w, h)` | Set initial terminal size (great for testing) |
349+
350+## Complete Before & After
351+
352+Here's a minimal but complete program showing the most common migration patterns side by side.
353+
354+**v1:**
355+
356+```go
357+package main
358+
359+import (
360+ "fmt"
361+ "os"
362+
363+ tea "github.com/charmbracelet/bubbletea"
364+)
365+
366+type model struct {
367+ count int
368+}
369+
370+func (m model) Init() tea.Cmd {
371+ return nil
372+}
373+
374+func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
375+ switch msg := msg.(type) {
376+ case tea.KeyMsg:
377+ switch msg.String() {
378+ case "q", "ctrl+c":
379+ return m, tea.Quit
380+ case " ":
381+ m.count++
382+ }
383+ case tea.MouseMsg:
384+ if msg.Action == tea.MouseActionPress && msg.Button == tea.MouseButtonLeft {
385+ m.count++
386+ }
387+ }
388+ return m, nil
389+}
390+
391+func (m model) View() string {
392+ return fmt.Sprintf("Count: %d\n\nSpace or click to increment. q to quit.\n", m.count)
393+}
394+
395+func main() {
396+ p := tea.NewProgram(model{}, tea.WithAltScreen(), tea.WithMouseCellMotion())
397+ if _, err := p.Run(); err != nil {
398+ fmt.Fprintln(os.Stderr, err)
399+ os.Exit(1)
400+ }
401+}
402+```
403+
404+**v2:**
405+
406+```go
407+package main
408+
409+import (
410+ "fmt"
411+ "os"
412+
413+ tea "charm.land/bubbletea/v2"
414+)
415+
416+type model struct {
417+ count int
418+}
419+
420+func (m model) Init() tea.Cmd {
421+ return nil
422+}
423+
424+func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
425+ switch msg := msg.(type) {
426+ case tea.KeyPressMsg:
427+ switch msg.String() {
428+ case "q", "ctrl+c":
429+ return m, tea.Quit
430+ case "space":
431+ m.count++
432+ }
433+ case tea.MouseClickMsg:
434+ if msg.Button == tea.MouseLeft {
435+ m.count++
436+ }
437+ }
438+ return m, nil
439+}
440+
441+func (m model) View() tea.View {
442+ v := tea.NewView(fmt.Sprintf("Count: %d\n\nSpace or click to increment. q to quit.\n", m.count))
443+ v.AltScreen = true
444+ v.MouseMode = tea.MouseModeCellMotion
445+ return v
446+}
447+
448+func main() {
449+ p := tea.NewProgram(model{})
450+ if _, err := p.Run(); err != nil {
451+ fmt.Fprintln(os.Stderr, err)
452+ os.Exit(1)
453+ }
454+}
455+```
456+
457+Notice how the `NewProgram` call got simpler? All the terminal feature flags moved into `View()` where they belong.
458+
459+## Quick Reference
460+
461+A flat old → new lookup table. Handy for search-and-replace and LLM-assisted migration.
462+
463+### Import Paths
464+
465+| v1 | v2 |
466+|---|---|
467+| `github.com/charmbracelet/bubbletea` | `charm.land/bubbletea/v2` |
468+| `github.com/charmbracelet/lipgloss` | `charm.land/lipgloss/v2` |
469+
470+### Model Interface
471+
472+| v1 | v2 |
473+|---|---|
474+| `View() string` | `View() tea.View` |
475+
476+### Key Events
477+
478+| v1 | v2 |
479+|---|---|
480+| `tea.KeyMsg` (struct) | `tea.KeyPressMsg` for presses, `tea.KeyMsg` (interface) for both |
481+| `msg.Type` | `msg.Code` |
482+| `msg.Runes` | `msg.Text` (string, not `[]rune`) |
483+| `msg.Alt` | `msg.Mod.Contains(tea.ModAlt)` |
484+| `tea.KeyRune` | check `len(msg.Text) > 0` |
485+| `tea.KeyCtrlC` | `msg.Code == 'c' && msg.Mod == tea.ModCtrl` or `msg.String() == "ctrl+c"` |
486+| `case " ":` (space) | `case "space":` |
487+
488+### Mouse Events
489+
490+| v1 | v2 |
491+|---|---|
492+| `tea.MouseMsg` (struct) | `tea.MouseMsg` (interface) — call `.Mouse()` for the data |
493+| `tea.MouseEvent` | `tea.Mouse` |
494+| `tea.MouseButtonLeft` | `tea.MouseLeft` |
495+| `tea.MouseButtonRight` | `tea.MouseRight` |
496+| `tea.MouseButtonMiddle` | `tea.MouseMiddle` |
497+| `tea.MouseButtonWheelUp` | `tea.MouseWheelUp` |
498+| `tea.MouseButtonWheelDown` | `tea.MouseWheelDown` |
499+| `msg.X`, `msg.Y` (direct) | `msg.Mouse().X`, `msg.Mouse().Y` |
500+
501+### Options → View Fields
502+
503+| v1 Option | v2 View Field |
504+|---|---|
505+| `tea.WithAltScreen()` | `view.AltScreen = true` |
506+| `tea.WithMouseCellMotion()` | `view.MouseMode = tea.MouseModeCellMotion` |
507+| `tea.WithMouseAllMotion()` | `view.MouseMode = tea.MouseModeAllMotion` |
508+| `tea.WithReportFocus()` | `view.ReportFocus = true` |
509+| `tea.WithoutBracketedPaste()` | `view.DisableBracketedPasteMode = true` |
510+
511+### Commands → View Fields
512+
513+| v1 Command | v2 View Field |
514+|---|---|
515+| `tea.EnterAltScreen` / `tea.ExitAltScreen` | `view.AltScreen = true/false` |
516+| `tea.EnableMouseCellMotion` | `view.MouseMode = tea.MouseModeCellMotion` |
517+| `tea.EnableMouseAllMotion` | `view.MouseMode = tea.MouseModeAllMotion` |
518+| `tea.DisableMouse` | `view.MouseMode = tea.MouseModeNone` |
519+| `tea.HideCursor` / `tea.ShowCursor` | `view.Cursor = nil` / `view.Cursor = &tea.Cursor{...}` |
520+| `tea.EnableBracketedPaste` / `tea.DisableBracketedPaste` | `view.DisableBracketedPasteMode = false/true` |
521+| `tea.EnableReportFocus` / `tea.DisableReportFocus` | `view.ReportFocus = true/false` |
522+| `tea.SetWindowTitle("...")` | `view.WindowTitle = "..."` |
523+
524+### Removed Options (No Replacement Needed)
525+
526+| v1 Option | What Happened |
527+|---|---|
528+| `tea.WithInputTTY()` | v2 always opens the TTY for input automatically |
529+| `tea.WithANSICompressor()` | The new renderer handles optimization automatically |
530+
531+### Removed Program Methods
532+
533+| v1 Method | v2 Replacement |
534+|---|---|
535+| `p.Start()` | `p.Run()` |
536+| `p.StartReturningModel()` | `p.Run()` |
537+| `p.EnterAltScreen()` | `view.AltScreen = true` in `View()` |
538+| `p.ExitAltScreen()` | `view.AltScreen = false` in `View()` |
539+| `p.EnableMouseCellMotion()` | `view.MouseMode` in `View()` |
540+| `p.DisableMouseCellMotion()` | `view.MouseMode = tea.MouseModeNone` in `View()` |
541+| `p.EnableMouseAllMotion()` | `view.MouseMode` in `View()` |
542+| `p.DisableMouseAllMotion()` | `view.MouseMode = tea.MouseModeNone` in `View()` |
543+| `p.SetWindowTitle(...)` | `view.WindowTitle` in `View()` |
544+
545+### Other Renames
546+
547+| v1 | v2 |
548+|---|---|
549+| `tea.Sequentially(...)` | `tea.Sequence(...)` |
550+| `tea.WindowSize()` | `tea.RequestWindowSize` (now returns `Msg`, not `Cmd`) |
551+
552+### New Program Options
553+
554+| Option | Description |
555+|---|---|
556+| `tea.WithColorProfile(p)` | Force a specific color profile |
557+| `tea.WithWindowSize(w, h)` | Set initial window size (great for testing) |
558+
559+## Feedback
560+
561+Have thoughts on the v2 upgrade? We'd _love_ to hear about it. Let us know on…
562+
563+- [Discord](https://charm.land/chat)
564+- [Matrix](https://charm.land/matrix)
565+- [Email](mailto:vt100@charm.land)
566+
567+---
568+
569+Part of [Charm](https://charm.land).
570+
571+<a href="https://charm.land/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>
572+
573+Charm热爱开源 • Charm loves open source • نحنُ نحب المصادر المفتوحة
vendor/charm.land/bubbletea/v2/clipboard.gonew file+70
@@ -0,0 +1,70 @@
1+package tea
2+
3+// ClipboardMsg is a clipboard read message event. This message is emitted when
4+// a terminal receives an OSC52 clipboard read message event.
5+type ClipboardMsg struct {
6+ Content string
7+ Selection byte
8+}
9+
10+// Clipboard returns the clipboard selection type. This will be one of the
11+// following values:
12+//
13+// - c: System clipboard.
14+// - p: Primary clipboard (X11/Wayland only).
15+func (e ClipboardMsg) Clipboard() byte {
16+ return e.Selection
17+}
18+
19+// String returns the string representation of the clipboard message.
20+func (e ClipboardMsg) String() string {
21+ return e.Content
22+}
23+
24+// setClipboardMsg is an internal message used to set the system clipboard
25+// using OSC52.
26+type setClipboardMsg string
27+
28+// SetClipboard produces a command that sets the system clipboard using OSC52.
29+// Note that OSC52 is not supported in all terminals.
30+func SetClipboard(s string) Cmd {
31+ return func() Msg {
32+ return setClipboardMsg(s)
33+ }
34+}
35+
36+// readClipboardMsg is an internal message used to read the system clipboard
37+// using OSC52.
38+type readClipboardMsg struct{}
39+
40+// ReadClipboard produces a command that reads the system clipboard using OSC52.
41+// Note that OSC52 is not supported in all terminals.
42+func ReadClipboard() Msg {
43+ return readClipboardMsg{}
44+}
45+
46+// setPrimaryClipboardMsg is an internal message used to set the primary
47+// clipboard using OSC52.
48+type setPrimaryClipboardMsg string
49+
50+// SetPrimaryClipboard produces a command that sets the primary clipboard using
51+// OSC52. Primary clipboard selection is a feature present in X11 and Wayland
52+// only.
53+// Note that OSC52 is not supported in all terminals.
54+func SetPrimaryClipboard(s string) Cmd {
55+ return func() Msg {
56+ return setPrimaryClipboardMsg(s)
57+ }
58+}
59+
60+// readPrimaryClipboardMsg is an internal message used to read the primary
61+// clipboard using OSC52.
62+type readPrimaryClipboardMsg struct{}
63+
64+// ReadPrimaryClipboard produces a command that reads the primary clipboard
65+// using OSC52. Primary clipboard selection is a feature present in X11 and
66+// Wayland only.
67+// Note that OSC52 is not supported in all terminals.
68+func ReadPrimaryClipboard() Msg {
69+ return readPrimaryClipboardMsg{}
70+}
vendor/charm.land/bubbletea/v2/color.gonew file+91
@@ -0,0 +1,91 @@
1+package tea
2+
3+import (
4+ "image/color"
5+
6+ uv "github.com/charmbracelet/ultraviolet"
7+)
8+
9+// backgroundColorMsg is a message that requests the terminal background color.
10+type backgroundColorMsg struct{}
11+
12+// RequestBackgroundColor is a command that requests the terminal background color.
13+func RequestBackgroundColor() Msg {
14+ return backgroundColorMsg{}
15+}
16+
17+// foregroundColorMsg is a message that requests the terminal foreground color.
18+type foregroundColorMsg struct{}
19+
20+// RequestForegroundColor is a command that requests the terminal foreground color.
21+func RequestForegroundColor() Msg {
22+ return foregroundColorMsg{}
23+}
24+
25+// cursorColorMsg is a message that requests the terminal cursor color.
26+type cursorColorMsg struct{}
27+
28+// RequestCursorColor is a command that requests the terminal cursor color.
29+func RequestCursorColor() Msg {
30+ return cursorColorMsg{}
31+}
32+
33+// ForegroundColorMsg represents a foreground color message. This message is
34+// emitted when the program requests the terminal foreground color with the
35+// [RequestForegroundColor] Cmd.
36+type ForegroundColorMsg struct{ color.Color }
37+
38+// String returns the hex representation of the color.
39+func (e ForegroundColorMsg) String() string {
40+ return uv.ForegroundColorEvent(e).String()
41+}
42+
43+// IsDark returns whether the color is dark.
44+func (e ForegroundColorMsg) IsDark() bool {
45+ return uv.ForegroundColorEvent(e).IsDark()
46+}
47+
48+// BackgroundColorMsg represents a background color message. This message is
49+// emitted when the program requests the terminal background color with the
50+// [RequestBackgroundColor] Cmd.
51+//
52+// This is commonly used in [Update.Init] to get the terminal background color
53+// for style definitions. For that you'll want to call
54+// [BackgroundColorMsg.IsDark] to determine if the color is dark or light. For
55+// example:
56+//
57+// func (m Model) Init() (Model, Cmd) {
58+// return m, RequestBackgroundColor()
59+// }
60+//
61+// func (m Model) Update(msg Msg) (Model, Cmd) {
62+// switch msg := msg.(type) {
63+// case BackgroundColorMsg:
64+// m.styles = newStyles(msg.IsDark())
65+// }
66+// }
67+type BackgroundColorMsg struct{ color.Color }
68+
69+// String returns the hex representation of the color.
70+func (e BackgroundColorMsg) String() string {
71+ return uv.BackgroundColorEvent(e).String()
72+}
73+
74+// IsDark returns whether the color is dark.
75+func (e BackgroundColorMsg) IsDark() bool {
76+ return uv.BackgroundColorEvent(e).IsDark()
77+}
78+
79+// CursorColorMsg represents a cursor color change message. This message is
80+// emitted when the program requests the terminal cursor color.
81+type CursorColorMsg struct{ color.Color }
82+
83+// String returns the hex representation of the color.
84+func (e CursorColorMsg) String() string {
85+ return uv.CursorColorEvent(e).String()
86+}
87+
88+// IsDark returns whether the color is dark.
89+func (e CursorColorMsg) IsDark() bool {
90+ return uv.CursorColorEvent(e).IsDark()
91+}
vendor/charm.land/bubbletea/v2/commands.gonew file+175
@@ -0,0 +1,175 @@
1+package tea
2+
3+import (
4+ "time"
5+)
6+
7+// Batch performs a bunch of commands concurrently with no ordering guarantees
8+// about the results. Use a Batch to return several commands.
9+//
10+// Example:
11+//
12+// func (m model) Init() (Model, Cmd) {
13+// return m, tea.Batch(someCommand, someOtherCommand)
14+// }
15+func Batch(cmds ...Cmd) Cmd {
16+ return compactCmds[BatchMsg](cmds)
17+}
18+
19+// BatchMsg is a message used to perform a bunch of commands concurrently with
20+// no ordering guarantees. You can send a BatchMsg with Batch.
21+type BatchMsg []Cmd
22+
23+// Sequence runs the given commands one at a time, in order. Contrast this with
24+// Batch, which runs commands concurrently.
25+func Sequence(cmds ...Cmd) Cmd {
26+ return compactCmds[sequenceMsg](cmds)
27+}
28+
29+// sequenceMsg is used internally to run the given commands in order.
30+type sequenceMsg []Cmd
31+
32+// compactCmds ignores any nil commands in cmds, and returns the most direct
33+// command possible. That is, considering the non-nil commands, if there are
34+// none it returns nil, if there is exactly one it returns that command
35+// directly, else it returns the non-nil commands as type T.
36+func compactCmds[T ~[]Cmd](cmds []Cmd) Cmd {
37+ var validCmds []Cmd
38+ for _, c := range cmds {
39+ if c == nil {
40+ continue
41+ }
42+ validCmds = append(validCmds, c)
43+ }
44+ switch len(validCmds) {
45+ case 0:
46+ return nil
47+ case 1:
48+ return validCmds[0]
49+ default:
50+ return func() Msg {
51+ return T(validCmds)
52+ }
53+ }
54+}
55+
56+// Every is a command that ticks in sync with the system clock. So, if you
57+// wanted to tick with the system clock every second, minute or hour you
58+// could use this. It's also handy for having different things tick in sync.
59+//
60+// Because we're ticking with the system clock the tick will likely not run for
61+// the entire specified duration. For example, if we're ticking for one minute
62+// and the clock is at 12:34:20 then the next tick will happen at 12:35:00, 40
63+// seconds later.
64+//
65+// To produce the command, pass a duration and a function which returns
66+// a message containing the time at which the tick occurred.
67+//
68+// type TickMsg time.Time
69+//
70+// cmd := Every(time.Second, func(t time.Time) Msg {
71+// return TickMsg(t)
72+// })
73+//
74+// Beginners' note: Every sends a single message and won't automatically
75+// dispatch messages at an interval. To do that, you'll want to return another
76+// Every command after receiving your tick message. For example:
77+//
78+// type TickMsg time.Time
79+//
80+// // Send a message every second.
81+// func tickEvery() Cmd {
82+// return Every(time.Second, func(t time.Time) Msg {
83+// return TickMsg(t)
84+// })
85+// }
86+//
87+// func (m model) Init() (Model, Cmd) {
88+// // Start ticking.
89+// return m, tickEvery()
90+// }
91+//
92+// func (m model) Update(msg Msg) (Model, Cmd) {
93+// switch msg.(type) {
94+// case TickMsg:
95+// // Return your Every command again to loop.
96+// return m, tickEvery()
97+// }
98+// return m, nil
99+// }
100+//
101+// Every is analogous to Tick in the Elm Architecture.
102+func Every(duration time.Duration, fn func(time.Time) Msg) Cmd {
103+ n := time.Now()
104+ d := n.Truncate(duration).Add(duration).Sub(n)
105+ t := time.NewTimer(d)
106+ return func() Msg {
107+ ts := <-t.C
108+ t.Stop()
109+ for len(t.C) > 0 {
110+ <-t.C
111+ }
112+ return fn(ts)
113+ }
114+}
115+
116+// Tick produces a command at an interval independent of the system clock at
117+// the given duration. That is, the timer begins precisely when invoked,
118+// and runs for its entire duration.
119+//
120+// To produce the command, pass a duration and a function which returns
121+// a message containing the time at which the tick occurred.
122+//
123+// type TickMsg time.Time
124+//
125+// cmd := Tick(time.Second, func(t time.Time) Msg {
126+// return TickMsg(t)
127+// })
128+//
129+// Beginners' note: Tick sends a single message and won't automatically
130+// dispatch messages at an interval. To do that, you'll want to return another
131+// Tick command after receiving your tick message. For example:
132+//
133+// type TickMsg time.Time
134+//
135+// func doTick() Cmd {
136+// return Tick(time.Second, func(t time.Time) Msg {
137+// return TickMsg(t)
138+// })
139+// }
140+//
141+// func (m model) Init() (Model, Cmd) {
142+// // Start ticking.
143+// return m, doTick()
144+// }
145+//
146+// func (m model) Update(msg Msg) (Model, Cmd) {
147+// switch msg.(type) {
148+// case TickMsg:
149+// // Return your Tick command again to loop.
150+// return m, doTick()
151+// }
152+// return m, nil
153+// }
154+func Tick(d time.Duration, fn func(time.Time) Msg) Cmd {
155+ t := time.NewTimer(d)
156+ return func() Msg {
157+ ts := <-t.C
158+ t.Stop()
159+ for len(t.C) > 0 {
160+ <-t.C
161+ }
162+ return fn(ts)
163+ }
164+}
165+
166+type windowSizeMsg struct{}
167+
168+// RequestWindowSize is a command that queries the terminal for its current
169+// size. It delivers the results to Update via a [WindowSizeMsg]. Keep in mind
170+// that WindowSizeMsgs will automatically be delivered to Update when the
171+// [Program] starts and when the window dimensions change so in many cases you
172+// will not need to explicitly invoke this command.
173+func RequestWindowSize() Msg {
174+ return windowSizeMsg{}
175+}
vendor/charm.land/bubbletea/v2/cursed_renderer.gonew file+860
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/cursor.gonew file+28
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/environ.gonew file+34
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/exec.gonew file+129
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/focus.gonew file+9
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/input.gonew file+54
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/key.gonew file+371
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/keyboard.gonew file+59
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/logging.gonew file+53
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/mod.gonew file+27
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/mouse.gonew file+144
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/nil_renderer.gonew file+53
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/options.gonew file+168
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/paste.gonew file+20
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/profile.gonew file+15
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/raw.gonew file+37
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/renderer.gonew file+104
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/screen.gonew file+68
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/signals_unix.gonew file+33
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/signals_windows.gonew file+10
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/tea.gonew file+1439
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/termcap.gonew file+48
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/termios_bsd.gonew file+13
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/termios_other.gonew file+8
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/termios_unix.gonew file+14
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/termios_windows.gonew file+11
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/tty.gonew file+136
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/tty_unix.gonew file+47
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/tty_windows.gonew file+64
This diff is too big to show here.
vendor/charm.land/bubbletea/v2/xterm.gonew file+22
This diff is too big to show here.
vendor/charm.land/catwalk/LICENSEnew file+21
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/aihubmix.jsonnew file+3746
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/alibaba-singapore.jsonnew file+141
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/alibaba-united-states.jsonnew file+45
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/anthropic.jsonnew file+183
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/avian.jsonnew file+125
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/azure.jsonnew file+225
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/baseten.jsonnew file+187
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/bedrock-europe.jsonnew file+115
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/bedrock-united-states.jsonnew file+143
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/cerebras.jsonnew file+42
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/chutes.jsonnew file+227
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/copilot.jsonnew file+310
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/cortecs.jsonnew file+1697
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/deepseek.jsonnew file+45
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/fireworks.jsonnew file+171
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/gemini.jsonnew file+91
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/groq.jsonnew file+36
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/huggingface.jsonnew file+267
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/ionet.jsonnew file+335
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/kimi.jsonnew file+23
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/minimax-china.jsonnew file+91
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/minimax.jsonnew file+91
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/moonshot.jsonnew file+131
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/nebius.jsonnew file+419
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/neuralwatt.jsonnew file+155
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/openai.jsonnew file+352
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/opencode-go.jsonnew file+351
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/opencode-zen.jsonnew file+908
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/openrouter.jsonnew file+3831
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/qiniucloud.jsonnew file+179
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/scaleway.jsonnew file+141
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/synthetic.jsonnew file+197
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/venice.jsonnew file+1173
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/vercel.jsonnew file+3072
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/vertexai.jsonnew file+170
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/xai.jsonnew file+59
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/zai.jsonnew file+136
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/zhipu-coding.jsonnew file+136
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/configs/zhipu.jsonnew file+120
This diff is too big to show here.
vendor/charm.land/catwalk/internal/providers/providers.gonew file+349
This diff is too big to show here.
vendor/charm.land/catwalk/pkg/catwalk/client.gonew file+79
This diff is too big to show here.
vendor/charm.land/catwalk/pkg/catwalk/pkg.gonew file+2
This diff is too big to show here.
vendor/charm.land/catwalk/pkg/catwalk/provider.gonew file+157
This diff is too big to show here.
vendor/charm.land/catwalk/pkg/embedded/embedded.gonew file+13
This diff is too big to show here.
vendor/charm.land/fang/v2/.gitignorenew file+3
This diff is too big to show here.
vendor/charm.land/fang/v2/.golangci.ymlnew file+47
This diff is too big to show here.
vendor/charm.land/fang/v2/.goreleaser.ymlnew file+5
This diff is too big to show here.
vendor/charm.land/fang/v2/LICENSE.mdnew file+21
This diff is too big to show here.
vendor/charm.land/fang/v2/README.mdnew file+92
This diff is too big to show here.
vendor/charm.land/fang/v2/Taskfile.ymlnew file+7
This diff is too big to show here.
vendor/charm.land/fang/v2/UPGRADE_GUIDE_V2.mdnew file+127
This diff is too big to show here.
vendor/charm.land/fang/v2/fang.gonew file+208
This diff is too big to show here.
vendor/charm.land/fang/v2/fang_other.gonew file+10
This diff is too big to show here.
vendor/charm.land/fang/v2/fang_windows.gonew file+30
This diff is too big to show here.
vendor/charm.land/fang/v2/help.gonew file+482
This diff is too big to show here.
vendor/charm.land/fang/v2/theme.gonew file+222
This diff is too big to show here.
vendor/charm.land/fantasy/.editorconfignew file+18
This diff is too big to show here.
vendor/charm.land/fantasy/.gitattributesnew file+1
This diff is too big to show here.
vendor/charm.land/fantasy/.gitignorenew file+42
This diff is too big to show here.
vendor/charm.land/fantasy/.golangci.ymlnew file+44
This diff is too big to show here.
vendor/charm.land/fantasy/.goreleaser.ymlnew file+6
This diff is too big to show here.
vendor/charm.land/fantasy/AGENTS.mdnew file+29
This diff is too big to show here.
vendor/charm.land/fantasy/LICENSEnew file+177
This diff is too big to show here.
vendor/charm.land/fantasy/NOTICEnew file+13
This diff is too big to show here.
vendor/charm.land/fantasy/README.mdnew file+95
This diff is too big to show here.
vendor/charm.land/fantasy/Taskfile.yamlnew file+45
This diff is too big to show here.
vendor/charm.land/fantasy/agent.gonew file+1702
This diff is too big to show here.
vendor/charm.land/fantasy/content.gonew file+625
This diff is too big to show here.
vendor/charm.land/fantasy/content_json.gonew file+1046
This diff is too big to show here.
vendor/charm.land/fantasy/crush.jsonnew file+6
This diff is too big to show here.
vendor/charm.land/fantasy/cspell.jsonnew file+1
This diff is too big to show here.
vendor/charm.land/fantasy/doc.gonew file+2
This diff is too big to show here.
vendor/charm.land/fantasy/errors.gonew file+155
This diff is too big to show here.
vendor/charm.land/fantasy/jsonrepair/jsonrepair.gonew file+1648
This diff is too big to show here.
vendor/charm.land/fantasy/model.gonew file+261
This diff is too big to show here.
vendor/charm.land/fantasy/model_json.gonew file+156
This diff is too big to show here.
vendor/charm.land/fantasy/object.gonew file+236
This diff is too big to show here.
vendor/charm.land/fantasy/object/object.gonew file+620
This diff is too big to show here.
vendor/charm.land/fantasy/provider.gonew file+11
This diff is too big to show here.
vendor/charm.land/fantasy/provider_registry.gonew file+106
This diff is too big to show here.
vendor/charm.land/fantasy/providers/anthropic/anthropic.gonew file+1707
This diff is too big to show here.
vendor/charm.land/fantasy/providers/anthropic/bedrock.gonew file+15
This diff is too big to show here.
vendor/charm.land/fantasy/providers/anthropic/call_useragent.gonew file+14
This diff is too big to show here.
vendor/charm.land/fantasy/providers/anthropic/computer_use.gonew file+427
This diff is too big to show here.
vendor/charm.land/fantasy/providers/anthropic/error.gonew file+67
This diff is too big to show here.
vendor/charm.land/fantasy/providers/anthropic/google.gonew file+11
This diff is too big to show here.
vendor/charm.land/fantasy/providers/anthropic/provider_options.gonew file+283
This diff is too big to show here.
vendor/charm.land/fantasy/providers/anthropic/sanitize.gonew file+33
This diff is too big to show here.
vendor/charm.land/fantasy/providers/azure/README.mdnew file+6
This diff is too big to show here.
vendor/charm.land/fantasy/providers/azure/azure.gonew file+125
This diff is too big to show here.
vendor/charm.land/fantasy/providers/bedrock/README.mdnew file+10
This diff is too big to show here.
vendor/charm.land/fantasy/providers/bedrock/bedrock.gonew file+87
This diff is too big to show here.
vendor/charm.land/fantasy/providers/google/README.mdnew file+63
This diff is too big to show here.
vendor/charm.land/fantasy/providers/google/auth.gonew file+15
This diff is too big to show here.
vendor/charm.land/fantasy/providers/google/call_useragent.gonew file+53
This diff is too big to show here.
vendor/charm.land/fantasy/providers/google/error.gonew file+51
This diff is too big to show here.
vendor/charm.land/fantasy/providers/google/google.gonew file+1488
This diff is too big to show here.
vendor/charm.land/fantasy/providers/google/provider_options.gonew file+146
This diff is too big to show here.
vendor/charm.land/fantasy/providers/google/slice.gonew file+11
This diff is too big to show here.
vendor/charm.land/fantasy/providers/internal/httpheaders/httpheaders.gonew file+60
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openai/call_useragent.gonew file+31
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openai/error.gonew file+92
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openai/language_model.gonew file+990
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openai/language_model_hooks.gonew file+668
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openai/openai.gonew file+220
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openai/provider_options.gonew file+217
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openai/responses_language_model.gonew file+1678
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openai/responses_options.gonew file+395
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openaicompat/language_model_hooks.gonew file+516
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openaicompat/openaicompat.gonew file+140
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openaicompat/provider_options.gonew file+161
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openrouter/language_model_hooks.gonew file+1063
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openrouter/openrouter.gonew file+121
This diff is too big to show here.
vendor/charm.land/fantasy/providers/openrouter/provider_options.gonew file+218
This diff is too big to show here.
vendor/charm.land/fantasy/providers/vercel/language_model_hooks.gonew file+1074
This diff is too big to show here.
vendor/charm.land/fantasy/providers/vercel/provider_options.gonew file+195
This diff is too big to show here.
vendor/charm.land/fantasy/providers/vercel/vercel.gonew file+122
This diff is too big to show here.
vendor/charm.land/fantasy/retry.gonew file+155
This diff is too big to show here.
vendor/charm.land/fantasy/schema/schema.gonew file+442
This diff is too big to show here.
vendor/charm.land/fantasy/tool.gonew file+176
This diff is too big to show here.
vendor/charm.land/fantasy/util.gonew file+22
This diff is too big to show here.
vendor/charm.land/fantasy/version.gonew file+12
This diff is too big to show here.
vendor/charm.land/fantasy/version.txtnew file+1
This diff is too big to show here.
vendor/charm.land/glamour/v2/.editorconfignew file+18
This diff is too big to show here.
vendor/charm.land/glamour/v2/.gitattributesnew file+2
This diff is too big to show here.
vendor/charm.land/glamour/v2/.gitignorenew file+2
This diff is too big to show here.
vendor/charm.land/glamour/v2/.golangci.ymlnew file+44
This diff is too big to show here.
vendor/charm.land/glamour/v2/.goreleaser.ymlnew file+6
This diff is too big to show here.
vendor/charm.land/glamour/v2/CONTRIBUTING.mdnew file+23
This diff is too big to show here.
vendor/charm.land/glamour/v2/LICENSEnew file+21
This diff is too big to show here.
vendor/charm.land/glamour/v2/README.mdnew file+129
This diff is too big to show here.
vendor/charm.land/glamour/v2/Taskfile.ymlnew file+25
This diff is too big to show here.
vendor/charm.land/glamour/v2/UPGRADE_GUIDE_V2.mdnew file+279
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/ansi.gonew file+3
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/baseelement.gonew file+157
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/blockelement.gonew file+66
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/blockstack.gonew file+95
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/codeblock.gonew file+151
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/codespan.gonew file+15
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/context.gonew file+38
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/elements.gonew file+481
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/emphasis.gonew file+47
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/heading.gonew file+80
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/image.gonew file+57
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/link.gonew file+112
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/listitem.gonew file+29
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/margin.gonew file+231
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/paragraph.gonew file+63
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/renderer.gonew file+166
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/style.gonew file+252
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/table.gonew file+206
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/table_links.gonew file+234
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/task.gonew file+27
This diff is too big to show here.
vendor/charm.land/glamour/v2/ansi/templatehelper.gonew file+86
This diff is too big to show here.
vendor/charm.land/glamour/v2/examples.shnew file+19
This diff is too big to show here.
vendor/charm.land/glamour/v2/gallery.shnew file+23
This diff is too big to show here.
vendor/charm.land/glamour/v2/glamour.gonew file+294
This diff is too big to show here.
vendor/charm.land/glamour/v2/internal/autolink/autolink.gonew file+55
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/README.mdnew file+565
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/ascii.jsonnew file+87
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/dark.jsonnew file+191
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/dracula.gonew file+216
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/dracula.jsonnew file+188
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/light.jsonnew file+190
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/notty.jsonnew file+87
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/pink.jsonnew file+90
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/styles.gonew file+691
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/tokyo-night.gonew file+209
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/tokyo-night.jsonnew file+182
This diff is too big to show here.
vendor/charm.land/glamour/v2/styles/tokyo_night.jsonnew file+182
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/.editorconfignew file+18
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/.gitattributesnew file+1
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/.gitignorenew file+3
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/.golangci.ymlnew file+50
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/.goreleaser.ymlnew file+5
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/LICENSEnew file+21
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/README.mdnew file+996
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/Taskfile.yamlnew file+24
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/UPGRADE_GUIDE_V2.mdnew file+504
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/align.gonew file+82
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/ansi_unix.gonew file+8
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/ansi_windows.gonew file+30
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/blending.gonew file+196
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/borders.gonew file+587
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/canvas.gonew file+88
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/color.gonew file+359
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/get.gonew file+657
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/join.gonew file+175
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/layer.gonew file+327
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/lipgloss.gonew file+3
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/position.gonew file+134
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/query.gonew file+92
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/ranges.gonew file+48
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/runes.gonew file+43
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/set.gonew file+932
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/size.gonew file+40
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/style.gonew file+637
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/table/resizing.gonew file+489
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/table/rows.gonew file+130
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/table/table.gonew file+568
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/table/util.gonew file+44
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/terminal.gonew file+124
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/tree/children.gonew file+100
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/tree/enumerator.gonew file+74
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/tree/renderer.gonew file+165
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/tree/tree.gonew file+407
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/unset.gonew file+359
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/whitespace.gonew file+76
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/wrap.gonew file+113
This diff is too big to show here.
vendor/charm.land/lipgloss/v2/writer.gonew file+160
This diff is too big to show here.
vendor/charm.land/log/v2/.gitignorenew file+17
This diff is too big to show here.
vendor/charm.land/log/v2/.golangci.ymlnew file+50
This diff is too big to show here.
vendor/charm.land/log/v2/.goreleaser.ymlnew file+6
This diff is too big to show here.
vendor/charm.land/log/v2/LICENSEnew file+21
This diff is too big to show here.
vendor/charm.land/log/v2/README.mdnew file+367
This diff is too big to show here.
vendor/charm.land/log/v2/UPGRADE_GUIDE_V2.mdnew file+320
This diff is too big to show here.
vendor/charm.land/log/v2/context.gonew file+23
This diff is too big to show here.
vendor/charm.land/log/v2/doc.gonew file+3
This diff is too big to show here.
vendor/charm.land/log/v2/formatter.gonew file+27
This diff is too big to show here.
vendor/charm.land/log/v2/json.gonew file+157
This diff is too big to show here.
vendor/charm.land/log/v2/level.gonew file+65
This diff is too big to show here.
vendor/charm.land/log/v2/logfmt.gonew file+32
This diff is too big to show here.
vendor/charm.land/log/v2/logger.gonew file+413
This diff is too big to show here.
vendor/charm.land/log/v2/logger_121.gonew file+72
This diff is too big to show here.
vendor/charm.land/log/v2/logger_no121.gonew file+69
This diff is too big to show here.
vendor/charm.land/log/v2/options.gonew file+61
This diff is too big to show here.
vendor/charm.land/log/v2/pkg.gonew file+248
This diff is too big to show here.
vendor/charm.land/log/v2/stdlog.gonew file+67
This diff is too big to show here.
vendor/charm.land/log/v2/styles.gonew file+83
This diff is too big to show here.
vendor/charm.land/log/v2/text.gonew file+272
This diff is too big to show here.
vendor/charm.land/x/vcr/LICENSEnew file+21
This diff is too big to show here.
vendor/charm.land/x/vcr/doc.gonew file+3
This diff is too big to show here.
vendor/charm.land/x/vcr/hooks.gonew file+33
This diff is too big to show here.
vendor/charm.land/x/vcr/marshaler.gonew file+19
This diff is too big to show here.
vendor/charm.land/x/vcr/matcher.gonew file+70
This diff is too big to show here.
vendor/charm.land/x/vcr/recorder.gonew file+70
This diff is too big to show here.
vendor/cloud.google.com/go/LICENSEnew file+202
This diff is too big to show here.
vendor/cloud.google.com/go/auth/CHANGES.mdnew file+483
This diff is too big to show here.
vendor/cloud.google.com/go/auth/LICENSEnew file+202
This diff is too big to show here.
vendor/cloud.google.com/go/auth/README.mdnew file+40
This diff is too big to show here.
vendor/cloud.google.com/go/auth/auth.gonew file+618
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/compute.gonew file+102
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/detect.gonew file+471
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/doc.gonew file+45
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/filetypes.gonew file+329
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccount/aws_provider.gonew file+531
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccount/executable_provider.gonew file+284
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccount/externalaccount.gonew file+431
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccount/file_provider.gonew file+78
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccount/info.gonew file+74
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccount/programmatic_provider.gonew file+30
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccount/url_provider.gonew file+93
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccount/x509_provider.gonew file+220
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/externalaccountuser/externalaccountuser.gonew file+115
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/gdch/gdch.gonew file+198
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/impersonate/idtoken.gonew file+105
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/impersonate/impersonate.gonew file+168
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/internal/stsexchange/sts_exchange.gonew file+167
This diff is too big to show here.
vendor/cloud.google.com/go/auth/credentials/selfsignedjwt.gonew file+89
This diff is too big to show here.
vendor/cloud.google.com/go/auth/grpctransport/dial_socketopt.gonew file+62
This diff is too big to show here.
vendor/cloud.google.com/go/auth/grpctransport/directpath.gonew file+177
This diff is too big to show here.
vendor/cloud.google.com/go/auth/grpctransport/grpctransport.gonew file+675
This diff is too big to show here.
vendor/cloud.google.com/go/auth/grpctransport/pool.gonew file+119
This diff is too big to show here.
vendor/cloud.google.com/go/auth/httptransport/httptransport.gonew file+254
This diff is too big to show here.
vendor/cloud.google.com/go/auth/httptransport/transport.gonew file+548
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/compute/compute.gonew file+65
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/compute/manufacturer.gonew file+22
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/compute/manufacturer_linux.gonew file+23
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/compute/manufacturer_windows.gonew file+46
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/credsfile/credsfile.gonew file+63
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/credsfile/filetype.gonew file+159
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/credsfile/parse.gonew file+99
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/internal.gonew file+285
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/jwt/jwt.gonew file+208
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/retry/retry.gonew file+117
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/transport/cba.gonew file+361
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/transport/cert/default_cert.gonew file+65
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/transport/cert/enterprise_cert.gonew file+54
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/transport/cert/secureconnect_cert.gonew file+124
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/transport/cert/workload_cert.gonew file+138
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/transport/headers/headers.gonew file+61
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/transport/s2a.gonew file+138
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/transport/transport.gonew file+137
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/trustboundary/external_accounts_config_providers.gonew file+100
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/trustboundary/trust_boundary.gonew file+392
This diff is too big to show here.
vendor/cloud.google.com/go/auth/internal/version.gonew file+20
This diff is too big to show here.
vendor/cloud.google.com/go/auth/oauth2adapt/CHANGES.mdnew file+82
This diff is too big to show here.
vendor/cloud.google.com/go/auth/oauth2adapt/LICENSEnew file+202
This diff is too big to show here.
vendor/cloud.google.com/go/auth/oauth2adapt/oauth2adapt.gonew file+200
This diff is too big to show here.
vendor/cloud.google.com/go/auth/threelegged.gonew file+382
This diff is too big to show here.
vendor/cloud.google.com/go/civil/civil.gonew file+500
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/CHANGES.mdnew file+115
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/LICENSEnew file+202
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/README.mdnew file+27
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/log.gonew file+149
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/metadata.gonew file+937
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/retry.gonew file+117
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/retry_linux.gonew file+31
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/syscheck.gonew file+28
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/syscheck_linux.gonew file+30
This diff is too big to show here.
vendor/cloud.google.com/go/compute/metadata/syscheck_windows.gonew file+39
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/.gitignorenew file+1
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/ARCHITECTURE.mdnew file+244
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/LICENSEnew file+61
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/README.mdnew file+86
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/constants.gonew file+65
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/internal/winrt/data/xml/dom/xmldocument.gonew file+73
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/internal/winrt/ui/notifications/toastnotification.gonew file+88
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/internal/winrt/ui/notifications/toastnotificationmanager.gonew file+53
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/internal/winrt/ui/notifications/toastnotificationmanagerforuser.gonew file+68
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/internal/winrt/ui/notifications/toastnotifier.gonew file+64
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/tmpl/powershell.go.tmplnew file+14
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/tmpl/tmpl.gonew file+28
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/tmpl/xml.go.tmplnew file+34
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/toast.gonew file+225
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/wintoast/bind.gonew file+86
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/wintoast/bind_noop.gonew file+19
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/wintoast/bind_windows.gonew file+174
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/wintoast/impl.gonew file+179
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/wintoast/procs.gonew file+37
This diff is too big to show here.
vendor/git.sr.ht/~jackmordaunt/go-toast/wintoast/registry.gonew file+110
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.mdnew file+849
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/LICENSE.txtnew file+21
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/README.mdnew file+39
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/ci.ymlnew file+29
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud/cloud.gonew file+44
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud/doc.gonew file+53
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/core.gonew file+173
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/doc.gonew file+264
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/errors.gonew file+17
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/etag.gonew file+57
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/exported.gonew file+175
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/pipeline.gonew file+77
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/request.gonew file+260
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/response_error.gonew file+201
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/log/log.gonew file+50
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/async/async.gonew file+159
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/body/body.gonew file+135
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/fake/fake.gonew file+133
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/loc/loc.gonew file+123
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/op/op.gonew file+148
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/poller.gonew file+24
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/util.gonew file+212
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.gonew file+44
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/shared.gonew file+149
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/log/doc.gonew file+10
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/log/log.gonew file+55
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/policy/doc.gonew file+10
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/policy/policy.gonew file+198
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/doc.gonew file+10
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/errors.gonew file+27
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/pager.gonew file+138
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/pipeline.gonew file+94
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_api_version.gonew file+75
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_bearer_token.gonew file+236
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_body_download.gonew file+72
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_http_header.gonew file+40
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_http_trace.gonew file+154
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_include_response.gonew file+35
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_key_credential.gonew file+64
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_logging.gonew file+264
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_request_id.gonew file+34
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_retry.gonew file+276
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_sas_credential.gonew file+55
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_telemetry.gonew file+83
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/poller.gonew file+396
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/request.gonew file+281
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/response.gonew file+109
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/transport_default_dialer_other.gonew file+15
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/transport_default_dialer_wasm.gonew file+15
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/transport_default_http_client.gonew file+48
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming/doc.gonew file+9
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming/progress.gonew file+89
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/tracing/constants.gonew file+41
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/tracing/tracing.gonew file+191
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/LICENSE.txtnew file+21
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/diag/diag.gonew file+51
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/diag/doc.gonew file+7
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo/doc.gonew file+7
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo/errorinfo.gonew file+46
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/exported/exported.gonew file+129
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/log/doc.gonew file+7
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/log/log.gonew file+104
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/poller/util.gonew file+155
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/temporal/resource.gonew file+123
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/uuid/doc.gonew file+7
This diff is too big to show here.
vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/uuid/uuid.gonew file+76
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/.gitignorenew file+14
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/CONTRIBUTING.mdnew file
No changes to the content.
vendor/github.com/JohannesKaufmann/html-to-markdown/LICENSEnew file+21
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/README.mdnew file+242
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/SECURITY.mdnew file+6
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/commonmark.gonew file+393
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/escape/escape.gonew file+65
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/from.gonew file+464
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/logo_five_years.pngnew file
Binary file not shown.
vendor/github.com/JohannesKaufmann/html-to-markdown/markdown.gonew file+212
This diff is too big to show here.
vendor/github.com/JohannesKaufmann/html-to-markdown/utils.gonew file+533
This diff is too big to show here.
vendor/github.com/KyleBanks/depth/.gitignorenew file+16
This diff is too big to show here.
vendor/github.com/KyleBanks/depth/.travis.ymlnew file+9
This diff is too big to show here.
vendor/github.com/KyleBanks/depth/LICENSEnew file+21
This diff is too big to show here.
vendor/github.com/KyleBanks/depth/Makefilenew file+32
This diff is too big to show here.
vendor/github.com/KyleBanks/depth/README.mdnew file+232
This diff is too big to show here.
vendor/github.com/KyleBanks/depth/depth.gonew file+129
This diff is too big to show here.
vendor/github.com/KyleBanks/depth/pkg.gonew file+184
This diff is too big to show here.
vendor/github.com/MakeNowJust/heredoc/LICENSEnew file+21
This diff is too big to show here.
vendor/github.com/MakeNowJust/heredoc/README.mdnew file+52
This diff is too big to show here.
vendor/github.com/MakeNowJust/heredoc/heredoc.gonew file+105
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/.gitattributesnew file+1
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/.gitignorenew file+10
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/.golangci.ymlnew file+147
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/CODEOWNERSnew file+1
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/LICENSEnew file+22
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/README.mdnew file+89
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/SECURITY.mdnew file+41
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/backup.gonew file+287
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/doc.gonew file+22
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/ea.gonew file+137
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/file.gonew file+320
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/fileinfo.gonew file+106
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/hvsock.gonew file+582
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/internal/fs/doc.gonew file+2
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/internal/fs/fs.gonew file+262
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/internal/fs/security.gonew file+12
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/internal/fs/zsyscall_windows.gonew file+61
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/internal/socket/rawaddr.gonew file+20
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/internal/socket/socket.gonew file+177
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/internal/socket/zsyscall_windows.gonew file+69
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/internal/stringbuffer/wstring.gonew file+132
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/pipe.gonew file+586
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/pkg/guid/guid.gonew file+232
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/pkg/guid/guid_nonwindows.gonew file+16
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/pkg/guid/guid_windows.gonew file+13
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/pkg/guid/variant_string.gonew file+27
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/privilege.gonew file+196
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/reparse.gonew file+131
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/sd.gonew file+133
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/syscall.gonew file+5
This diff is too big to show here.
vendor/github.com/Microsoft/go-winio/zsyscall_windows.gonew file+378
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/.gitattributesnew file+1
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/.gitignorenew file+16
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/LICENSEnew file+12
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/README.mdnew file+218
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/array.gonew file+124
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/doc.gonew file+123
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/expand.gonew file+70
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/filter.gonew file+163
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/iteration.gonew file+61
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/manipulation.gonew file+679
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/property.gonew file+275
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/query.gonew file+49
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/traversal.gonew file+704
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/type.gonew file+203
This diff is too big to show here.
vendor/github.com/PuerkitoBio/goquery/utilities.gonew file+177
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/.editorconfignew file+17
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/.gitignorenew file+28
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/.golangci.ymlnew file+122
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/.goreleaser.ymlnew file+34
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/AGENTS.mdnew file+11
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/BUILD.bitnew file+93
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/COPYINGnew file+118
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/Dockerfilenew file+64
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/Justfilenew file+59
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/README.mdnew file+309
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/biome.jsonnew file+6
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/chroma.jpgnew file
Binary file not shown.
vendor/github.com/alecthomas/chroma/v2/coalesce.gonew file+35
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/colour.gonew file+192
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/delegate.gonew file+161
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/doc.gonew file+7
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/emitters.gonew file+233
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatter.gonew file+43
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatters/api.gonew file+57
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatters/html/html.gonew file+692
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatters/json.gonew file+39
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatters/svg/font_liberation_mono.gonew file+51
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatters/svg/svg.gonew file+222
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatters/tokens.gonew file+18
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatters/tty_indexed.gonew file+284
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/formatters/tty_truecolour.gonew file+76
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/iterator.gonew file+93
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexer.gonew file+179
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/README.mdnew file+46
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/caddyfile.gonew file+275
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/cl.gonew file+243
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/dns.gonew file+17
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/emacs.gonew file+533
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/abap.xmlnew file+154
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/abnf.xmlnew file+66
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/actionscript.xmlnew file+68
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/actionscript_3.xmlnew file+163
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ada.xmlnew file+321
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/agda.xmlnew file+66
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/al.xmlnew file+75
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/alloy.xmlnew file+58
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ampl.xmlnew file+98
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/angular2.xmlnew file+109
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/antlr.xmlnew file+317
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/apacheconf.xmlnew file+74
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/apl.xmlnew file+59
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/applescript.xmlnew file+151
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/arangodb_aql.xmlnew file+174
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/arduino.xmlnew file+322
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/armasm.xmlnew file+126
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/arturo.xmlnew file+119
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/atl.xmlnew file+165
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/autohotkey.xmlnew file+78
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/autoit.xmlnew file+70
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/awk.xmlnew file+95
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ballerina.xmlnew file+97
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bash.xmlnew file+222
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bash_session.xmlnew file+25
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/batchfile.xmlnew file+660
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/beef.xmlnew file+120
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bibtex.xmlnew file+152
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bicep.xmlnew file+84
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/blitzbasic.xmlnew file+141
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xmlnew file+28
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bqn.xmlnew file+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/brainfuck.xmlnew file+51
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/c#.xmlnew file+121
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/c++.xmlnew file+331
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/c.xmlnew file+260
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/c3.xmlnew file+374
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cap_n_proto.xmlnew file+122
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cassandra_cql.xmlnew file+137
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ceylon.xmlnew file+151
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cfengine3.xmlnew file+197
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cfstatement.xmlnew file+92
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/chaiscript.xmlnew file+134
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/chapel.xmlnew file+143
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cheetah.xmlnew file+55
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/clojure.xmlnew file+71
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cmake.xmlnew file+90
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cobol.xmlnew file+90
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/coffeescript.xmlnew file+210
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/common_lisp.xmlnew file+184
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/coq.xmlnew file+136
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/core.xmlnew file+79
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/crystal.xmlnew file+762
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/css.xmlnew file+323
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/csv.xmlnew file+53
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cue.xmlnew file+85
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cython.xmlnew file+372
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/d.xmlnew file+133
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/dart.xmlnew file+213
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/dax.xmlnew file+39
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/desktop_entry.xmlnew file+17
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/devicetree.xmlnew file+251
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/diff.xmlnew file+52
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/django_jinja.xmlnew file+153
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/dns.xmlnew file+44
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/docker.xmlnew file+68
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/dtd.xmlnew file+168
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/dylan.xmlnew file+176
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ebnf.xmlnew file+90
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/elixir.xmlnew file+744
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/elm.xmlnew file+119
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/emacslisp.xmlnew file+132
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/erb.xmlnew file+37
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/erlang.xmlnew file+166
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/factor.xmlnew file+412
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/fennel.xmlnew file+68
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/fish.xmlnew file+159
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/forth.xmlnew file+78
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/fortran.xmlnew file+102
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/fortranfixed.xmlnew file+71
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/fsharp.xmlnew file+245
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/gas.xmlnew file+150
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/gdscript.xmlnew file+259
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/gdscript3.xmlnew file+270
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/gemfile_lock.xmlnew file+81
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/gettext.xmlnew file+24
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/gherkin.xmlnew file+263
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/gleam.xmlnew file+100
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/glsl.xmlnew file+65
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/gnuplot.xmlnew file+289
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/go_template.xmlnew file+114
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/graphql.xmlnew file+92
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/groff.xmlnew file+90
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/groovy.xmlnew file+135
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/handlebars.xmlnew file+147
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/hare.xmlnew file+98
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/haskell.xmlnew file+275
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/hcl.xmlnew file+143
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/hexdump.xmlnew file+189
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/hlb.xmlnew file+131
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/hlsl.xmlnew file+110
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/holyc.xmlnew file+252
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/html.xmlnew file+159
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/hy.xmlnew file+104
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/idris.xmlnew file+216
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/igor.xmlnew file+47
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ini.xmlnew file+52
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/io.xmlnew file+71
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/iscdhcpd.xmlnew file+96
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/j.xmlnew file+157
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/janet.xmlnew file+48
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/java.xmlnew file+206
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/javascript.xmlnew file+160
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/json.xmlnew file+117
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/jsonata.xmlnew file+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/jsonnet.xmlnew file+138
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/julia.xmlnew file+400
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/jungle.xmlnew file+98
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/kakoune.xmlnew file+96
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/kdl.xmlnew file+75
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/kotlin.xmlnew file+234
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/lateralus.xmlnew file+184
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/lean.xmlnew file+56
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/lighttpd_configuration_file.xmlnew file+42
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/lilypond.xmlnew file+133
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/llvm.xmlnew file+73
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/lox.xmlnew file+78
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/lua.xmlnew file+158
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/luau.xmlnew file+173
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/makefile.xmlnew file+131
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/mako.xmlnew file+120
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/mason.xmlnew file+89
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/materialize_sql_dialect.xmlnew file+155
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/mathematica.xmlnew file+60
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/matlab.xmlnew file+114
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/mcfunction.xmlnew file+138
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/meson.xmlnew file+86
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/metal.xmlnew file+270
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/microcad.xmlnew file+139
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/minizinc.xmlnew file+82
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/mlir.xmlnew file+73
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/modelica.xmlnew file+106
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/modula-2.xmlnew file+245
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/mojo.xmlnew file+228
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/monkeyc.xmlnew file+153
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/moonbit.xmlnew file+75
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/moonscript.xmlnew file+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/morrowindscript.xmlnew file+90
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/myghty.xmlnew file+77
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/mysql.xmlnew file+121
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/nasm.xmlnew file+126
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/natural.xmlnew file+143
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ndisasm.xmlnew file+123
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/newspeak.xmlnew file+121
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/nginx_configuration_file.xmlnew file+101
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/nim.xmlnew file+211
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/nix.xmlnew file+258
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/nsis.xmlnew file+59
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/nu.xmlnew file+126
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/objective-c.xmlnew file+510
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/objectpascal.xmlnew file+142
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ocaml.xmlnew file+153
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/octave.xmlnew file+101
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/odin.xmlnew file+127
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/onesenterprise.xmlnew file+92
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/openedge_abl.xmlnew file+101
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/openscad.xmlnew file+96
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/org_mode.xmlnew file+329
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/pacmanconf.xmlnew file+37
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/perl.xmlnew file+400
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/php.xmlnew file+258
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/pig.xmlnew file+105
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/pkgconfig.xmlnew file+73
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/pl_pgsql.xmlnew file+119
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/plaintext.xmlnew file+21
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/plutus_core.xmlnew file+105
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/pony.xmlnew file+135
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/postgresql_sql_dialect.xmlnew file+155
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/postscript.xmlnew file+93
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/povray.xmlnew file+58
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/powerquery.xmlnew file+51
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/powershell.xmlnew file+230
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/prolog.xmlnew file+115
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/promela.xmlnew file+119
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/promql.xmlnew file+123
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/properties.xmlnew file+45
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/protocol_buffer.xmlnew file+124
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/prql.xmlnew file+161
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/psl.xmlnew file+213
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/puppet.xmlnew file+100
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/python.xmlnew file+595
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/python_2.xmlnew file+356
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/qbasic.xmlnew file+173
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/qml.xmlnew file+113
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/r.xmlnew file+128
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/racket.xmlnew file+260
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ragel.xmlnew file+149
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/react.xmlnew file+236
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/reasonml.xmlnew file+147
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/reg.xmlnew file+68
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/rego.xmlnew file+94
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/rexx.xmlnew file+127
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/rgbasm.xmlnew file+239
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ring.xmlnew file+74
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/rpgle.xmlnew file+176
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/rpm_spec.xmlnew file+58
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ruby.xmlnew file+728
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/rust.xmlnew file+375
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/sas.xmlnew file+191
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/sass.xmlnew file+362
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/scala.xmlnew file+274
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/scdoc.xmlnew file+115
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/scheme.xmlnew file+106
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/scilab.xmlnew file+98
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/scss.xmlnew file+373
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/sed.xmlnew file+92
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/sieve.xmlnew file+61
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/smali.xmlnew file+73
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/smalltalk.xmlnew file+294
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/smarty.xmlnew file+79
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/snbt.xmlnew file+58
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/snobol.xmlnew file+95
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/solidity.xmlnew file+291
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/sourcepawn.xmlnew file+59
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/spade.xmlnew file+292
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/sparql.xmlnew file+160
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/sql.xmlnew file+90
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/squidconf.xmlnew file+63
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/standard_ml.xmlnew file+548
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/stas.xmlnew file+85
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/stylus.xmlnew file+132
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/swift.xmlnew file+207
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/systemd.xmlnew file+63
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/systemverilog.xmlnew file+181
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/tablegen.xmlnew file+69
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/tal.xmlnew file+43
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/tasm.xmlnew file+135
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/tcl.xmlnew file+272
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/tcsh.xmlnew file+121
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/templ.xmlnew file+315
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/termcap.xmlnew file+75
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/terminfo.xmlnew file+84
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/terraform.xmlnew file+149
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/tex.xmlnew file+113
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/thrift.xmlnew file+154
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/toml.xmlnew file+45
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/tradingview.xmlnew file+81
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/transact-sql.xmlnew file+137
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/turing.xmlnew file+82
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/turtle.xmlnew file+170
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/twig.xmlnew file+155
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/txtpb.xmlnew file+162
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/typescript.xmlnew file+302
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/typoscript.xmlnew file+178
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/typoscriptcssdata.xmlnew file+52
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/typoscripthtmldata.xmlnew file+52
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/typst.xmlnew file+108
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ucode.xmlnew file+147
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/v.xmlnew file+355
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/v_shell.xmlnew file+365
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/vala.xmlnew file+72
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/vb_net.xmlnew file+162
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/verilog.xmlnew file+158
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/vhdl.xmlnew file+171
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/vhs.xmlnew file+48
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/viml.xmlnew file+85
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/vue.xmlnew file+295
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/wat.xmlnew file+149
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/wdte.xmlnew file+43
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/webgpu_shading_language.xml+142
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/webvtt.xml+283
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/whiley.xml+57
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/xml.xml+96
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/xorg.xml+35
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/yaml.xml+132
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/yang.xml+99
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/z80_assembly.xml+74
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/zed.xml+51
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/embedded/zig.xml+187
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/erb.go+29
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/gemtext.go+37
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/genshi.go+118
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/go.go+81
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/haxe.go+647
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/html.go+8
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/http.go+131
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/lexers.go+85
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/markdown.go+107
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/markless.go+168
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/mysql.go+33
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/php.go+37
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/raku.go+1710
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/rst.go+89
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/svelte.go+70
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/typoscript.go+85
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/yaml_jinja.go+20
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/lexers/zed.go+24
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/mutators.go+201
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/pygments-lexers.txt+605
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/quick/quick.go+44
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/regexp.go+533
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/registry.go+228
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/remap.go+94
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/renovate.json5+25
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/serialise.go+483
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/style.go+530
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/abap.xml+11
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/algol.xml+18
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/algol_nu.xml+18
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/api.go+95
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/arduino.xml+18
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/ashen.xml+69
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/aura-theme-dark-soft.xml+107
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/aura-theme-dark.xml+107
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/autumn.xml+36
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/average.xml+74
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/base16-snazzy.xml+74
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/borland.xml+26
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/bw.xml+23
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/catppuccin-frappe.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/catppuccin-latte.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/catppuccin-macchiato.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/catppuccin-mocha.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/colorful.xml+52
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/compat.go+69
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/darcula.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/doom-one.xml+51
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/doom-one2.xml+64
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/dracula.xml+74
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/emacs.xml+44
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/evergarden.xml+33
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/friendly.xml+44
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/fruity.xml+19
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/github-dark.xml+46
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/github.xml+39
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/gruvbox-light.xml+34
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/gruvbox.xml+34
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/hr_high_contrast.xml+12
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/hrdark.xml+10
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/igor.xml+9
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/kanagawa-dragon.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/kanagawa-lotus.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/kanagawa-wave.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/lovelace.xml+53
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/manni.xml+44
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/modus-operandi.xml+13
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/modus-vivendi.xml+13
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/monokai.xml+29
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/monokailight.xml+26
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/murphy.xml+52
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/native.xml+35
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/nord.xml+46
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/nordic.xml+46
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/onedark.xml+25
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/onesenterprise.xml+10
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/paraiso-dark.xml+37
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/paraiso-light.xml+37
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/pastie.xml+45
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/perldoc.xml+37
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/pygments.xml+42
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/rainbow_dash.xml+40
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/rose-pine-dawn.xml+29
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/rose-pine-moon.xml+29
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/rose-pine.xml+29
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/rpgle.xml+30
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/rrt.xml+19
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/solarized-dark.xml+39
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/solarized-dark256.xml+41
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/solarized-light.xml+17
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/swapoff.xml+18
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/tango.xml+72
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/tokyonight-day.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/tokyonight-moon.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/tokyonight-night.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/tokyonight-storm.xml+83
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/trac.xml+35
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/vim.xml+29
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/vs.xml+16
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/vulcan.xml+74
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/witchhazel.xml+31
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/xcode-dark.xml+31
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/styles/xcode.xml+22
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/table.py+31
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/test.jsonl+2
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/tokentype_enumer.go+588
This diff is too big to show here.
vendor/github.com/alecthomas/chroma/v2/types.go+357
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/.gitignore+2
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/LICENSE+19
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/README.md+19
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/backward_references.go+185
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/backward_references_hq.go+796
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/bit_cost.go+436
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/bit_reader.go+266
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/bitwriter.go+56
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/block_splitter.go+144
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/block_splitter_command.go+434
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/block_splitter_distance.go+433
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/block_splitter_literal.go+433
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/brotli_bit_stream.go+1435
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/cluster.go+30
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/cluster_command.go+164
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/cluster_distance.go+326
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/cluster_literal.go+326
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/command.go+254
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/compress_fragment.go+834
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/compress_fragment_two_pass.go+775
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/constants.go+77
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/context.go+2176
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/decode.go+2581
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/dictionary.go+122890
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/dictionary_hash.go+32779
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/encode.go+1220
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/encoder.go+177
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/encoder_dict.go+22
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/encoder_fast.go+197
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/entropy_encode.go+592
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/entropy_encode_static.go+4399
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/fast_log.go+290
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/find_match_length.go+45
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/flate/LICENSE+27
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/flate/README.md+2
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/flate/gzip.go+65
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/flate/huffman_bit_writer.go+517
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/flate/huffman_code.go+346
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/flate/token.go+80
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/flate/writer.go+66
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/h10.go+287
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/h5.go+214
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/h6.go+216
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/hash.go+342
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/hash_composite.go+93
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/hash_forgetful_chain.go+252
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/hash_longest_match_quickly.go+214
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/hash_rolling.go+168
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/histogram.go+226
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/http.go+189
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/huffman.go+653
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/literal_cost.go+182
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/bargain1.go+212
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/bargain2.go+248
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/bargain3.go+278
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/emitter.go+34
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/m0.go+175
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/m4.go+339
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/matchfinder.go+103
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/pathfinder.go+328
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/textencoder.go+53
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/trio.go+326
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/zdfast.go+258
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/zfast.go+206
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/matchfinder/zm.go+301
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/memory.go+66
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/metablock.go+574
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/metablock_command.go+165
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/metablock_distance.go+165
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/metablock_literal.go+165
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/params.go+37
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/platform.go+103
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/prefix.go+30
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/prefix_dec.go+723
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/quality.go+196
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/reader.go+111
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/ringbuffer.go+134
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/state.go+294
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/static_dict.go+662
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/static_dict_lut.go+75094
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/symbol_list.go+22
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/transform.go+641
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/utf8_util.go+70
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/util.go+7
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/write_bits.go+52
This diff is too big to show here.
vendor/github.com/andybalholm/brotli/writer.go+162
This diff is too big to show here.
vendor/github.com/andybalholm/cascadia/.travis.yml+14
This diff is too big to show here.
vendor/github.com/andybalholm/cascadia/LICENSE+24
This diff is too big to show here.
vendor/github.com/andybalholm/cascadia/README.md+144
This diff is too big to show here.
vendor/github.com/andybalholm/cascadia/parser.go+889
This diff is too big to show here.
vendor/github.com/andybalholm/cascadia/pseudo_classes.go+458
This diff is too big to show here.
vendor/github.com/andybalholm/cascadia/selector.go+586
This diff is too big to show here.
vendor/github.com/andybalholm/cascadia/serialize.go+176
This diff is too big to show here.
vendor/github.com/andybalholm/cascadia/specificity.go+26
This diff is too big to show here.
vendor/github.com/atotto/clipboard/.travis.yml+22
This diff is too big to show here.
vendor/github.com/atotto/clipboard/LICENSE+27
This diff is too big to show here.
vendor/github.com/atotto/clipboard/README.md+48
This diff is too big to show here.
vendor/github.com/atotto/clipboard/clipboard.go+20
This diff is too big to show here.
vendor/github.com/atotto/clipboard/clipboard_darwin.go+52
This diff is too big to show here.
vendor/github.com/atotto/clipboard/clipboard_plan9.go+42
This diff is too big to show here.
vendor/github.com/atotto/clipboard/clipboard_unix.go+149
This diff is too big to show here.
vendor/github.com/atotto/clipboard/clipboard_windows.go+157
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/NOTICE.txt+3
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/accountid_endpoint_mode.go+18
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/checksum.go+33
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/config.go+254
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/context.go+22
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/credential_cache.go+235
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/credentials.go+234
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/auto.go+38
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/configuration.go+43
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/defaults.go+50
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/doc.go+2
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/defaultsmode.go+95
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go+62
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go+247
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/errors.go+9
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go+365
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go+119
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go+95
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go+213
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go+168
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go+24
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go+24
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/recursion_detection.go+94
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id.go+27
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id_retriever.go+57
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go+398
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/CHANGELOG.md+203
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/debug.go+144
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/decode.go+218
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/encode.go+167
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/error.go+23
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/eventstreamapi/headers.go+24
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/eventstreamapi/middleware.go+71
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/eventstreamapi/transport.go+13
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/eventstreamapi/transport_go117.go+12
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/header.go+175
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/header_value.go+521
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/message.go+99
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/array.go+61
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/encoder.go+80
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/map.go+78
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/middleware.go+62
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/object.go+68
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/value.go+117
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/restjson/decoder_util.go+85
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/xml/error_utils.go+48
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/none.go+20
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_bucket.go+96
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_rate_limit.go+83
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/request.go+25
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/restrict_file_permissions.go+21
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go+156
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_ratelimit.go+158
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_token_bucket.go+83
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/attempt_metrics.go+51
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go+80
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/errors.go+20
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go+124
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/metadata.go+52
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go+487
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retry.go+103
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go+228
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go+343
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go+60
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/timeout_error.go+52
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/retryer.go+127
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/runtime.go+14
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/cache.go+115
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/const.go+40
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go+82
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go+70
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/hmac.go+13
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/host.go+75
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/scope.go+13
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/time.go+36
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/util.go+80
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go+420
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/presign_middleware.go+127
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/stream.go+86
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go+564
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go+297
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/client.go+355
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/content_type.go+42
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error.go+33
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error_middleware.go+56
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/timeout_read_closer.go+109
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/types.go+42
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/aws/version.go+8
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md+1097
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/auth_scheme_preference.go+19
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/config.go+237
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/defaultsmode.go+47
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/doc.go+20
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/env_config.go+966
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/generate.go+4
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/internal/ini/errors.go+22
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/internal/ini/ini.go+56
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/internal/ini/parse.go+109
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/internal/ini/sections.go+157
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/internal/ini/strings.go+89
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/internal/ini/token.go+32
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/internal/ini/tokenize.go+92
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/internal/ini/value.go+93
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go+1371
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/local.go+51
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/provider.go+802
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/resolve.go+458
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/resolve_bearer_token.go+122
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go+650
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/config/shared_config.go+1704
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md+990
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/doc.go+4
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/doc.go+58
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/provider.go+241
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/auth.go+48
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/client.go+165
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/endpoints.go+20
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/middleware.go+164
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/provider.go+207
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/logincreds/dpop.go+150
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/logincreds/file.go+14
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/logincreds/provider.go+184
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/logincreds/token.go+110
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/doc.go+92
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/provider.go+296
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/doc.go+81
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_cached_token.go+232
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_credentials_provider.go+165
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_token_provider.go+147
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/static_provider.go+63
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/assume_role_provider.go+338
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/web_identity_provider.go+181
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md+584
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_client.go+358
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetDynamicData.go+77
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetIAMInfo.go+103
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetInstanceIdentityDocument.go+110
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetMetadata.go+77
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetRegion.go+73
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetToken.go+119
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetUserData.go+61
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/auth.go+48
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/doc.go+12
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/endpoints.go+20
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config/resolvers.go+114
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/request_middleware.go+313
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/token_provider.go+261
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/auth/auth.go+45
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/auth/scheme.go+191
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_adapter.go+43
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_signer_adapter.go+35
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/credentials_adapter.go+46
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/smithy.go+2
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/v4signer_adapter.go+57
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/v4signer_adapter_eventstream.go+51
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md+544
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/config.go+65
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/endpoints.go+57
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/context/context.go+65
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/arn.go+94
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/doc.go+3
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/generate.go+7
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/host.go+51
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partition.go+76
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go+496
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json+267
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go+201
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md+519
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/endpoints.go+302
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/rand/rand.go+33
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/interfaces.go+9
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go+74
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/byte.go+12
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/shareddefaults/shared_config.go+47
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go+11
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/LICENSE+28
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/docs.go+7
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/singleflight.go+210
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/timeconv/duration.go+13
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/CHANGELOG.md+486
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/credentials.go+141
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/error.go+17
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/crypto/compare.go+30
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/crypto/ecc.go+113
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4/const.go+36
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4/header_rules.go+82
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4/headers.go+68
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4/hmac.go+13
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4/host.go+75
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4/time.go+36
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4/util.go+64
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/middleware.go+118
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/presign_middleware.go+117
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/smithy.go+92
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/v4a.go+520
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/CHANGELOG.md+220
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/accept_encoding_gzip.go+176
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/doc.go+22
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md+571
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/context.go+56
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/doc.go+3
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/middleware.go+110
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/CHANGELOG.md+85
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_client.go+945
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_op_CreateOAuth2Token.go+212
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_op_DeleteConsoleAuthorizationConfiguration.go+168
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_op_DeleteResourcePermissionStatement.go+196
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_op_GetConsoleAuthorizationConfiguration.go+168
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_op_GetResourcePolicy.go+155
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_op_ListResourcePermissionStatements.go+261
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_op_PutConsoleAuthorizationConfiguration.go+168
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/api_op_PutResourcePermissionStatement.go+216
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/auth.go+361
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/deserializers.go+2474
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/doc.go+9
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/endpoints.go+854
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/generated.json+40
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/internal/endpoints/endpoints.go+333
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/options.go+242
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/serializers.go+724
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/types/enums.go+46
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/types/errors.go+247
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/types/types.go+162
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/signin/validators.go+111
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md+792
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_client.go+929
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_GetRoleCredentials.go+165
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_ListAccountRoles.go+263
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_ListAccounts.go+261
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_Logout.go+164
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/auth.go+379
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/deserializers.go+1171
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/doc.go+27
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/endpoints.go+570
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/generated.json+35
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/internal/endpoints/endpoints.go+628
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/options.go+238
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/serializers.go+309
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/types/errors.go+115
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/types/types.go+63
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sso/validators.go+175
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md+790
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_client.go+929
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_op_CreateToken.go+235
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_op_CreateTokenWithIAM.go+282
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_op_RegisterClient.go+206
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_op_StartDeviceAuthorization.go+188
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/auth.go+373
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/deserializers.go+2244
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/doc.go+49
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/endpoints.go+570
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/generated.json+36
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/internal/endpoints/endpoints.go+628
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/options.go+238
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/serializers.go+512
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/types/enums.go+44
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/types/errors.go+430
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/types/types.go+25
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/validators.go+184
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md+832
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/LICENSE.txt+202
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_client.go+1115
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRole.go+544
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithSAML.go+455
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithWebIdentity.go+472
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoot.go+229
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_DecodeAuthorizationMessage.go+189
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetAccessKeyInfo.go+180
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetCallerIdentity.go+192
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetDelegatedAccessToken.go+169
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetFederationToken.go+393
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetSessionToken.go+239
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetWebIdentityToken.go+192
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/auth.go+377
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/deserializers.go+3456
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/doc.go+13
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/endpoints.go+683
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/generated.json+45
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints/endpoints.go+585
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/options.go+286
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/serializers.go+1198
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/errors.go+363
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/types.go+144
This diff is too big to show here.
vendor/github.com/aws/aws-sdk-go-v2/service/sts/validators.go+433
This diff is too big to show here.
vendor/github.com/aws/smithy-go/.gitignore+29
This diff is too big to show here.
vendor/github.com/aws/smithy-go/.travis.yml+28
This diff is too big to show here.
vendor/github.com/aws/smithy-go/AGENTS.md+172
This diff is too big to show here.
vendor/github.com/aws/smithy-go/CHANGELOG.md+454
This diff is too big to show here.
vendor/github.com/aws/smithy-go/CODE_OF_CONDUCT.md+4
This diff is too big to show here.
vendor/github.com/aws/smithy-go/CONTRIBUTING.md+90
This diff is too big to show here.
vendor/github.com/aws/smithy-go/LICENSE+175
This diff is too big to show here.
vendor/github.com/aws/smithy-go/Makefile+130
This diff is too big to show here.
vendor/github.com/aws/smithy-go/NOTICE+1
This diff is too big to show here.
vendor/github.com/aws/smithy-go/README.md+107
This diff is too big to show here.
vendor/github.com/aws/smithy-go/auth/auth.go+3
This diff is too big to show here.
vendor/github.com/aws/smithy-go/auth/bearer/docs.go+3
This diff is too big to show here.
vendor/github.com/aws/smithy-go/auth/bearer/middleware.go+104
This diff is too big to show here.
vendor/github.com/aws/smithy-go/auth/bearer/token.go+50
This diff is too big to show here.
vendor/github.com/aws/smithy-go/auth/bearer/token_cache.go+208
This diff is too big to show here.
vendor/github.com/aws/smithy-go/auth/identity.go+47
This diff is too big to show here.
vendor/github.com/aws/smithy-go/auth/option.go+25
This diff is too big to show here.
vendor/github.com/aws/smithy-go/auth/scheme_id.go+20
This diff is too big to show here.
vendor/github.com/aws/smithy-go/changelog-template.json+9
This diff is too big to show here.
vendor/github.com/aws/smithy-go/context/suppress_expired.go+81
This diff is too big to show here.
vendor/github.com/aws/smithy-go/doc.go+2
This diff is too big to show here.
vendor/github.com/aws/smithy-go/document.go+10
This diff is too big to show here.
vendor/github.com/aws/smithy-go/document/doc.go+12
This diff is too big to show here.
vendor/github.com/aws/smithy-go/document/document.go+239
This diff is too big to show here.
vendor/github.com/aws/smithy-go/document/errors.go+75
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/doc.go+4
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/encoding.go+40
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go+123
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/httpbinding/header.go+122
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/httpbinding/path_replace.go+108
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/httpbinding/query.go+107
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/httpbinding/uri.go+111
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/json/array.go+35
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/json/constants.go+15
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/json/decoder_util.go+139
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/json/encoder.go+30
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/json/escape.go+198
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/json/object.go+40
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/json/value.go+154
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/array.go+49
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/constants.go+10
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/doc.go+49
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/element.go+91
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/encoder.go+51
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/error_utils.go+51
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/escape.go+137
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/map.go+53
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/value.go+302
This diff is too big to show here.
vendor/github.com/aws/smithy-go/encoding/xml/xml_decoder.go+154
This diff is too big to show here.
vendor/github.com/aws/smithy-go/endpoints/endpoint.go+23
This diff is too big to show here.
vendor/github.com/aws/smithy-go/endpoints/private/bdd/evaluate.go+35
This diff is too big to show here.
vendor/github.com/aws/smithy-go/endpoints/private/rulesfn/doc.go+4
This diff is too big to show here.
vendor/github.com/aws/smithy-go/endpoints/private/rulesfn/split.go+16
This diff is too big to show here.
vendor/github.com/aws/smithy-go/endpoints/private/rulesfn/string_slice.go+18
This diff is too big to show here.
vendor/github.com/aws/smithy-go/endpoints/private/rulesfn/strings.go+25
This diff is too big to show here.
vendor/github.com/aws/smithy-go/endpoints/private/rulesfn/uri.go+133
This diff is too big to show here.
vendor/github.com/aws/smithy-go/errors.go+137
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/const.go+24
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/debug.go+144
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/decode.go+218
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/deserializer.go+294
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/encode.go+167
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/error.go+23
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/header.go+175
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/header_value.go+521
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/message.go+99
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/serializer.go+228
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/signer.go+82
This diff is too big to show here.
vendor/github.com/aws/smithy-go/eventstream/types.go+26
This diff is too big to show here.
vendor/github.com/aws/smithy-go/go_module_metadata.go+6
This diff is too big to show here.
vendor/github.com/aws/smithy-go/internal/sync/singleflight/LICENSE+28
This diff is too big to show here.
vendor/github.com/aws/smithy-go/internal/sync/singleflight/docs.go+8
This diff is too big to show here.
vendor/github.com/aws/smithy-go/internal/sync/singleflight/singleflight.go+210
This diff is too big to show here.
vendor/github.com/aws/smithy-go/io/byte.go+12
This diff is too big to show here.
vendor/github.com/aws/smithy-go/io/doc.go+2
This diff is too big to show here.
vendor/github.com/aws/smithy-go/io/reader.go+16
This diff is too big to show here.
vendor/github.com/aws/smithy-go/io/ringbuffer.go+94
This diff is too big to show here.
vendor/github.com/aws/smithy-go/local-mod-replace.sh+39
This diff is too big to show here.
vendor/github.com/aws/smithy-go/logging/logger.go+82
This diff is too big to show here.
vendor/github.com/aws/smithy-go/metrics/metrics.go+136
This diff is too big to show here.
vendor/github.com/aws/smithy-go/metrics/nop.go+98
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/context.go+41
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/doc.go+67
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/eventstream_middleware.go+21
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/logging.go+46
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/metadata.go+65
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/middleware.go+71
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/ordered_group.go+270
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/stack.go+209
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/stack_values.go+100
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/step_build.go+298
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/step_deserialize.go+300
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/step_finalize.go+298
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/step_initialize.go+299
This diff is too big to show here.
vendor/github.com/aws/smithy-go/middleware/step_serialize.go+305
This diff is too big to show here.
vendor/github.com/aws/smithy-go/modman.toml+9
This diff is too big to show here.
vendor/github.com/aws/smithy-go/private/requestcompression/gzip.go+30
This diff is too big to show here.
vendor/github.com/aws/smithy-go/private/requestcompression/middleware_capture_request_compression.go+52
This diff is too big to show here.
vendor/github.com/aws/smithy-go/private/requestcompression/request_compression.go+103
This diff is too big to show here.
vendor/github.com/aws/smithy-go/properties.go+69
This diff is too big to show here.
vendor/github.com/aws/smithy-go/ptr/doc.go+5
This diff is too big to show here.
vendor/github.com/aws/smithy-go/ptr/from_ptr.go+601
This diff is too big to show here.
vendor/github.com/aws/smithy-go/ptr/gen_scalars.go+83
This diff is too big to show here.
vendor/github.com/aws/smithy-go/ptr/to_ptr.go+499
This diff is too big to show here.
vendor/github.com/aws/smithy-go/rand/doc.go+3
This diff is too big to show here.
vendor/github.com/aws/smithy-go/rand/rand.go+31
This diff is too big to show here.
vendor/github.com/aws/smithy-go/rand/uuid.go+87
This diff is too big to show here.
vendor/github.com/aws/smithy-go/schema.go+328
This diff is too big to show here.
vendor/github.com/aws/smithy-go/schema_ext.go+37
This diff is too big to show here.
vendor/github.com/aws/smithy-go/serde.go+229
This diff is too big to show here.
vendor/github.com/aws/smithy-go/sync/error.go+53
This diff is too big to show here.
vendor/github.com/aws/smithy-go/time/time.go+134
This diff is too big to show here.
vendor/github.com/aws/smithy-go/tracing/context.go+96
This diff is too big to show here.
vendor/github.com/aws/smithy-go/tracing/nop.go+32
This diff is too big to show here.
vendor/github.com/aws/smithy-go/tracing/tracing.go+95
This diff is too big to show here.
vendor/github.com/aws/smithy-go/trait.go+21
This diff is too big to show here.
vendor/github.com/aws/smithy-go/traits/http.go+69
This diff is too big to show here.
vendor/github.com/aws/smithy-go/traits/index.go+107
This diff is too big to show here.
vendor/github.com/aws/smithy-go/traits/serde.go+56
This diff is too big to show here.
vendor/github.com/aws/smithy-go/traits/traits.go+72
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/auth.go+30
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/auth_schemes.go+45
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/checksum_middleware.go+70
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/client.go+161
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/doc.go+5
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/eventstream.go+209
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/eventstream_middleware.go+69
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/headerlist.go+163
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/host.go+89
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/interceptor.go+321
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/interceptor_middleware.go+325
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/internal/io/safe.go+75
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/md5_checksum.go+25
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/metrics.go+204
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/middleware_close_response_body.go+79
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/middleware_content_length.go+84
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/middleware_header_comment.go+81
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/middleware_headers.go+167
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/middleware_http_logging.go+75
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/middleware_metadata.go+51
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/middleware_min_proto.go+79
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/properties.go+80
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/protocol.go+27
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/request.go+188
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/response.go+34
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/time.go+13
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/url.go+44
This diff is too big to show here.
vendor/github.com/aws/smithy-go/transport/http/user_agent.go+37
This diff is too big to show here.
vendor/github.com/aws/smithy-go/type_registry.go+70
This diff is too big to show here.
vendor/github.com/aws/smithy-go/validation.go+140
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/LICENSE-BSD+27
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/LICENSE-MIT+21
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/Makefile+4
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/README.md+142
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/diff.go+177
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/export.go+16
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/lcs/common.go+179
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/lcs/doc.go+156
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/lcs/export.go+11
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/lcs/git.sh+33
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/lcs/labels.go+55
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/lcs/old.go+475
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/lcs/sequence.go+70
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/merge.go+81
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/ndiff.go+118
This diff is too big to show here.
vendor/github.com/aymanbagabas/go-udiff/unified.go+314
This diff is too big to show here.
vendor/github.com/aymerick/douceur/LICENSE+22
This diff is too big to show here.
vendor/github.com/aymerick/douceur/css/declaration.go+60
This diff is too big to show here.
vendor/github.com/aymerick/douceur/css/rule.go+230
This diff is too big to show here.
vendor/github.com/aymerick/douceur/css/stylesheet.go+25
This diff is too big to show here.
vendor/github.com/aymerick/douceur/parser/parser.go+409
This diff is too big to show here.
vendor/github.com/bahlo/generic-list-go/LICENSE+27
This diff is too big to show here.
vendor/github.com/bahlo/generic-list-go/README.md+5
This diff is too big to show here.
vendor/github.com/bahlo/generic-list-go/list.go+235
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/.codecov.yml+10
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/.gitignore+32
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/LICENSE+22
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/README.md+495
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/UPGRADING.md+63
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/doublestar.go+13
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/glob.go+497
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/globoptions.go+188
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/globwalk.go+438
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/match.go+419
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/utils.go+165
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/utils_unix.go+19
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/utils_windows.go+43
This diff is too big to show here.
vendor/github.com/bmatcuk/doublestar/v4/validate.go+80
This diff is too big to show here.
vendor/github.com/buger/jsonparser/.gitignore+12
This diff is too big to show here.
vendor/github.com/buger/jsonparser/.travis.yml+12
This diff is too big to show here.
vendor/github.com/buger/jsonparser/Dockerfile+12
This diff is too big to show here.
vendor/github.com/buger/jsonparser/LICENSE+21
This diff is too big to show here.
vendor/github.com/buger/jsonparser/Makefile+36
This diff is too big to show here.
vendor/github.com/buger/jsonparser/README.md+361
This diff is too big to show here.
vendor/github.com/buger/jsonparser/bytes.go+47
This diff is too big to show here.
vendor/github.com/buger/jsonparser/bytes_safe.go+25
This diff is too big to show here.
vendor/github.com/buger/jsonparser/bytes_unsafe.go+44
This diff is too big to show here.
vendor/github.com/buger/jsonparser/escape.go+173
This diff is too big to show here.
vendor/github.com/buger/jsonparser/fuzz.go+117
This diff is too big to show here.
vendor/github.com/buger/jsonparser/oss-fuzz-build.sh+47
This diff is too big to show here.
vendor/github.com/buger/jsonparser/parser.go+1318
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/LICENSE.txt+22
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/README.md+74
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/testall.sh+10
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/xxhash.go+243
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/xxhash_amd64.s+209
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/xxhash_arm64.s+183
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/xxhash_asm.go+15
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/xxhash_other.go+76
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/xxhash_safe.go+16
This diff is too big to show here.
vendor/github.com/cespare/xxhash/v2/xxhash_unsafe.go+58
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/.gitignore+2
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/LICENSE+21
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/Makefile+101
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/README.md+193
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/adapters.go+102
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/dirent.go+73
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/dirent_portable.go+134
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/dirent_unix.go+146
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/entry_filter_portable.go+37
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/entry_filter_unix.go+59
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/entry_filter_windows.go+156
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/fastwalk.go+697
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/fastwalk_darwin.go+122
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/fastwalk_portable.go+65
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/fastwalk_unix.go+131
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/go.LICENSE+27
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent.go+85
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent_aix.go+29
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent_dragonfly.go+54
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent_freebsd.go+46
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent_js.go+27
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent_linux.go+50
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent_netbsd.go+46
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent_openbsd.go+46
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/dirent_solaris.go+29
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/dirent/doc.go+2
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/fmtdirent/fmtdirent_go120.go+31
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/internal/fmtdirent/fmtdirent_go121.go+15
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/zsyscall_darwin.go+93
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/zsyscall_darwin_amd64.1_13.s+22
This diff is too big to show here.
vendor/github.com/charlievieth/fastwalk/zsyscall_darwin_arm64.1_13.s+22
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/.gitignore+4
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/.release-please-manifest.json+3
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/.stats.yml+4
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/Brewfile+1
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/CHANGELOG.md+641
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/CONTRIBUTING.md+65
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/LICENSE+8
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/README.md+999
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/SECURITY.md+27
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/aliases.go+72
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/api.md+545
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/bedrock/bedrock.go+295
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/beta.go+374
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/betafile.go+273
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/betamessage.go+11734
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/betamessagebatch.go+925
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/betamessageutil.go+459
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/betamodel.go+151
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/betaskill.go+362
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/betaskillversion.go+373
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/betatoolrunner.go+435
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/client.go+157
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/completion.go+196
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/field.go+46
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apierror/apierror.go+58
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apiform/encoder.go+473
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apiform/form.go+5
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apiform/richparam.go+21
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apiform/tag.go+51
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/decoder.go+709
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/encoder.go+392
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/enum.go+145
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/field.go+23
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/port.go+120
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/registry.go+59
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/subfield.go+68
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/tag.go+47
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apijson/union.go+209
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apiquery/encoder.go+414
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apiquery/query.go+55
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apiquery/richparam.go+20
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/apiquery/tag.go+44
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/decode.go+1325
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/encode.go+1396
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/fold.go+48
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/indent.go+182
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/scanner.go+610
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/sentinel/null.go+47
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/shims/shims.go+113
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/stream.go+512
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/tables.go+218
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/tags.go+38
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/encoding/json/time.go+62
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/paramutil/field.go+30
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/paramutil/union.go+49
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/requestconfig/requestconfig.go+638
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/internal/version.go+5
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/message.go+9436
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/messagebatch.go+827
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/messageutil.go+413
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/model.go+151
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/option/middleware.go+38
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/option/requestoption.go+285
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/packages/jsonl/jsonl.go+62
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/packages/pagination/pagination.go+351
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/packages/param/encoder.go+109
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/packages/param/null.go+19
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/packages/param/option.go+122
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/packages/param/param.go+189
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/packages/respjson/respjson.go+88
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/packages/ssestream/ssestream.go+198
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/release-please-config.json+68
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/schemautil.go+244
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/shared/constant/constants.go+487
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/shared/shared.go+346
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/tools.md+292
This diff is too big to show here.
vendor/github.com/charmbracelet/anthropic-sdk-go/vertex/vertex.go+134
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/.golangci.yml+47
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml+6
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/README.md+109
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/doc.go+4
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/env.go+294
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/env_other.go+8
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/env_windows.go+40
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/profile.go+108
This diff is too big to show here.
vendor/github.com/charmbracelet/colorprofile/writer.go+171
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/.gitignore+4
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/.release-please-manifest.json+3
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/.stats.yml+4
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/Brewfile+1
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/CHANGELOG.md+1171
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/CONTRIBUTING.md+65
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/LICENSE+201
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/MIGRATION.md+284
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/README.md+1007
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/SECURITY.md+29
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/aliases.go+585
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/api.md+774
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/audio.go+61
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/audiospeech.go+179
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/audiotranscription.go+950
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/audiotranslation.go+120
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/azure/azure.go+269
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/batch.go+464
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/beta.go+36
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/betaassistant.go+2284
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/betachatkit.go+125
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/betachatkitsession.go+83
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/betachatkitthread.go+1564
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/betathread.go+1574
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/betathreadmessage.go+1717
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/betathreadrun.go+974
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/betathreadrunstep.go+1396
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/chat.go+30
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/chatcompletion.go+3521
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/chatcompletionmessage.go+100
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/client.go+185
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/completion.go+436
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/container.go+648
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/containerfile.go+287
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/containerfilecontent.go+50
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/conversations/aliases.go+585
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/conversations/api.md+31
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/conversations/conversation.go+493
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/conversations/item.go+1082
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/embedding.go+207
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/field.go+45
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/file.go+352
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/finetuning.go+35
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/finetuningalpha.go+29
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/finetuningalphagrader.go+675
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/finetuningcheckpoint.go+29
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/finetuningcheckpointpermission.go+352
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/finetuningjob.go+884
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/finetuningjobcheckpoint.go+152
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/finetuningmethod.go+1487
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/grader.go+28
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/gradergradermodel.go+1753
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/image.go+1337
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apierror/apierror.go+58
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apiform/encoder.go+473
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apiform/form.go+5
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apiform/richparam.go+20
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apiform/tag.go+72
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/decoder.go+688
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/encoder.go+371
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/enum.go+140
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/field.go+23
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/port.go+120
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/registry.go+51
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/subfield.go+67
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/tag.go+69
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apijson/union.go+208
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apiquery/encoder.go+394
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apiquery/query.go+55
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apiquery/richparam.go+20
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/apiquery/tag.go+44
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/decode.go+1324
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/encode.go+1396
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/fold.go+48
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/indent.go+182
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/scanner.go+610
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/sentinel/null.go+46
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/shims/shims.go+113
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/stream.go+512
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/tables.go+218
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/tags.go+38
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/encoding/json/time.go+61
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/paramutil/field.go+30
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/paramutil/union.go+48
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/requestconfig/requestconfig.go+644
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/internal/version.go+5
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/model.go+137
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/moderation.go+489
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/option/middleware.go+38
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/option/requestoption.go+299
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/packages/pagination/pagination.go+329
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/packages/param/encoder.go+109
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/packages/param/null.go+19
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/packages/param/option.go+122
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/packages/param/param.go+186
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/packages/respjson/respjson.go+88
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/packages/ssestream/ssestream.go+247
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/polling.go+129
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/realtime/aliases.go+585
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/realtime/api.md+55
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/realtime/call.go+133
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/realtime/clientsecret.go+1826
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/realtime/realtime.go+1979
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/release-please-config.json+68
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/responses/aliases.go+585
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/responses/api.md+240
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/responses/inputitem.go+135
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/responses/inputtoken.go+336
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/responses/response.go+21786
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/shared/constant/constants.go+1143
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/shared/shared.go+1183
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/skill.go+292
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/skillcontent.go+46
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/skillversion.go+283
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/skillversioncontent.go+50
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/streamaccumulator.go+215
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/upload.go+238
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/uploadpart.go+115
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/vectorstore.go+911
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/vectorstorefile.go+535
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/vectorstorefilebatch.go+427
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/video.go+677
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/webhooks/aliases.go+585
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/webhooks/api.md+20
This diff is too big to show here.
vendor/github.com/charmbracelet/openai-go/webhooks/webhook.go+1306
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/.gitattributes+1
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/.golangci.yml+48
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/.goreleaser.yml+5
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/README.md+161
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/TUTORIAL.md+175
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/border.go+231
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/buffer.go+831
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/cancelreader_other.go+16
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/cancelreader_windows.go+139
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/cell.go+465
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/console.go+219
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/console_unix.go+13
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/console_windows.go+13
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/cursor.go+22
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/decoder.go+2102
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/doc.go+46
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/environ.go+32
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/event.go+567
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/internal/casso/math.go+172
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/internal/casso/solver.go+275
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/internal/lru/lru.go+69
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/key.go+762
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/key_table.go+664
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/layout/cache.go+29
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/layout/constraint.go+174
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/layout/flex.go+210
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/layout/layout.go+973
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/layout/padding.go+66
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/logger.go+6
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/mouse.go+150
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/poll.go+38
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/poll_bsd.go+165
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/poll_default.go+12
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/poll_fallback.go+158
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/poll_linux.go+175
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/poll_select.go+156
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/poll_solaris.go+12
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/poll_windows.go+217
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/screen/context.go+379
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/screen/screen.go+117
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/styled.go+337
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/tabstop.go+142
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal.go+394
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_bsdly.go+10
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_bsdly_other.go+8
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_other.go+22
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_reader.go+503
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_reader_other.go+13
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_reader_windows.go+336
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_renderer.go+1639
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_renderer_hardscroll.go+243
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_renderer_hashmap.go+298
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_screen.go+837
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_tabdly.go+10
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_tabdly_other.go+8
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_unix.go+56
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/terminal_windows.go+77
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/tty.go+42
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/tty_other.go+26
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/tty_unix.go+39
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/tty_windows.go+39
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/utils.go+15
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/uv.go+406
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/winch.go+62
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/winch_other.go+17
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/winch_unix.go+50
This diff is too big to show here.
vendor/github.com/charmbracelet/ultraviolet/window.go+147
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/ansi.go+11
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/ascii.go+8
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/background.go+178
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/c0.go+79
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/c1.go+72
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/charset.go+55
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/clipboard.go+75
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/color.go+784
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/ctrl.go+156
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/cursor.go+637
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/cwd.go+26
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/doc.go+7
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/finalterm.go+67
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/focus.go+9
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/graphics.go+62
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/hyperlink.go+28
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/inband.go+24
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/iterm2.go+18
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/keypad.go+28
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/kitty.go+90
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/kitty/decoder.go+86
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/kitty/encoder.go+64
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/kitty/graphics.go+414
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/kitty/options.go+373
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/kitty/writer.go+187
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/method.go+196
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/mode.go+690
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/mode_deprecated.go+495
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/modes.go+65
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/mouse.go+172
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/notification.go+32
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/palette.go+34
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/parser.go+417
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/parser/const.go+79
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/parser/seq.go+136
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/parser/transition_table.go+273
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/parser_decode.go+525
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/parser_handler.go+60
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/parser_sync.go+29
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/passthrough.go+60
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/paste.go+7
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/progress.go+49
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/reset.go+11
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/screen.go+410
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/sgr.go+79
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/status.go+168
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/style.go+819
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/termcap.go+41
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/title.go+48
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/truncate.go+290
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/urxvt.go+17
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/util.go+92
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/width.go+107
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/winop.go+59
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/wrap.go+472
This diff is too big to show here.
vendor/github.com/charmbracelet/x/ansi/xterm.go+138
This diff is too big to show here.
vendor/github.com/charmbracelet/x/editor/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/editor/editor.go+140
This diff is too big to show here.
vendor/github.com/charmbracelet/x/etag/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/etag/etag.go+48
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/charmtone/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/charmtone/charmtone.go+443
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/golden/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/golden/golden.go+83
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/ordered/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/ordered/ordered.go+42
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/slice/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/slice/slice.go+148
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/strings/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/strings/contains.go+16
This diff is too big to show here.
vendor/github.com/charmbracelet/x/exp/strings/join.go+134
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/config/config.go+118
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/config/lsps.json+367
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/config/overrides.go+85
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/client.go+875
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/language.go+158
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol.go+50
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol/LICENSE+27
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol/interface.go+132
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol/pattern_interfaces.go+79
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol/tables.go+31
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol/tsdocument-changes.go+83
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol/tsjson.go+3072
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol/tsprotocol.go+6963
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/protocol/uri.go+192
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/sync.go+240
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/lsp/types.go+93
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/transport/connection.go+130
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/transport/router.go+107
This diff is too big to show here.
vendor/github.com/charmbracelet/x/powernap/pkg/transport/transport.go+214
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/term.go+51
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/term_other.go+39
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/term_plan9.go+118
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/term_unix.go+96
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/term_unix_bsd.go+11
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/term_unix_other.go+11
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/term_windows.go+87
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/terminal.go+12
This diff is too big to show here.
vendor/github.com/charmbracelet/x/term/util.go+47
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/bit_bsd.go+7
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/bit_darwin.go+7
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/bit_other.go+7
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/syscalls_bsd.go+11
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/syscalls_darwin.go+10
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/syscalls_linux.go+14
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/termios.go+249
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/termios_bsd.go+13
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/termios_linux.go+13
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/termios_other.go+15
This diff is too big to show here.
vendor/github.com/charmbracelet/x/termios/termios_solaris.go+26
This diff is too big to show here.
vendor/github.com/charmbracelet/x/windows/LICENSE+21
This diff is too big to show here.
vendor/github.com/charmbracelet/x/windows/doc.go+4
This diff is too big to show here.
vendor/github.com/charmbracelet/x/windows/syscall_windows.go+14
This diff is too big to show here.
vendor/github.com/charmbracelet/x/windows/types.go+221
This diff is too big to show here.
vendor/github.com/charmbracelet/x/windows/types_windows.go+142
This diff is too big to show here.
vendor/github.com/charmbracelet/x/windows/zsyscall_windows.go+77
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/.gitignore+3
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/AGENTS.md+51
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/CHANGELOG.md+129
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/LICENSE+21
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/README.md+190
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/gen.go+3
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/graphemes.go+73
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/options.go+30
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/trie.go+1699
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/truncate.go+149
This diff is too big to show here.
vendor/github.com/clipperhouse/displaywidth/width.go+239
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/LICENSE+21
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/graphemes/README.md+120
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi.go+138
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi8.go+79
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/graphemes/iterator.go+144
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/graphemes/reader.go+25
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/graphemes/splitfunc.go+205
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/graphemes/trie.go+1717
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/words/README.md+121
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/words/bleve_compat.go+104
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/words/iterator.go+126
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/words/joiners.go+41
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/words/reader.go+34
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/words/seek.go+43
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/words/splitfunc.go+269
This diff is too big to show here.
vendor/github.com/clipperhouse/uax29/v2/words/trie.go+3774
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/.golangci.yml+60
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/CHANGELOG.md+453
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/COPYING.md+447
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/LICENSE.BSD+28
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/LICENSE.MPL-2.0+373
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/README.md+184
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/VERSION+1
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/codecov.yml+29
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/doc.go+47
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/internal/consts/consts.go+15
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/join.go+169
This diff is too big to show here.
vendor/github.com/cyphar/filepath-securejoin/vfs.go+37
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/LICENSE+15
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/spew/bypass.go+145
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/spew/bypasssafe.go+38
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/spew/common.go+341
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/spew/config.go+306
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/spew/doc.go+211
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/spew/dump.go+509
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/spew/format.go+419
This diff is too big to show here.
vendor/github.com/davecgh/go-spew/spew/spew.go+148
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/.gitignore+29
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/LICENSE.md+22
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/README.md+182
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/helper.go+36
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/id.go+45
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/id_bsd.go+42
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/id_darwin.go+37
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/id_linux.go+27
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/id_windows.go+23
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/logo.png
This diff is too big to show here.
vendor/github.com/denisbrodbeck/machineid/makefile+12
This diff is too big to show here.
vendor/github.com/disintegration/imaging/.travis.yml+12
This diff is too big to show here.
vendor/github.com/disintegration/imaging/LICENSE+21
This diff is too big to show here.
vendor/github.com/disintegration/imaging/README.md+226
This diff is too big to show here.
vendor/github.com/disintegration/imaging/adjust.go+253
This diff is too big to show here.
vendor/github.com/disintegration/imaging/convolution.go+148
This diff is too big to show here.
vendor/github.com/disintegration/imaging/doc.go+7
This diff is too big to show here.
vendor/github.com/disintegration/imaging/effects.go+169
This diff is too big to show here.
vendor/github.com/disintegration/imaging/histogram.go+52
This diff is too big to show here.
vendor/github.com/disintegration/imaging/io.go+444
This diff is too big to show here.
vendor/github.com/disintegration/imaging/resize.go+595
This diff is too big to show here.
vendor/github.com/disintegration/imaging/scanner.go+285
This diff is too big to show here.
vendor/github.com/disintegration/imaging/tools.go+249
This diff is too big to show here.
vendor/github.com/disintegration/imaging/transform.go+268
This diff is too big to show here.
vendor/github.com/disintegration/imaging/utils.go+167
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/.gitignore+29
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/ATTRIB+133
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/LICENSE+21
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/README.md+283
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/Taskfile.yml+64
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/bufferpool.go+76
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/fastclock.go+141
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/helpers/indexof.go+394
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/helpers/math.go+15
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/helpers/runes.go+58
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/helpers/searchvalues.go+180
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/match.go+455
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/options.go+157
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/regexp.go+717
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/regexp_codegen.go+70
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/replace.go+357
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/runner.go+2197
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/split.go+67
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/stringprefixfilter.go+375
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/charclass.go+1507
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/code.go+316
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/escape.go+94
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/fuzz.go+21
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/optimizations.go+672
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/parser.go+2529
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/prefix.go+943
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/prefixanalyzer.go+1491
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/replacerdata.go+87
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/tree.go+2362
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/unicode_alias_tables.go+6058
This diff is too big to show here.
vendor/github.com/dlclark/regexp2/v2/syntax/writer.go+500
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/.travis.yml+21
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/LICENSE+21
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/README.markdown+124
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/big.go+31
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/bigbytes.go+189
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/bytes.go+143
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/comma.go+116
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/commaf.go+41
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/ftoa.go+49
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/humanize.go+8
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/number.go+192
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/ordinals.go+25
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/si.go+127
This diff is too big to show here.
vendor/github.com/dustin/go-humanize/times.go+117
This diff is too big to show here.
vendor/github.com/ebitengine/purego/.gitignore+1
This diff is too big to show here.
vendor/github.com/ebitengine/purego/LICENSE+201
This diff is too big to show here.
vendor/github.com/ebitengine/purego/README.md+119
This diff is too big to show here.
vendor/github.com/ebitengine/purego/abi_amd64.h+99
This diff is too big to show here.
vendor/github.com/ebitengine/purego/abi_arm64.h+39
This diff is too big to show here.
vendor/github.com/ebitengine/purego/abi_loong64.h+60
This diff is too big to show here.
vendor/github.com/ebitengine/purego/cgo.go+19
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlerror.go+17
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn.go+99
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_android.go+34
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_darwin.go+20
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_freebsd.go+14
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_linux.go+16
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_netbsd.go+15
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_nocgo_freebsd.go+11
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_nocgo_linux.go+19
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_nocgo_netbsd.go+9
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_playground.go+24
This diff is too big to show here.
vendor/github.com/ebitengine/purego/dlfcn_stubs.s+22
This diff is too big to show here.
vendor/github.com/ebitengine/purego/func.go+564
This diff is too big to show here.
vendor/github.com/ebitengine/purego/gen.go+6
This diff is too big to show here.
vendor/github.com/ebitengine/purego/go_runtime.go+13
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/cgo/dlfcn_cgo_unix.go+56
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/cgo/empty.go+6
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/cgo/syscall_cgo_unix.go+55
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/abi_amd64.h+99
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/abi_arm64.h+39
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/abi_loong64.h+60
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/abi_ppc64x.h+195
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/asm_386.s+29
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/asm_amd64.s+39
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm.s+52
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm64.s+36
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/asm_loong64.s+40
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/asm_ppc64le.s+82
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/asm_riscv64.s+78
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/asm_s390x.s+55
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/callbacks.go+93
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/doc.go+32
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/fakecgo.go+14
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/freebsd.go+27
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/go_darwin.go+88
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/go_freebsd.go+100
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go+72
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/go_linux.go+100
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/go_netbsd.go+106
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/go_setenv.go+18
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/go_util.go+38
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/iscgo.go+19
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo.go+39
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_darwin.go+26
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_freebsd.go+20
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_linux.go+20
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_netbsd.go+26
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/netbsd.go+23
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/setenv.go+19
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_386.s+107
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_amd64.s+107
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm.s+81
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm64.s+84
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_loong64.s+88
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_ppc64le.s+227
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_riscv64.s+72
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols.go+165
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_darwin.go+59
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_freebsd.go+48
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_linux.go+48
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_netbsd.go+59
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_darwin.s+19
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_freebsd.s+16
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_linux.s+16
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_netbsd.s+19
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_stubs.s+55
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/strings/strings.go+40
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/xreflect/reflect_go124.go+15
This diff is too big to show here.
vendor/github.com/ebitengine/purego/internal/xreflect/reflect_go125.go+12
This diff is too big to show here.
vendor/github.com/ebitengine/purego/is_ios.go+13
This diff is too big to show here.
vendor/github.com/ebitengine/purego/nocgo.go+25
This diff is too big to show here.
vendor/github.com/ebitengine/purego/objc/objc_block_darwin.go+272
This diff is too big to show here.
vendor/github.com/ebitengine/purego/objc/objc_runtime_darwin.go+709
This diff is too big to show here.
vendor/github.com/ebitengine/purego/struct_386.go+41
This diff is too big to show here.
vendor/github.com/ebitengine/purego/struct_amd64.go+286
This diff is too big to show here.
vendor/github.com/ebitengine/purego/struct_arm.go+85
This diff is too big to show here.
vendor/github.com/ebitengine/purego/struct_arm64.go+549
This diff is too big to show here.
vendor/github.com/ebitengine/purego/struct_loong64.go+213
This diff is too big to show here.
vendor/github.com/ebitengine/purego/struct_ppc64le.go+143
This diff is too big to show here.
vendor/github.com/ebitengine/purego/struct_riscv64.go+143
This diff is too big to show here.
vendor/github.com/ebitengine/purego/struct_s390x.go+143
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_386.s+147
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_amd64.s+170
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_arm.s+142
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_arm64.s+97
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_loong64.s+96
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_ppc64le.s+120
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_riscv64.s+101
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_s390x.s+114
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_unix_386.s+226
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_unix_arm.s+89
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_unix_arm64.s+70
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_unix_loong64.s+75
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_unix_ppc64le.s+114
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_unix_riscv64.s+79
This diff is too big to show here.
vendor/github.com/ebitengine/purego/sys_unix_s390x.s+109
This diff is too big to show here.
vendor/github.com/ebitengine/purego/syscall.go+83
This diff is too big to show here.
vendor/github.com/ebitengine/purego/syscall_32bit.go+109
This diff is too big to show here.
vendor/github.com/ebitengine/purego/syscall_cgo_linux.go+21
This diff is too big to show here.
vendor/github.com/ebitengine/purego/syscall_sysv.go+317
This diff is too big to show here.
vendor/github.com/ebitengine/purego/syscall_sysv_others.go+28
This diff is too big to show here.
vendor/github.com/ebitengine/purego/syscall_sysv_stackargs.go+33
This diff is too big to show here.
vendor/github.com/ebitengine/purego/syscall_windows.go+46
This diff is too big to show here.
vendor/github.com/ebitengine/purego/zcallback_386.s+4014
This diff is too big to show here.
vendor/github.com/ebitengine/purego/zcallback_amd64.s+2014
This diff is too big to show here.
vendor/github.com/ebitengine/purego/zcallback_arm.s+4014
This diff is too big to show here.
vendor/github.com/ebitengine/purego/zcallback_arm64.s+4014
This diff is too big to show here.
vendor/github.com/ebitengine/purego/zcallback_loong64.s+4014
This diff is too big to show here.
vendor/github.com/ebitengine/purego/zcallback_ppc64le.s+4014
This diff is too big to show here.
vendor/github.com/ebitengine/purego/zcallback_riscv64.s+4051
This diff is too big to show here.
vendor/github.com/ebitengine/purego/zcallback_s390x.s+4015
This diff is too big to show here.
vendor/github.com/esiqveland/notify/.gitignore+1
This diff is too big to show here.
vendor/github.com/esiqveland/notify/LICENSE.txt+27
This diff is too big to show here.
vendor/github.com/esiqveland/notify/README.md+54
This diff is too big to show here.
vendor/github.com/esiqveland/notify/doc.go+18
This diff is too big to show here.
vendor/github.com/esiqveland/notify/notification.go+547
This diff is too big to show here.
vendor/github.com/felixge/httpsnoop/.gitignore
This diff is too big to show here.
vendor/github.com/felixge/httpsnoop/LICENSE.txt+19
This diff is too big to show here.
vendor/github.com/felixge/httpsnoop/Makefile+10
This diff is too big to show here.
vendor/github.com/felixge/httpsnoop/README.md+95
This diff is too big to show here.
vendor/github.com/felixge/httpsnoop/capture_metrics.go+121
This diff is too big to show here.
vendor/github.com/felixge/httpsnoop/docs.go+10
This diff is too big to show here.
vendor/github.com/felixge/httpsnoop/wrap_generated.go+16179
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/.cirrus.yml+14
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/.gitignore+10
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/.mailmap+2
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/CHANGELOG.md+602
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md+145
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/LICENSE+25
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/README.md+182
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/backend_fen.go+467
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/backend_inotify.go+583
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/backend_kqueue.go+705
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/backend_other.go+22
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/backend_windows.go+680
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/fsnotify.go+496
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/darwin.go+39
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.go+57
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.go+33
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.go+42
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go+32
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_linux.go+56
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go+25
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go+28
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.go+45
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go+40
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/freebsd.go+31
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/internal.go+2
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/unix.go+31
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/unix2.go+7
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/internal/windows.go+41
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/shared.go+64
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/staticcheck.conf+3
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/system_bsd.go+7
This diff is too big to show here.
vendor/github.com/fsnotify/fsnotify/system_darwin.go+8
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/LICENSE+23
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/README.md+41
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/alert_darwin.go+8
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/alert_js.go+12
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/alert_unix.go+17
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/alert_unsupported.go+8
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/alert_windows.go+43
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/beeep.go+55
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/beep_darwin.go+32
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/beep_js.go+39
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/beep_unix.go+100
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/beep_unsupported.go+15
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/beep_windows.go+52
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/notify_darwin.go+131
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/notify_js.go+63
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/notify_unix.go+181
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/notify_unix_nodbus.go+78
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/notify_unsupported.go+8
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/notify_windows.go+157
This diff is too big to show here.
vendor/github.com/gen2brain/beeep/notify_windows_compat.go+109
This diff is too big to show here.
vendor/github.com/go-git/gcfg/.gitignore+1
This diff is too big to show here.
vendor/github.com/go-git/gcfg/LICENSE+28
This diff is too big to show here.
vendor/github.com/go-git/gcfg/Makefile+17
This diff is too big to show here.
vendor/github.com/go-git/gcfg/README+4
This diff is too big to show here.
vendor/github.com/go-git/gcfg/doc.go+145
This diff is too big to show here.
vendor/github.com/go-git/gcfg/errors.go+41
This diff is too big to show here.
vendor/github.com/go-git/gcfg/read.go+273
This diff is too big to show here.
vendor/github.com/go-git/gcfg/scanner/errors.go+121
This diff is too big to show here.
vendor/github.com/go-git/gcfg/scanner/scanner.go+334
This diff is too big to show here.
vendor/github.com/go-git/gcfg/set.go+334
This diff is too big to show here.
vendor/github.com/go-git/gcfg/token/position.go+435
This diff is too big to show here.
vendor/github.com/go-git/gcfg/token/serialize.go+56
This diff is too big to show here.
vendor/github.com/go-git/gcfg/token/token.go+83
This diff is too big to show here.
vendor/github.com/go-git/gcfg/types/bool.go+23
This diff is too big to show here.
vendor/github.com/go-git/gcfg/types/doc.go+4
This diff is too big to show here.
vendor/github.com/go-git/gcfg/types/enum.go+44
This diff is too big to show here.
vendor/github.com/go-git/gcfg/types/int.go+86
This diff is too big to show here.
vendor/github.com/go-git/gcfg/types/scan.go+23
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/.gitignore+4
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/LICENSE+201
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/Makefile+18
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/README.md+77
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/fs.go+210
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/helper/chroot/chroot.go+444
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/helper/polyfill/polyfill.go+114
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/memfs/memory.go+428
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/memfs/storage.go+251
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os.go+132
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os_bound.go+351
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os_chroot.go+126
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os_js.go+25
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os_options.go+3
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os_plan9.go+91
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os_posix.go+38
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os_wasip1.go+34
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/osfs/os_windows.go+58
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/util/glob.go+111
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/util/util.go+282
This diff is too big to show here.
vendor/github.com/go-git/go-billy/v5/util/walk.go+72
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/LICENSE+201
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/config/branch.go+123
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/config/config.go+727
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/config/modules.go+191
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/config/optbool.go+82
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/config/refspec.go+155
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/config/url.go+81
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/internal/path_util/path_util.go+29
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/internal/pathutil/dotgit.go+21
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/internal/pathutil/hfs.go+99
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/internal/pathutil/ntfs.go+187
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/internal/pathutil/tree.go+66
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/internal/url/url.go+72
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/error.go+35
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/config/common.go+109
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/config/decoder.go+37
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/config/doc.go+122
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/config/encoder.go+82
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/config/format.go+53
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/config/option.go+127
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/config/section.go+181
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/gitignore/dir.go+148
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/gitignore/doc.go+70
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/gitignore/matcher.go+30
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/format/gitignore/pattern.go+155
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/hash.go+84
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/hash/hash.go+60
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/hash/hash_sha1.go+15
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/hash/hash_sha256.go+15
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/memory.go+72
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/object.go+111
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/reference.go+315
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/plumbing/revision.go+11
This diff is too big to show here.
vendor/github.com/go-git/go-git/v5/utils/ioutil/common.go+210
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/AUTHORS+3
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/CONTRIBUTORS+3
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/LICENSE+27
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/README.md+176
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/alias.go+943
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/api.png
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/arshal.go+569
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/arshal_any.go+289
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/arshal_default.go+2043
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/arshal_embedded.go+230
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/arshal_funcs.go+428
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/arshal_methods.go+378
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/arshal_time.go+795
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/doc.go+247
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/errors.go+465
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/fields.go+656
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/fold.go+58
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/intern.go+88
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/internal/internal.go+42
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/internal/jsonflags/flags.go+223
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/internal/jsonopts/options.go+217
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/internal/jsonopts/options_format.go+124
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/internal/jsonwire/decode.go+606
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/internal/jsonwire/encode.go+290
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/internal/jsonwire/wire.go+209
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/alias.go+555
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/decode.go+1218
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/doc.go+111
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/encode.go+993
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/errors.go+213
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/export.go+91
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/options.go+304
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/pools.go+164
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/quote.go+41
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/state.go+828
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/token.go+697
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/jsontext/value.go+414
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/migrate.sh+60
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/options.go+290
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/options_format.go+122
This diff is too big to show here.
vendor/github.com/go-json-experiment/json/options_format_global.go+30
This diff is too big to show here.
vendor/github.com/go-logfmt/logfmt/.gitignore+1
This diff is too big to show here.
vendor/github.com/go-logfmt/logfmt/CHANGELOG.md+82
This diff is too big to show here.
vendor/github.com/go-logfmt/logfmt/LICENSE+22
This diff is too big to show here.
vendor/github.com/go-logfmt/logfmt/README.md+41
This diff is too big to show here.
vendor/github.com/go-logfmt/logfmt/decode.go+254
This diff is too big to show here.
vendor/github.com/go-logfmt/logfmt/doc.go+6
This diff is too big to show here.
vendor/github.com/go-logfmt/logfmt/encode.go+322
This diff is too big to show here.
vendor/github.com/go-logfmt/logfmt/jsonstring.go+277
This diff is too big to show here.
vendor/github.com/go-logr/logr/.golangci.yaml+28
This diff is too big to show here.
vendor/github.com/go-logr/logr/CHANGELOG.md+6
This diff is too big to show here.
vendor/github.com/go-logr/logr/CONTRIBUTING.md+17
This diff is too big to show here.
vendor/github.com/go-logr/logr/LICENSE+201
This diff is too big to show here.
vendor/github.com/go-logr/logr/README.md+407
This diff is too big to show here.
vendor/github.com/go-logr/logr/SECURITY.md+18
This diff is too big to show here.
vendor/github.com/go-logr/logr/context.go+33
This diff is too big to show here.
vendor/github.com/go-logr/logr/context_noslog.go+49
This diff is too big to show here.
vendor/github.com/go-logr/logr/context_slog.go+83
This diff is too big to show here.
vendor/github.com/go-logr/logr/discard.go+24
This diff is too big to show here.
vendor/github.com/go-logr/logr/funcr/funcr.go+914
This diff is too big to show here.
vendor/github.com/go-logr/logr/funcr/slogsink.go+105
This diff is too big to show here.
vendor/github.com/go-logr/logr/logr.go+520
This diff is too big to show here.
vendor/github.com/go-logr/logr/sloghandler.go+192
This diff is too big to show here.
vendor/github.com/go-logr/logr/slogr.go+100
This diff is too big to show here.
vendor/github.com/go-logr/logr/slogsink.go+120
This diff is too big to show here.
vendor/github.com/go-logr/stdr/LICENSE+201
This diff is too big to show here.
vendor/github.com/go-logr/stdr/README.md+6
This diff is too big to show here.
vendor/github.com/go-logr/stdr/stdr.go+170
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/.travis.yml+8
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/ChangeLog.md+49
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/LICENSE+21
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/README.md+46
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/SECURITY.md+13
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/appveyor.yml+68
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/com.go+386
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/com_func.go+174
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/connect.go+192
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/constants.go+153
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/error.go+51
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/error_func.go+8
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/error_windows.go+24
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/guid.go+284
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iconnectionpoint.go+20
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iconnectionpoint_func.go+21
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iconnectionpoint_windows.go+43
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iconnectionpointcontainer.go+17
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iconnectionpointcontainer_func.go+11
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iconnectionpointcontainer_windows.go+25
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/idispatch.go+94
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/idispatch_func.go+19
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/idispatch_windows.go+203
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/ienumvariant.go+19
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/ienumvariant_func.go+19
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/ienumvariant_windows.go+63
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iinspectable.go+18
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iinspectable_func.go+15
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iinspectable_windows.go+72
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iprovideclassinfo.go+21
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iprovideclassinfo_func.go+7
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iprovideclassinfo_windows.go+21
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/itypeinfo.go+34
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/itypeinfo_func.go+7
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/itypeinfo_windows.go+21
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iunknown.go+57
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iunknown_func.go+19
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/iunknown_windows.go+58
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/ole.go+190
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/safearray.go+27
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/safearray_func.go+211
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/safearray_windows.go+337
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/safearrayconversion.go+140
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/safearrayslices.go+33
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/utility.go+101
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variables.go+15
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant.go+105
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_386.go+11
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_amd64.go+12
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_arm.go+11
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_arm64.go+13
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_date_386.go+22
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_date_amd64.go+20
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_date_arm.go+22
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_date_arm64.go+23
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_ppc64le.go+12
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/variant_s390x.go+12
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/vt_string.go+58
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/winrt.go+99
This diff is too big to show here.
vendor/github.com/go-ole/go-ole/winrt_doc.go+36
This diff is too big to show here.
vendor/github.com/go-openapi/jsonpointer/.editorconfig+26
This diff is too big to show here.
vendor/github.com/go-openapi/jsonpointer/.gitignore+1
This diff is too big to show here.
vendor/github.com/go-openapi/jsonpointer/.travis.yml+15
This diff is too big to show here.
vendor/github.com/go-openapi/jsonpointer/CODE_OF_CONDUCT.md+74
This diff is too big to show here.
vendor/github.com/go-openapi/jsonpointer/LICENSE+202
This diff is too big to show here.
vendor/github.com/go-openapi/jsonpointer/README.md+15
This diff is too big to show here.
vendor/github.com/go-openapi/jsonpointer/pointer.go+390
This diff is too big to show here.
vendor/github.com/go-openapi/jsonreference/.gitignore+1
This diff is too big to show here.
vendor/github.com/go-openapi/jsonreference/.golangci.yml+41
This diff is too big to show here.
vendor/github.com/go-openapi/jsonreference/.travis.yml+24
This diff is too big to show here.
vendor/github.com/go-openapi/jsonreference/CODE_OF_CONDUCT.md+74
This diff is too big to show here.
vendor/github.com/go-openapi/jsonreference/LICENSE+202
This diff is too big to show here.
vendor/github.com/go-openapi/jsonreference/README.md+15
This diff is too big to show here.
vendor/github.com/go-openapi/jsonreference/internal/normalize_url.go+63
This diff is too big to show here.
vendor/github.com/go-openapi/jsonreference/reference.go+158
This diff is too big to show here.
vendor/github.com/go-openapi/spec/.editorconfig+26
This diff is too big to show here.
vendor/github.com/go-openapi/spec/.gitignore+2
This diff is too big to show here.
vendor/github.com/go-openapi/spec/.golangci.yml+42
This diff is too big to show here.
vendor/github.com/go-openapi/spec/.travis.yml+31
This diff is too big to show here.
vendor/github.com/go-openapi/spec/CODE_OF_CONDUCT.md+74
This diff is too big to show here.
vendor/github.com/go-openapi/spec/LICENSE+202
This diff is too big to show here.
vendor/github.com/go-openapi/spec/README.md+34
This diff is too big to show here.
vendor/github.com/go-openapi/spec/bindata.go+297
This diff is too big to show here.
vendor/github.com/go-openapi/spec/cache.go+98
This diff is too big to show here.
vendor/github.com/go-openapi/spec/contact_info.go+57
This diff is too big to show here.
vendor/github.com/go-openapi/spec/debug.go+49
This diff is too big to show here.
vendor/github.com/go-openapi/spec/errors.go+19
This diff is too big to show here.
vendor/github.com/go-openapi/spec/expander.go+594
This diff is too big to show here.
vendor/github.com/go-openapi/spec/external_docs.go+24
This diff is too big to show here.
vendor/github.com/go-openapi/spec/header.go+203
This diff is too big to show here.
vendor/github.com/go-openapi/spec/info.go+165
This diff is too big to show here.
vendor/github.com/go-openapi/spec/items.go+234
This diff is too big to show here.
vendor/github.com/go-openapi/spec/license.go+56
This diff is too big to show here.
vendor/github.com/go-openapi/spec/normalizer.go+203
This diff is too big to show here.
vendor/github.com/go-openapi/spec/normalizer_nonwindows.go+43
This diff is too big to show here.
vendor/github.com/go-openapi/spec/normalizer_windows.go+154
This diff is too big to show here.
vendor/github.com/go-openapi/spec/operation.go+397
This diff is too big to show here.
vendor/github.com/go-openapi/spec/parameter.go+326
This diff is too big to show here.
vendor/github.com/go-openapi/spec/path_item.go+87
This diff is too big to show here.
vendor/github.com/go-openapi/spec/paths.go+97
This diff is too big to show here.
vendor/github.com/go-openapi/spec/properties.go+91
This diff is too big to show here.
vendor/github.com/go-openapi/spec/ref.go+193
This diff is too big to show here.
vendor/github.com/go-openapi/spec/resolver.go+127
This diff is too big to show here.
vendor/github.com/go-openapi/spec/response.go+152
This diff is too big to show here.