File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ export async function main(denops: Denops): Promise<void> {
22
22
}
23
23
```
24
24
25
+ ##### Warning
26
+
27
+ In order to make the behavior of Vim and Neovim consistent, ` timer_start() ` is
28
+ used internally not only in Vim but also in Neovim. Note that this means that it
29
+ is not possible to control messages by prepending ` silent ` to them. Developers
30
+ must control the display of messages by not calling this function.
31
+
25
32
### friendlyCall
26
33
27
34
Use ` friendlyCall() ` to call given function and print a friendly error message
Original file line number Diff line number Diff line change @@ -36,14 +36,19 @@ async function ensurePrerequisites(denops: Denops): Promise<string> {
36
36
*
37
37
* Note that it does nothing and return immediately when denops is
38
38
* running as 'test' mode to avoid unwilling test failures.
39
+ *
40
+ * WARNING:
41
+ * In order to make the behavior of Vim and Neovim consistent, `timer_start()`
42
+ * is used internally not only in Vim but also in Neovim. Note that this
43
+ * means that it is not possible to control messages by prepending `silent`
44
+ * to them. Developers must control the display of messages by not calling this
45
+ * function.
39
46
*/
40
47
export function echo ( denops : Denops , message : string ) : Promise < void > {
41
48
if ( denops . meta . mode === "test" ) {
42
49
return Promise . resolve ( ) ;
43
- } else if ( denops . meta . host === "vim" ) {
44
- return echoVim ( denops , message ) ;
45
50
} else {
46
- return denops . cmd ( "redraw | echo message" , { message } ) ;
51
+ return echoVim ( denops , message ) ;
47
52
}
48
53
}
49
54
You can’t perform that action at this time.
0 commit comments