public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Tom de Vries <tdevries@suse.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/3] [gdb/tui] Refactor prefresh call in tui_source_window_base::refresh_window
Date: Mon, 13 Nov 2023 10:41:32 -0700	[thread overview]
Message-ID: <87msvhsg8j.fsf@tromey.com> (raw)
In-Reply-To: <20231110130051.21239-1-tdevries@suse.de> (Tom de Vries's message of "Fri, 10 Nov 2023 14:00:49 +0100")

>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> Currently the call to prefresh in tui_source_window_base::refresh_window looks
Tom> like:
Tom> ...
Tom>   prefresh (m_pad.get (), 0, pad_x, y + 1, x + left_margin,
Tom> 	    y + m_content.size (), x + left_margin + view_width - 1);
Tom> ...

Tom> This is hard to parse.  It's not obvious what the arguments mean, and there's
Tom> repetition in the argument calculation.

Thanks for the cleanup.

Approved-By: Tom Tromey <tom@tromey.com>

Tom

      parent reply	other threads:[~2023-11-13 17:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-10 13:00 Tom de Vries
2023-11-10 13:00 ` [PATCH 2/3] [gdb/tui] Add tui_win_info::{box_width,box_size} Tom de Vries
2023-11-13 17:42   ` Tom Tromey
2023-11-10 13:00 ` [PATCH 3/3] [gdb/tui] Don't include border_width in left_margin Tom de Vries
2023-11-13 17:42   ` Tom Tromey
2023-11-13 17:41 ` Tom Tromey [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87msvhsg8j.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tdevries@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).