From: Dan Callaghan <dan@bl2.djc.id.au>
To: sup-commits@supmua.dev
Subject: [ncursesw-ruby.git] 03/10: fix wrong argument handling in mvwgetch()
Date: Sat, 17 Oct 2026 11:25:01 +1100 [thread overview]
Message-ID: <20261017002458.DD8DA29BBCB@bl2.djc.id.au> (raw)
In-Reply-To: <179219669847.381480.6906705364727468632@bl2.djc.id.au>
New commit on branch master:
https://supmua.dev/git/ncursesw-ruby/commit/4e4c03b8b720253a90fb6298a8b7857571f8c60d.html
commit 4e4c03b8b720253a90fb6298a8b7857571f8c60d
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Thu Oct 8 21:16:08 2026 +1100
fix wrong argument handling in mvwgetch()
---
ncurses_wrap.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ncurses_wrap.c b/ncurses_wrap.c
index e511a4e..7325390 100644
--- a/ncurses_wrap.c
+++ b/ncurses_wrap.c
@@ -1246,10 +1246,10 @@ static VALUE rbncurs_mvwchgat(VALUE dummy, VALUE arg1, VALUE arg2, VALUE arg3, V
static VALUE rbncurs_mvwdelch(VALUE dummy, VALUE arg1, VALUE arg2, VALUE arg3) {
return INT2NUM(mvwdelch(get_window(arg1), NUM2INT(arg2), NUM2INT(arg3)));
}
-static VALUE rbncurs_mvwgetch(VALUE dummy, VALUE arg1, VALUE arg2, VALUE arg3) {
- WINDOW * c_win = get_window(arg1);
- int windelay = NUM2INT(rb_iv_get(arg1, "@timeout"));
- if (wmove(c_win, NUM2INT(arg1), NUM2INT(arg2)) == ERR)
+static VALUE rbncurs_mvwgetch(VALUE dummy, VALUE rb_win, VALUE rb_y, VALUE rb_x) {
+ WINDOW * c_win = get_window(rb_win);
+ int windelay = NUM2INT(rb_iv_get(rb_win, "@timeout"));
+ if (wmove(c_win, NUM2INT(rb_y), NUM2INT(rb_x)) == ERR)
return INT2NUM(ERR);
return INT2NUM(rbncurshelper_nonblocking_wgetch(c_win, windelay));
}
next prev parent reply other threads:[~2026-10-17 0:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-17 0:24 [ncursesw-ruby.git] branch master updated (de96552 -> 4bf538c) Dan Callaghan
2026-10-17 0:24 ` [ncursesw-ruby.git] 01/10: fix segfault when tigetstr() returns -1 Dan Callaghan
2026-10-17 0:25 ` [ncursesw-ruby.git] 02/10: fix wrong argument passed to wenclose() Dan Callaghan
2026-10-17 0:25 ` Dan Callaghan [this message]
2026-10-17 0:25 ` [ncursesw-ruby.git] 04/10: fix missing NULL checks for return values Dan Callaghan
2026-10-17 0:25 ` [ncursesw-ruby.git] 05/10: migrate to TypedData_Wrap_Struct() and family Dan Callaghan
2026-10-17 0:25 ` [ncursesw-ruby.git] 06/10: add GC mark function for PANEL to mark userptr Dan Callaghan
2026-10-17 0:25 ` [ncursesw-ruby.git] 07/10: fix add_wch() Dan Callaghan
2026-10-17 0:25 ` [ncursesw-ruby.git] 08/10: fix duplicate definition of pair_content method Dan Callaghan
2026-10-17 0:25 ` [ncursesw-ruby.git] 09/10: ensure definitions are only done once Dan Callaghan
2026-10-17 0:25 ` [ncursesw-ruby.git] 10/10: fix copy-paste mistake in name of FIELDTYPE wrapper Dan Callaghan
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=20261017002458.DD8DA29BBCB@bl2.djc.id.au \
--to=dan@bl2.djc.id.au \
--cc=djc@djc.id.au \
--cc=sup-commits@supmua.dev \
/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