Commit graph

15 commits

Author SHA1 Message Date
Travis Shirk
5cda563f58 Fixes based on scopatz' feedback. 2015-11-29 16:50:20 -07:00
Travis Shirk
2920d83fc6 Debug cruft 2015-11-27 13:22:12 -07:00
Travis Shirk
bdeb690fb0 Tests for HISTCONTROL 2015-11-27 13:17:57 -07:00
Kurtis Rader
e88c863d10 Add a uniform character encoding to all files.
I wouldn't normally do something like this but issue #487 brought to
my attention the fact that too many of the python modules don't have
an encoding comment and of those that do there is a lot of pointless
inconsistency in the style of the comment.
2015-11-16 14:10:40 -08:00
Kurtis Rader
7ccfb171aa Make history module mostly lint clean.
This fixes most of the lint errors in the history code. It also fixes
two bugs that were found by pylint due to misnamed variables. This patch
does not make any functional changes. I'll fix the remaining lint errors
in a subsequent patch when I tackle cross-module issues.
2015-11-14 19:56:26 -08:00
Kurtis Rader
4be4509a2e Modify the code to comply with the alias API. 2015-11-06 17:38:08 -08:00
Kurtis Rader
5cc784a721 Correct function names to follow PEP8. 2015-11-06 15:12:33 -08:00
Kurtis Rader
a14a9a6f4d Correct handling of negative history indexes.
Fix the handling of negative history indexes where a slice specification
is involved. Negative indexes not part of a slice specification worked by
accident because the argparse module (see section "16.4.4.3 Arguments
containing --") treats such values as positional arguments (which is a
misfeature of argparse in my opinion). I've also added unit tests for
"history show" to keep this from being broken in the future.
2015-11-05 19:35:41 -08:00
Anthony Scopatz
70e87e37cf added lazy command fields to history 2015-08-16 21:41:02 -04:00
Anthony Scopatz
b456193a33 windows newline issue fix, hopefully 2015-08-12 01:04:03 -04:00
Anthony Scopatz
201aacdda6 seek from 0 2015-08-12 00:33:17 -04:00
Anthony Scopatz
fc0d00c774 try closing lj 2015-08-11 23:30:50 -04:00
Anthony Scopatz
d6381e1897 some test updates 2015-08-11 23:05:14 -04:00
Anthony Scopatz
158173889f win fail test 2015-08-11 20:20:20 -04:00
Anthony Scopatz
f8a5dbcda3 history testing 2015-08-11 20:16:02 -04:00