diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/term.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -857,10 +857,10 @@ static int lst_readkey(lua_State *L) { | |||
857 | 857 | ||
858 | 858 | ||
859 | /*** | 859 | /*** |
860 | Get the size of the terminal in columns and rows. | 860 | Get the size of the terminal in rows and columns. |
861 | @function termsize | 861 | @function termsize |
862 | @treturn[1] int the number of columns | ||
863 | @treturn[1] int the number of rows | 862 | @treturn[1] int the number of rows |
863 | @treturn[1] int the number of columns | ||
864 | @treturn[2] nil | 864 | @treturn[2] nil |
865 | @treturn[2] string error message | 865 | @treturn[2] string error message |
866 | */ | 866 | */ |
@@ -885,8 +885,8 @@ static int lst_termsize(lua_State *L) { | |||
885 | rows = ws.ws_row; | 885 | rows = ws.ws_row; |
886 | 886 | ||
887 | #endif | 887 | #endif |
888 | lua_pushinteger(L, columns); | ||
889 | lua_pushinteger(L, rows); | 888 | lua_pushinteger(L, rows); |
889 | lua_pushinteger(L, columns); | ||
890 | return 2; | 890 | return 2; |
891 | } | 891 | } |
892 | 892 | ||