To:
[email protected]
Subject: patch 5.5a.1 (adjusted version)
Fcc: outbox
From: Bram Moolenaar <
[email protected]>
------------
[This version has another diff format for version.c, which should really work
now...]
A nice simple patch to try out the new patch numbering. If you have problems
including this patch, especially the bit for version.c, let me know.
Patch 5.5a.1
Problem: ":let @* = @:" did not work. The text was not put on the
I clipboard. (Fisher)
Solution: Own the clipboard and put the text on it.
Files: src/ops.c
*** ../vim-5.5a/src/ops.c Mon Aug 30 10:00:53 1999
--- src/ops.c Mon Aug 30 10:29:50 1999
***************
*** 4331,4336 ****
--- 4331,4348 ----
str_to_reg(y_current,
(len > 0 && (str[len - 1] == '\n' || str[len -1] == '\r'))
? MLINE : MCHAR, str, len);
+
+ #ifdef USE_CLIPBOARD
+ /*
+ * If we are writing to the clipboard register, send result to clipboard.
+ */
+ if (y_current == &(y_regs[CLIPBOARD_REGISTER]) && clipboard.available)
+ {
+ clip_own_selection();
+ clip_gen_set_selection();
+ }
+ #endif
+
y_previous = old_y_previous;
y_current = old_y_current;
}
*** ../vim-5.5a/src/version.c Mon Aug 30 10:00:40 1999
--- src/version.c Mon Aug 30 10:34:46 1999
***************
*** 420,420 ****
--- 420,421 ----
{ /* Add new patch number below this line */
+ 1,
--
### Hiroshima 45, Chernobyl 86, Windows 95 ###
--/-/---- Bram Moolenaar ----
[email protected] ----
[email protected] ---\-\--
\ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /