This commit is contained in:
parent
3dda99014c
commit
a5ce055762
12
gemini.tlv
12
gemini.tlv
|
@ -314,18 +314,14 @@
|
||||||
> local screen_rows, screen_cols = window:getmaxyx()
|
> local screen_rows, screen_cols = window:getmaxyx()
|
||||||
> if key == 258 then -- down arrow
|
> if key == 258 then -- down arrow
|
||||||
> next_link()
|
> next_link()
|
||||||
> end
|
> elseif key == 259 then -- up arrow
|
||||||
> if key == 259 then -- up arrow
|
|
||||||
> previous_link()
|
> previous_link()
|
||||||
> end
|
> elseif key == 21 then -- ctrl-u
|
||||||
> if key == 21 then -- ctrl-u
|
|
||||||
> state.source = not state.source
|
> state.source = not state.source
|
||||||
> end
|
> elseif key == 10 then -- enter
|
||||||
> if key == 10 then -- enter
|
|
||||||
> local s, e, new_url = string.find(state.lines[state.highlight_index], '=>%s*(%S*)')
|
> local s, e, new_url = string.find(state.lines[state.highlight_index], '=>%s*(%S*)')
|
||||||
> gemini_get(url.absolute(state.url, new_url))
|
> gemini_get(url.absolute(state.url, new_url))
|
||||||
> end
|
> elseif key == 7 then -- ctrl-g
|
||||||
> if key == 7 then -- ctrl-g
|
|
||||||
> window:mvaddstr(screen_rows-2, 0, '')
|
> window:mvaddstr(screen_rows-2, 0, '')
|
||||||
> window:clrtoeol()
|
> window:clrtoeol()
|
||||||
> window:mvaddstr(screen_rows-1, 0, '')
|
> window:mvaddstr(screen_rows-1, 0, '')
|
||||||
|
|
Loading…
Reference in New Issue