diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-07-03 13:17:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 13:17:37 +0200 |
commit | 5f442e1a4a831ed2eb70d5c2dd66c47b0b8aa7e1 (patch) | |
tree | 2c5ae2854f3688497b05f80bd0302feb9162a308 /src/nvim/cmdexpand.c | |
parent | f771d6247147b393238fe57065a96fb5e9635358 (diff) | |
parent | fcf3519c65a2d6736de437f686e788684a6c8564 (diff) | |
download | rneovim-5f442e1a4a831ed2eb70d5c2dd66c47b0b8aa7e1.tar.gz rneovim-5f442e1a4a831ed2eb70d5c2dd66c47b0b8aa7e1.tar.bz2 rneovim-5f442e1a4a831ed2eb70d5c2dd66c47b0b8aa7e1.zip |
Merge pull request #23167 from dundargoc/refactor/long
refactor: remove long
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index b2835cae0f..47c69ed6f8 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -483,13 +483,13 @@ static void redraw_wildmenu(expand_T *xp, int num_matches, char **matches, int m clen += 2; } // jumping right, put match at the left - if ((long)clen > Columns) { + if (clen > Columns) { first_match = match; // if showing the last match, we can add some on the left clen = 2; for (i = match; i < num_matches; i++) { clen += wildmenu_match_len(xp, SHOW_MATCH(i)) + 2; - if ((long)clen >= Columns) { + if (clen >= Columns) { break; } } @@ -501,7 +501,7 @@ static void redraw_wildmenu(expand_T *xp, int num_matches, char **matches, int m if (add_left) { while (first_match > 0) { clen += wildmenu_match_len(xp, SHOW_MATCH(first_match - 1)) + 2; - if ((long)clen >= Columns) { + if (clen >= Columns) { break; } first_match--; |