comparison src/ex_getln.c @ 28809:d0241e74bfdb v8.2.4928

patch 8.2.4928: various white space and cosmetic mistakes Commit: https://github.com/vim/vim/commit/6ed545e79735f23ff8e650bc2f0967e5a0baedc9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 9 20:09:23 2022 +0100 patch 8.2.4928: various white space and cosmetic mistakes Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
author Bram Moolenaar <Bram@vim.org>
date Mon, 09 May 2022 21:15:04 +0200
parents d770568e6c98
children f3f45218f923
comparison
equal deleted inserted replaced
28808:0f0fed554cdc 28809:d0241e74bfdb
108 static int 108 static int
109 empty_pattern_magic(char_u *p, size_t len, magic_T magic_val) 109 empty_pattern_magic(char_u *p, size_t len, magic_T magic_val)
110 { 110 {
111 // remove trailing \v and the like 111 // remove trailing \v and the like
112 while (len >= 2 && p[len - 2] == '\\' 112 while (len >= 2 && p[len - 2] == '\\'
113 && vim_strchr((char_u *)"mMvVcCZ", p[len - 1]) != NULL) 113 && vim_strchr((char_u *)"mMvVcCZ", p[len - 1]) != NULL)
114 len -= 2; 114 len -= 2;
115 115
116 // true, if the pattern is empty, or the pattern ends with \| and magic is 116 // true, if the pattern is empty, or the pattern ends with \| and magic is
117 // set (or it ends with '|' and very magic is set) 117 // set (or it ends with '|' and very magic is set)
118 return len == 0 || (len > 1 118 return len == 0 || (len > 1