mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
docs: various clarifications (#24876)
This commit is contained in:
@@ -11824,15 +11824,15 @@ M.funcs = {
|
||||
The result is a Number representing the type of {expr}.
|
||||
Instead of using the number directly, it is better to use the
|
||||
v:t_ variable that has the value:
|
||||
Number: 0 (|v:t_number|)
|
||||
String: 1 (|v:t_string|)
|
||||
Funcref: 2 (|v:t_func|)
|
||||
List: 3 (|v:t_list|)
|
||||
Dictionary: 4 (|v:t_dict|)
|
||||
Float: 5 (|v:t_float|)
|
||||
Boolean: 6 (|v:true| and |v:false|)
|
||||
Null: 7 (|v:null|)
|
||||
Blob: 10 (|v:t_blob|)
|
||||
Number: 0 |v:t_number|
|
||||
String: 1 |v:t_string|
|
||||
Funcref: 2 |v:t_func|
|
||||
List: 3 |v:t_list|
|
||||
Dictionary: 4 |v:t_dict|
|
||||
Float: 5 |v:t_float|
|
||||
Boolean: 6 |v:t_bool| (|v:false| and |v:true|)
|
||||
Null: 7 (|v:null|)
|
||||
Blob: 10 |v:t_blob|
|
||||
For backward compatibility, this method can be used: >vim
|
||||
if type(myvar) == type(0) | endif
|
||||
if type(myvar) == type("") | endif
|
||||
|
@@ -1411,7 +1411,6 @@ static int normal_check(VimState *state)
|
||||
}
|
||||
quit_more = false;
|
||||
|
||||
// it's not safe unless normal_check_safe_state() is called
|
||||
state_no_longer_safe(NULL);
|
||||
|
||||
// If skip redraw is set (for ":" in wait_return()), don't redraw now.
|
||||
|
@@ -5500,8 +5500,9 @@ return {
|
||||
defaults = { if_true = 'ver:3,hor:6' },
|
||||
desc = [=[
|
||||
This option controls the number of lines / columns to scroll by when
|
||||
scrolling with a mouse. The option is a comma separated list of parts.
|
||||
Each part consists of a direction and a count as follows:
|
||||
scrolling with a mouse wheel (|scroll-mouse-wheel|). The option is
|
||||
a comma-separated list. Each part consists of a direction and a count
|
||||
as follows:
|
||||
direction:count,direction:count
|
||||
Direction is one of either "hor" or "ver". "hor" controls horizontal
|
||||
scrolling and "ver" controls vertical scrolling. Count sets the amount
|
||||
|
@@ -726,7 +726,7 @@ void getvcols(win_T *wp, pos_T *pos1, pos_T *pos2, colnr_T *left, colnr_T *right
|
||||
/// Functions calculating vertical size of text when displayed inside a window.
|
||||
/// Calls horizontal size functions defined above.
|
||||
|
||||
/// Check the there may be filler inlines anywhere in window "wp"
|
||||
/// Check if there may be filler inlines anywhere in window "wp".
|
||||
bool win_may_fill(win_T *wp)
|
||||
{
|
||||
return (wp->w_p_diff && diffopt_filler()) || wp->w_buffer->b_virt_line_blocks;
|
||||
|
Reference in New Issue
Block a user