cmds: allow integers values for `line_numbers` in Edit
commit51c583c01fc294df3270173bf5d492e74f989471
authorDavid Aguilar <davvid@gmail.com>
Fri, 19 Oct 2018 04:54:49 +0000 (18 21:54 -0700)
committerDavid Aguilar <davvid@gmail.com>
Fri, 19 Oct 2018 04:54:49 +0000 (18 21:54 -0700)
tree5a0814828e9457793b64fb5cd5e40455553e63b0
parent9d665ec0bd355bba1fcc50bac34cf7d125d007f7
cmds: allow integers values for `line_numbers` in Edit

The Edit code that handles moving the editor to a line number assumed
that it was always going to be given a string value for `line_number`.

Allow integers, which will allow callers to use the Edit command with
integer values for `line_number`.

Related-to: #898
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/cmds.py