patch 9.1.2091: Ruby integration does not work correctly
Commit:
https://github.com/vim/vim/commit/3b67993a64ba1e74da9e2b456228d875d4624b6f
Author: Christian Brabandt <[email protected]>
Date: Sun Jan 18 14:03:41 2026 +0000
patch 9.1.2091: Ruby integration does not work correctly
Problem: Ruby headers define HAVE_FSYNC, which leaks into Vim sources
on Windows and changes conditional compilation of buf_T. This
causes struct layout mismatches in if_ruby.c and results in a
different offset for the b_p_bl property, making Vim::Buffer
access fail (after v9.1.2024)
Solution: Undefine HAVE_FSYNC after including the Ruby headers.
related: #19019
closes: #19206
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 60ca11188..b5b0079ec 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -179,6 +179,9 @@
#ifdef HAVE_DUP
# undef HAVE_DUP
#endif
+#ifdef HAVE_FSYNC
+# undef HAVE_FSYNC
+#endif
// Avoid redefining TRUE/FALSE in vterm.h.
#ifdef TRUE
diff --git a/src/version.c b/src/version.c
index ee2910062..b85579b95 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2091,
/**/
2090,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vhZPU-001zAg-6Z%40256bit.org.