diff src/macros.h @ 5905:662ae48e7e24 v7.4.295

updated for version 7.4.295 Problem: Various typos, bad white space and unclear comments. Solution: Fix typos. Improve white space. Update comments.
author Bram Moolenaar <bram@vim.org>
date Tue, 13 May 2014 20:19:58 +0200
parents 84a8d1ba81c3
children 7b28dc1d756e
line wrap: on
line diff
--- a/src/macros.h
+++ b/src/macros.h
@@ -264,7 +264,7 @@
 # define mb_ptr_adv(p)	    p += has_mbyte ? (*mb_ptr2len)(p) : 1
 /* Advance multi-byte pointer, do not skip over composing chars. */
 # define mb_cptr_adv(p)	    p += enc_utf8 ? utf_ptr2len(p) : has_mbyte ? (*mb_ptr2len)(p) : 1
-/* Backup multi-byte pointer. */
+/* Backup multi-byte pointer. Only use with "p" > "s" ! */
 # define mb_ptr_back(s, p)  p -= has_mbyte ? ((*mb_head_off)(s, p - 1) + 1) : 1
 /* get length of multi-byte char, not including composing chars */
 # define mb_cptr2len(p)	    (enc_utf8 ? utf_ptr2len(p) : (*mb_ptr2len)(p))