Skip to content
This repository
Browse code

after pull

  • Loading branch information...
commit 2247df39581ee2b49ffe10dcce2c0e8eb9735d2a 2 parents f66f48f + c85e17e
Evgeny Ratnikov authored
2  ChangeLog
... ... @@ -1,4 +1,6 @@
1 1 fixed bug with hideTabbar and hideSingleTab
  2 + tabs indexes start with 1 (Lua-indexing)
  3 + fixed desktop file
2 4 added Swedish translation (by Tomas Fasth)
3 5 version 2.9.4
4 6 fix hyphen-used-as-minus-sign in manpage (by Thomas Koch)
14 doc/termit.desktop
... ... @@ -1,12 +1,14 @@
1 1 [Desktop Entry]
2 2 Name=Termit
3   -Name[ru]=Termit
4   -Type=Application
5   -Exec=termit
6   -Categories=Utility;TerminalEmulator;GTK
7   -Comment=Lightweight terminal emulator
8   -Comment[ru]=Эмулятор терминала
9 3 GenericName=Terminal emulator
10 4 GenericName[ru]=Эмулятор терминала
  5 +Comment=Lightweight terminal emulator
  6 +Comment[ru]=Легкий эмулятор терминала
  7 +TryExec=termit
  8 +Exec=termit
  9 +Icon=utilities-terminal
  10 +Type=Application
  11 +Categories=GTK;System;TerminalEmulator;
11 12 Terminal=false
  13 +Keywords=Run;
12 14
2  src/lua_api.c
@@ -437,7 +437,7 @@ static int termit_lua_currentTab(lua_State* ls)
437 437
438 438 static int termit_lua_currentTabIndex(lua_State* ls)
439 439 {
440   - lua_pushinteger(ls, termit_get_current_tab_index());
  440 + lua_pushinteger(ls, termit_get_current_tab_index() + 1);
441 441 return 1;
442 442 }
443 443
2  src/lua_conf.c
@@ -390,7 +390,7 @@ static int termit_lua_tabs_index(lua_State* ls)
390 390 }
391 391 int tab_index = lua_tointeger(ls, -1);
392 392 TRACE("tab_index:%d", tab_index);
393   - return termit_lua_fill_tab(tab_index, ls);
  393 + return termit_lua_fill_tab(tab_index - 1, ls);
394 394 }
395 395
396 396 static int termit_lua_tabs_newindex(lua_State* ls)

0 comments on commit 2247df3

Please sign in to comment.
Something went wrong with that request. Please try again.