Mercurial > vim
comparison runtime/doc/eval.txt @ 16133:eb087f8a26a8 v8.1.1071
patch 8.1.1071: cannot get composing characters from the screen
commit https://github.com/vim/vim/commit/2912abb3a2fd72074e3901c8ae1d4a77ce764675
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 29 14:16:42 2019 +0100
patch 8.1.1071: cannot get composing characters from the screen
Problem: Cannot get composing characters from the screen.
Solution: Add screenchars() and screenstring(). (partly by Ozaki Kiichi,
closes #4059)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 29 Mar 2019 14:30:05 +0100 |
parents | 0375e54f0adc |
children | aef0f93d3eba |
comparison
equal
deleted
inserted
replaced
16132:e6681a9165bf | 16133:eb087f8a26a8 |
---|---|
2523 reverse({list}) List reverse {list} in-place | 2523 reverse({list}) List reverse {list} in-place |
2524 round({expr}) Float round off {expr} | 2524 round({expr}) Float round off {expr} |
2525 rubyeval({expr}) any evaluate |Ruby| expression | 2525 rubyeval({expr}) any evaluate |Ruby| expression |
2526 screenattr({row}, {col}) Number attribute at screen position | 2526 screenattr({row}, {col}) Number attribute at screen position |
2527 screenchar({row}, {col}) Number character at screen position | 2527 screenchar({row}, {col}) Number character at screen position |
2528 screenchars({row}, {col}) List List of characters at screen position | |
2528 screencol() Number current cursor column | 2529 screencol() Number current cursor column |
2529 screenrow() Number current cursor row | 2530 screenrow() Number current cursor row |
2531 screenstring({row}, {col}) String characters at screen position | |
2530 search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) | 2532 search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) |
2531 Number search for {pattern} | 2533 Number search for {pattern} |
2532 searchdecl({name} [, {global} [, {thisblock}]]) | 2534 searchdecl({name} [, {global} [, {thisblock}]]) |
2533 Number search for variable declaration | 2535 Number search for variable declaration |
2534 searchpair({start}, {middle}, {end} [, {flags} [, {skip} [...]]]) | 2536 searchpair({start}, {middle}, {end} [, {flags} [, {skip} [...]]]) |
7508 The character excludes composing characters. For double-byte | 7510 The character excludes composing characters. For double-byte |
7509 encodings it may only be the first byte. | 7511 encodings it may only be the first byte. |
7510 This is mainly to be used for testing. | 7512 This is mainly to be used for testing. |
7511 Returns -1 when row or col is out of range. | 7513 Returns -1 when row or col is out of range. |
7512 | 7514 |
7515 screenchars({row}, {col}) *screenchars()* | |
7516 The result is a List of Numbers. The first number is the same | |
7517 as what |screenchar()| returns. Further numbers are | |
7518 composing characters on top of the base character. | |
7519 This is mainly to be used for testing. | |
7520 Returns an empty List when row or col is out of range. | |
7521 | |
7513 screencol() *screencol()* | 7522 screencol() *screencol()* |
7514 The result is a Number, which is the current screen column of | 7523 The result is a Number, which is the current screen column of |
7515 the cursor. The leftmost column has number 1. | 7524 the cursor. The leftmost column has number 1. |
7516 This function is mainly used for testing. | 7525 This function is mainly used for testing. |
7517 | 7526 |
7528 cursor. The top line has number one. | 7537 cursor. The top line has number one. |
7529 This function is mainly used for testing. | 7538 This function is mainly used for testing. |
7530 Alternatively you can use |winline()|. | 7539 Alternatively you can use |winline()|. |
7531 | 7540 |
7532 Note: Same restrictions as with |screencol()|. | 7541 Note: Same restrictions as with |screencol()|. |
7542 | |
7543 screenstring({row}, {col}) *screenstring()* | |
7544 The result is a String that contains the base character and | |
7545 any composing characters at position [row, col] on the screen. | |
7546 This is like |screenchars()| but returning a String with the | |
7547 characters. | |
7548 This is mainly to be used for testing. | |
7549 Returns an empty String when row or col is out of range. | |
7533 | 7550 |
7534 search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* | 7551 search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* |
7535 Search for regexp pattern {pattern}. The search starts at the | 7552 Search for regexp pattern {pattern}. The search starts at the |
7536 cursor position (you can use |cursor()| to set it). | 7553 cursor position (you can use |cursor()| to set it). |
7537 | 7554 |