From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id B2C73296275; Sun, 11 Oct 2026 08:23:32 +1100 (AEDT) Date: Sun, 11 Oct 2026 08:23:33 +1100 To: sup-commits@supmua.dev Subject: [sup.git] 01/02: fix ambiguous / warning in new emit_xterm_title method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Reply-To: Dan Callaghan In-Reply-To: <179166741234.335316.11439183706167653222@bl2.djc.id.au> References: <179166741234.335316.11439183706167653222@bl2.djc.id.au> Thread-Index: AQAAEjRW5kEjIkVGRXCXtbzIVo4KFQ== X-Git-Host: bl2.djc.id.au X-Git-Repo: sup.git X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: 0d6a14bced9838695575c1e112dc3ecbfb299c8c X-Git-NotificationType: diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated Message-Id: <20261010212332.B2C73296275@bl2.djc.id.au> From: Dan Callaghan List-Id: New commit on branch develop: https://supmua.dev/git/sup/commit/0d6a14bced9838695575c1e112dc3ecbfb299c8c.html commit 0d6a14bced9838695575c1e112dc3ecbfb299c8c Author: Dan Callaghan AuthorDate: Sat Oct 10 18:08:03 2026 +1100 fix ambiguous / warning in new emit_xterm_title method lib/sup/buffer.rb:301: warning: ambiguous `/`; wrap regexp in parentheses or add a space after `/` operator --- lib/sup/buffer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index 7561d54d..75becf24 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -298,7 +298,7 @@ EOS ## Screen does not properly handle characters above U+FF in the title. ## It truncates them to 8 bits which may cause it to emit control ## characters into the terminal title. - title = title.gsub /[^\u0000-\u00ff]/, "?" if ENV["TERM"] =~ /screen/ + title = title.gsub(/[^\u0000-\u00ff]/, "?") if ENV["TERM"] =~ /screen/ print "\033]0;#{title}\07" end