diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-03-02 13:56:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 13:56:27 +0100 |
commit | d22fd58629c6aa93d808d74a7e6dee79e3246ae0 (patch) | |
tree | cda0f3a59a076bae4c1cf4f6e51328eee560cf1e /src/nvim/normal.c | |
parent | e35ff7371f4a61621587744a7620200380abbbe9 (diff) | |
parent | 6f261d23942feb22e5aa2881bc645bce5c5ce946 (diff) | |
download | rneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.tar.gz rneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.tar.bz2 rneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.zip |
Merge pull request #11716 from teto/folds_auto_backup
[RFC] foldcolumn autowidth
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index c69b10f99a..6434bd00d8 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -4458,16 +4458,16 @@ dozet: case 'r': curwin->w_p_fdl += cap->count1; { - int d = getDeepestNesting(); + int d = getDeepestNesting(curwin); if (curwin->w_p_fdl >= d) { curwin->w_p_fdl = d; } } break; - /* "zR": open all folds */ - case 'R': curwin->w_p_fdl = getDeepestNesting(); - old_fdl = -1; /* force an update */ + case 'R': // "zR": open all folds + curwin->w_p_fdl = getDeepestNesting(curwin); + old_fdl = -1; // force an update break; case 'j': /* "zj" move to next fold downwards */ |