A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/7fd1182c62d6e969ac15b3891bfcc4ff480d6953 below:

bounds check for underdot · neovim/neovim@7fd1182 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -11410,14 +11410,14 @@ static void f_synIDattr(typval_T *argvars, typval_T *rettv, FunPtr fptr)

11410 11410

}

11411 11411

break;

11412 11412

case 'u': {

11413 -

int len = STRLEN(what);

11413 +

const size_t len = STRLEN(what);

11414 11414

if (len <= 5 || (TOLOWER_ASC(what[5]) == 'l' && len <= 9)) { // underline

11415 11415

p = highlight_has_attr(id, HL_UNDERCURL, modec);

11416 11416

} else if (TOLOWER_ASC(what[5]) == 'c') { // undercurl

11417 11417

p = highlight_has_attr(id, HL_UNDERCURL, modec);

11418 11418

} else if (len > 9 && TOLOWER_ASC(what[9]) == 'l') { // underlineline

11419 11419

p = highlight_has_attr(id, HL_UNDERLINELINE, modec);

11420 -

} else if (len > 5 && TOLOWER_ASC(what[6]) == 'o') { // underdot

11420 +

} else if (len > 6 && TOLOWER_ASC(what[6]) == 'o') { // underdot

11421 11421

p = highlight_has_attr(id, HL_UNDERDOT, modec);

11422 11422

} else { // underdash

11423 11423

p = highlight_has_attr(id, HL_UNDERDASH, modec);

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4