simon-git: putty (main): Jacob Nevins

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Thu May 20 23:46:04 BST 2021


TL;DR:
  1e726c94 Fix changing colours in Change Settings.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Jacob Nevins <jacobn at chiark.greenend.org.uk>
Date:           2021-05-20 23:46:04

commit 1e726c94e8d53c929a568a74fd54f71148550696
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=1e726c94e8d53c929a568a74fd54f71148550696;hp=0c21eb444794512ba1106d4a3bc3380861566099
Author: Jacob Nevins <jacobn at chiark.greenend.org.uk>
Date:   Sat May 15 22:05:27 2021 +0100

    Fix changing colours in Change Settings.
    
    Since ca9cd983e1, changing colour config mid-session had no effect
    (until the palette was reset for some other reason). Now it does take
    effect immediately (provided that the palette has not been overridden by
    escape sequence -- this is new with ca9cd983e1).
    
    This changes the semantics of palette_reset(): the only important
    parameter when doing that is whether we keep escape sequence overrides
    -- there's no harm in re-fetching config and platform colours whether or
    not they've changed -- so that's what the parameter becomes (with a
    sense that doesn't require changing the call sites). The other part of
    this change is actually remembering to trigger this when the
    configuration is changed.

 putty.h          |   2 +-
 terminal.c       | 103 ++++++++++++++++++++++++++++++++++++-------------------
 windows/window.c |   4 +--
 3 files changed, 70 insertions(+), 39 deletions(-)



More information about the tartarus-commits mailing list