Skip to content

Commit

Permalink
Fix z- for odd widths
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw authored and anjakefala committed Nov 24, 2017
1 parent 79f2e2d commit f87466c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/vdtui.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __setitem__(self, k, v): # options[k] = v
globalCommand('z_', 'cursorCol.width = int(input("set width= ", value=cursorCol.width))', 'set current column width to given value', 'width-curcol-input')

globalCommand('-', 'cursorCol.width = 0', 'hide current column', 'width-curcol-zero')
globalCommand('z-', 'cursorCol.width /= 2', 'reduce column width by half', 'width-curcol-half')
globalCommand('z-', 'cursorCol.width = cursorCol.width//2', 'reduce column width by half', 'width-curcol-half')
globalCommand('!', 'toggleKeyColumn(cursorColIndex); cursorRight(+1)', 'pin current column on the left as a key column', 'toggle-curcol-key')
globalCommand('~', 'cursorCol.type = str', 'set type of current column to str', 'type-curcol-str')
globalCommand('@', 'cursorCol.type = date', 'set type of current column to date', 'type-curcol-date')
Expand Down

0 comments on commit f87466c

Please sign in to comment.