comparison src/normal.c @ 18477:e93cab5d0f0f v8.1.2233

patch 8.1.2233: cannot get the Vim command line arguments Commit: https://github.com/vim/vim/commit/69bf634858a2a75f2984e42b1e4017bc529a040a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 29 04:16:57 2019 +0100 patch 8.1.2233: cannot get the Vim command line arguments Problem: Cannot get the Vim command line arguments. Solution: Add v:argv. (Dmitri Vereshchagin, closes https://github.com/vim/vim/issues/1322)
author Bram Moolenaar <Bram@vim.org>
date Tue, 29 Oct 2019 04:30:05 +0100
parents 709c6b0dc78f
children 63ee3c2b140f
comparison
equal deleted inserted replaced
18476:2eb22798b5a7 18477:e93cab5d0f0f
5984 char_u *ptr = ml_get_curline(); 5984 char_u *ptr = ml_get_curline();
5985 5985
5986 oap->motion_type = MCHAR; 5986 oap->motion_type = MCHAR;
5987 oap->inclusive = FALSE; 5987 oap->inclusive = FALSE;
5988 if (has_mbyte) 5988 if (has_mbyte)
5989 i = mb_string2cells(ptr, STRLEN(ptr)); 5989 i = mb_string2cells(ptr, (int)STRLEN(ptr));
5990 else 5990 else
5991 i = (int)STRLEN(ptr); 5991 i = (int)STRLEN(ptr);
5992 if (cap->count0 > 0 && cap->count0 <= 100) 5992 if (cap->count0 > 0 && cap->count0 <= 100)
5993 coladvance((colnr_T)(i * cap->count0 / 100)); 5993 coladvance((colnr_T)(i * cap->count0 / 100));
5994 else 5994 else