From 21f0f7bca5a13fe847478ef27dc26bced9b3f3d1 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 18 Jun 2019 00:00:51 +0200 Subject: paste: WIP #4448 --- runtime/doc/eval.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/doc/eval.txt') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 5d30ac15b3..2ec72f7717 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4215,11 +4215,11 @@ getchar([expr]) *getchar()* :endfunction < You may also receive synthetic characters, such as - ||. Often you will want to ignore this and get + ||. Often you will want to ignore this and get another character: > :function GetKey() : let c = getchar() - : while c == "\" + : while c == "\" : let c = getchar() : endwhile : return c -- cgit From 0221a9220a2ec0691a7139c8362aba80d1f3b8ee Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 20 Aug 2019 19:41:45 +0200 Subject: paste: edge-case: handle EOL at end-of-buffer This is "readfile()-style", see also ":help channel-lines". --- runtime/doc/eval.txt | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'runtime/doc/eval.txt') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 2ec72f7717..897b5df072 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4214,17 +4214,6 @@ getchar([expr]) *getchar()* : endwhile :endfunction < - You may also receive synthetic characters, such as - ||. Often you will want to ignore this and get - another character: > - :function GetKey() - : let c = getchar() - : while c == "\" - : let c = getchar() - : endwhile - : return c - :endfunction - getcharmod() *getcharmod()* The result is a Number which is the state of the modifiers for the last obtained character with getchar() or in another way. -- cgit