0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

updated for version 7.1-232

This commit is contained in:
Bram Moolenaar
2008-01-18 10:40:55 +00:00
parent 21b17e7741
commit b3c7098365
3 changed files with 4 additions and 2 deletions

View File

@@ -1217,7 +1217,7 @@ nb_partialremove(linenr_T lnum, colnr_T first, colnr_T last)
oldtext = ml_get(lnum);
oldlen = STRLEN(oldtext);
if (first >= oldlen || oldlen == 0) /* just in case */
if (first >= (colnr_T)oldlen || oldlen == 0) /* just in case */
return;
if (lastbyte >= oldlen)
lastbyte = oldlen - 1;