Skip to content

Commit

Permalink
(#354) box.lua: history completion did not start with C-X h
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Jan 31, 2019
1 parent e270332 commit d28e3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nyagos.d/box.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ nyagos.key.C_x = function(this)
local result
if c == 'r' or ch == bit32.band(string.byte('r'),0x1F) then
result = nyagos.box(share.__dump_history())
elseif ch == 'h' or ch == bit32.band(string.byte('h') , 0x1F) then
elseif c == 'h' or ch == bit32.band(string.byte('h') , 0x1F) then
result = nyagos.eval('cd --history | box')
if string.find(result,' ') then
result = '"'..result..'"'
Expand Down

0 comments on commit d28e3ec

Please sign in to comment.