Skip to content

T-Strip v0.6.7

Latest

Choose a tag to compare

@dip-bash dip-bash released this 28 Nov 11:38

T-Strip v0.6.7

This release fixes several concurrency issues, scrollback and copy-mode drift, soft-wrap handling, keybinding priority, and input ordering.

Fixed

  • Server startup race: The server now acquires an exclusive flock on <name>.lock before accessing the socket. If another server is already running for the same session, the new process exits with an already running message. EnsureServer no longer removes the socket; the server handles stale sockets itself while holding the lock.
  • Pane dead-state race: Pane.Dead is now an atomic flag exposed through IsDead(). Close uses an atomic swap to ensure it runs only once.
  • Scrollback drift: The terminal emulator now tracks how many history lines it discards. Before each frame and key batch, the multiplexer adjusts the anchored scroll position, copy-mode cursor, and selection to account for discarded lines. This fixes drift when scrollback reaches its limit or is cleared.
  • Soft-wrap copying: The emulator's existing soft-wrap marker is now exported. Character-wise selections join soft-wrapped rows without inserting a newline, while preserving spaces at the wrap point. History rows also retain trailing blanks on wrapped lines.
  • Keybinding priority: Built-in bindings are applied first, followed by user bindings, with both processed in sorted order. User bindings now reliably override defaults for the same key—for example, alt+h can override the default leader+h. Conflicting user bindings that resolve to the same key now produce a configuration warning.
  • Escape input ordering: The input assembler now uses a second lock to deliver keys before releasing the first lock. This prevents the idle-timer flush from overtaking later input.