diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-15 22:21:31 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-16 12:52:04 +0200 |
| commit | 7418386e7b0528b7d67847d84333e9f149dc8a58 (patch) | |
| tree | 289ed3832677560d7184508b481e13c0fa23e3ab /vis-lua.c | |
| parent | 5897d00aa81181172153af58234ada6396c6e01e (diff) | |
| download | vis-7418386e7b0528b7d67847d84333e9f149dc8a58.tar.gz vis-7418386e7b0528b7d67847d84333e9f149dc8a58.tar.xz | |
vis-lua: add cursor.number property
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -580,6 +580,11 @@ static int window_cursor_index(lua_State *L) { lua_pushunsigned(L, view_cursors_col(cur)); return 1; } + + if (strcmp(key, "number") == 0) { + lua_pushunsigned(L, view_cursors_number(cur)+1); + return 1; + } } return index_common(L); |
