Add the following functions:
getcharpos() - Get the character position of the cursor or a mark.
setcharpos() - Set the character position of the cursor or a mark.
charcol() - Get the character count of the cursor or a mark in a line.
getcursorcharpos() - Get the character position of the cursor.
setcursorcharpos() - Set the character position of the cursor.
https://github.com/vim/vim/pull/7648
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Merging #7648 (a0c1467) into master (cff40ff) will decrease coverage by
86.50%.
The diff coverage is0.00%.
@@ Coverage Diff @@ ## master #7648 +/- ## =========================================== - Coverage 88.99% 2.48% -86.51% =========================================== Files 148 146 -2 Lines 164050 159057 -4993 =========================================== - Hits 145989 3960 -142029 - Misses 18061 155097 +137036
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-none | ? |
|
| huge-gcc-none | ? |
|
| huge-gcc-testgui | ? |
|
| huge-gcc-unittests | 2.48% <0.00%> (-0.01%) |
⬇️ |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/eval.c | 0.11% <0.00%> (-96.20%) |
⬇️ |
| src/evalfunc.c | 0.00% <0.00%> (-96.00%) |
⬇️ |
| src/tag.c | 0.00% <0.00%> (-93.95%) |
⬇️ |
| src/typval.c | 3.60% <0.00%> (-93.05%) |
⬇️ |
| src/sha256.c | 0.00% <0.00%> (-97.96%) |
⬇️ |
| src/digraph.c | 0.00% <0.00%> (-97.78%) |
⬇️ |
| src/gui_gtk_f.c | 0.00% <0.00%> (-97.54%) |
⬇️ |
| src/crypt_zip.c | 0.00% <0.00%> (-97.06%) |
⬇️ |
| src/libvterm/src/rect.h | 0.00% <0.00%> (-96.56%) |
⬇️ |
| src/debugger.c | 0.00% <0.00%> (-96.38%) |
⬇️ |
| ... and 138 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update cff40ff...559be8e. Read the comment docs.
@yegappan great, #6955 (comment) so now looks solved 'char' column, one day we may can w e b for real char/word.
@brammool @yegappan there is a regression/not-compatible issue:
in the pastcursor(line, col), that 'col' can be a 'string' type, now must be 'int'.
for now, not sure caused by this, or vim9, since vim9 made type check looks strict..
I didn't realize plugins are passing string for this argument. I will create a PR to address this.
yea, some plugins did not treat type very clear, since it's implicit for legacy vim script. waitting... thx. :-)
—
You are receiving this because you commented.
BTW: pls consider if to add some test case in 'test_cursor_func.vim' as well, for now, those all were 'number', but no 'string'.. :-)
—
You are receiving this because you commented.