Bram,
the recent changes for folding triggered some warnings on Windows. This
patch fixes it:
diff --git a/src/fold.c b/src/fold.c
index 9606b6819..6fd726d6b 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -3137,9 +3137,11 @@ foldMoveRange(garray_T *gap, linenr_T line1, linenr_T
line2, linenr_T dest)
* order. We have to swap folds in the range [move_end, dest_index) with
* those in the range [move_start, move_end).
*/
- foldReverseOrder(gap, move_start, dest_index - 1);
- foldReverseOrder(gap, move_start, move_start + dest_index - move_end - 1);
- foldReverseOrder(gap, move_start + dest_index - move_end, dest_index - 1);
+ foldReverseOrder(gap, (linenr_T)move_start, (linenr_T)dest_index - 1);
+ foldReverseOrder(gap, (linenr_T)move_start, (linenr_T)(move_start +
+ dest_index - move_end - 1));
+ foldReverseOrder(gap, (linenr_T)(move_start + dest_index - move_end),
+ (linenr_T)(dest_index - 1));
}
#undef fold_end
#undef valid_fold
Best,
Christian
--
Auswanderer:
1. Narr, der ein Land für besser hält als ein anderes.
2. Menschen, die aus einer bekannten in eine unbekannte Misere reisen.
--
--
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].
For more options, visit https://groups.google.com/d/optout.