aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-05-07 21:11:36 +0200
committerJurica Bradaric <jbradaric@gmail.com>2016-05-08 00:23:42 +0200
commit2b238814d7c72783db2d541ef642ffd481eb0745 (patch)
tree98971fd0dd47b7b68621b3b58f0b9cb5000d8865 /src/nvim/normal.c
parentb02ba11cb156e094d3f6f12fc7c79a983b6df68d (diff)
downloadrneovim-2b238814d7c72783db2d541ef642ffd481eb0745.tar.gz
rneovim-2b238814d7c72783db2d541ef642ffd481eb0745.tar.bz2
rneovim-2b238814d7c72783db2d541ef642ffd481eb0745.zip
vim-patch:7.4.1042
Problem: g-CTRL-G shows the word count, but there is no way to get the word count in a script. Solution: Add the wordcount() function. (Christian Brabandt) https://github.com/vim/vim/commit/ed767a2073ef150971b0439a58e7ee582af6984e
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 57638ee388..f5607f3676 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -6737,16 +6737,12 @@ static void nv_g_cmd(cmdarg_T *cap)
clearopbeep(oap);
break;
- /*
- * "g CTRL-G": display info about cursor position
- */
+ // "g CTRL-G": display info about cursor position
case Ctrl_G:
- cursor_pos_info();
+ cursor_pos_info(NULL);
break;
- /*
- * "gi": start Insert at the last position.
- */
+ // "gi": start Insert at the last position.
case 'i':
if (curbuf->b_last_insert.mark.lnum != 0) {
curwin->w_cursor = curbuf->b_last_insert.mark;