Qi Xiao
|
7054a4f0fe
|
Store a util.Traceback in util.PosError.
|
2016-10-13 23:03:17 +08:00 |
|
Qi Xiao
|
d341668167
|
Clean up run.Main slightly.
|
2016-10-13 22:20:51 +08:00 |
|
Qi Xiao
|
3ab967fc4d
|
Make Evaler.Eval take compiled Op.
|
2016-10-13 22:05:52 +08:00 |
|
Qi Xiao
|
f0f8467fe3
|
Remove dead code.
Dead code was discovered by github.com/remyoudompheng/go-misc/deadcode.
|
2016-10-13 21:58:59 +08:00 |
|
Qi Xiao
|
db1c12cb48
|
EvalCtx.context -> .name
|
2016-10-13 21:51:51 +08:00 |
|
Qi Xiao
|
0c3995f8c0
|
Evaler.Eval now also takes a name.
|
2016-10-13 21:45:50 +08:00 |
|
Qi Xiao
|
1e6ee5c290
|
eval: Evaler.Eval -> .eval, .EvalInteractive -> .Eval.
|
2016-10-13 21:36:55 +08:00 |
|
Qi Xiao
|
93726224bf
|
Don't hang when fd 0 is not tty.
|
2016-10-13 21:33:32 +08:00 |
|
Qi Xiao
|
84ce58494e
|
Fix unclosed pipes.
This fixes #274.
|
2016-10-13 21:09:37 +08:00 |
|
Qi Xiao
|
97e126b1dd
|
Fix a comment.
|
2016-10-13 21:07:42 +08:00 |
|
Qi Xiao
|
1650b823f1
|
Add builtin from-lines.
|
2016-10-13 19:47:50 +08:00 |
|
Qi Xiao
|
4bd4c6e076
|
Fix a comment.
|
2016-10-13 19:42:53 +08:00 |
|
Qi Xiao
|
4fb3cab772
|
into-lines -> to-lines
|
2016-10-13 19:40:36 +08:00 |
|
Qi Xiao
|
fe82fb63a1
|
Test against 0x numbers in numerical builtins.
|
2016-10-13 19:30:32 +08:00 |
|
Qi Xiao
|
39eac3be8f
|
eval: Use strconv.ParseInt in toInt.
|
2016-10-13 19:18:35 +08:00 |
|
Qi Xiao
|
684496677e
|
When parsing numeric arguments, try strconv.ParseInt as well.
|
2016-10-13 19:05:24 +08:00 |
|
huiyiqun
|
a7a38ecbe7
|
remove history builtin, use $le:history instead (#267)
|
2016-10-13 18:44:02 +08:00 |
|
Qi Xiao
|
9892f13493
|
Put edit.buffer in its own file.
|
2016-10-13 18:21:07 +08:00 |
|
Qi Xiao
|
e8535c49a2
|
Don't run tests twice on Travis.
|
2016-10-13 18:14:27 +08:00 |
|
Qi Xiao
|
9ba96689cd
|
Fix test case for wcswidth.
|
2016-10-13 18:09:09 +08:00 |
|
Qi Xiao
|
3e2ecce55c
|
eval: Arrange builtins and add tests.
|
2016-10-13 18:07:08 +08:00 |
|
Qi Xiao
|
f8a50bf455
|
glob: Add tests.
|
2016-10-13 17:12:29 +08:00 |
|
Qi Xiao
|
4d7d8d8911
|
util.RootStar -> FullNames
|
2016-10-13 17:02:42 +08:00 |
|
Qi Xiao
|
1975c742c3
|
Only send coverage on go 1.7 linux.
|
2016-10-13 16:32:00 +08:00 |
|
Qi Xiao
|
5ee2949a29
|
Add a coverage badge.
|
2016-10-13 16:26:33 +08:00 |
|
Qi Xiao
|
03f9f1fc8b
|
Try to upload coverage to coveralls.io
The technique of concatenating multiple coverage files was learned from
the Makefile of github.com/limetext/backend.
|
2016-10-13 16:18:22 +08:00 |
|
Qi Xiao
|
ff9d33eb91
|
Install elvish-stub to the first entry of $GOPATH.
|
2016-10-13 16:03:16 +08:00 |
|
Qi Xiao
|
941ce30c73
|
Fix test case for unpack.
|
2016-10-13 15:49:10 +08:00 |
|
Qi Xiao
|
ec80bc7a80
|
Improve performance of $le:history.
Slicing and iteration now only costs one database query.
|
2016-10-13 15:35:33 +08:00 |
|
Qi Xiao
|
89347dfcde
|
Use only one sqlite connection.
This fixes #263.
|
2016-10-13 15:27:27 +08:00 |
|
Qi Xiao
|
ed30289d4e
|
Change unpack to work on argument instead of input.
This fixes #254.
|
2016-10-13 14:18:59 +08:00 |
|
Qi Xiao
|
7efd489df3
|
splice -> explode
The author just found out that he had a terrible misunderstanding of the
word "splice".
|
2016-10-13 14:12:14 +08:00 |
|
Qi Xiao
|
8cbd9bce59
|
Don't adapt indexer as fn.
This fixes #250.
|
2016-10-13 14:05:36 +08:00 |
|
Qi Xiao
|
f4afd245c1
|
eval: Don't try to patch interrupts.
|
2016-10-13 14:02:04 +08:00 |
|
Qi Xiao
|
66122b3025
|
edit: Only drop ASCII control chars when writing.
This fixes #270.
|
2016-10-13 14:00:52 +08:00 |
|
Qi Xiao
|
5fe031b9b4
|
Don't treat the U+25a0 - U+0x27bf as emojis.
This fixes #271.
|
2016-10-13 13:54:35 +08:00 |
|
Qi Xiao
|
d1b7647925
|
Relay SIG{INT,QUIT} correctly.
This fixes #225 and #265.
|
2016-10-12 23:11:09 +08:00 |
|
Qi Xiao
|
3f987e2867
|
Support completing namespaces.
This fixes #251.
|
2016-10-12 07:55:03 +08:00 |
|
Qi Xiao
|
cd3542d906
|
Show closure address only in (*Closure).Repr.
This fixes #259.
|
2016-10-12 02:03:25 +08:00 |
|
Qi Xiao
|
f07792c6ee
|
Style x in "except x" as variable. Revamp the stylist.
|
2016-10-12 01:31:03 +08:00 |
|
Qi Xiao
|
ebf34e1c64
|
Clarify error message for setting a read-only variable.
This addresses #255.
|
2016-10-12 00:51:46 +08:00 |
|
Qi Xiao
|
22dcc4780f
|
Fix inaccuracy in the scollbar of completion mode.
This fixes #252.
|
2016-10-12 00:34:48 +08:00 |
|
Qi Xiao
|
ec84f39a8b
|
Don't show column number in traceback.
|
2016-10-11 23:01:31 +08:00 |
|
Qi Xiao
|
40dd2ec32a
|
Implement error traceback.
This fixes #207.
|
2016-10-11 22:47:55 +08:00 |
|
Qi Xiao
|
258059b490
|
Make util.Traceback a singly-linked list; fix TracebackError formatting.
|
2016-10-11 22:11:42 +08:00 |
|
Qi Xiao
|
12fb85f014
|
Fix test case.
|
2016-10-11 21:48:36 +08:00 |
|
Qi Xiao
|
fc9a56f350
|
In (*completion).List, guard against perLine == 0.
This happens when there are candidates whose texts are very long.
|
2016-10-11 21:43:40 +08:00 |
|
Qi Xiao
|
c643b6d514
|
Display one traceback entry correctly.
The traceback displayed is the innermost frame.
|
2016-10-11 21:37:27 +08:00 |
|
Qi Xiao
|
5ef652c414
|
Enter in nav mode now inserts selected and quit nav mode.
|
2016-10-11 21:26:04 +08:00 |
|
Qi Xiao
|
4266dee6d9
|
Introduce util.TracebackError and use it in eval.
There is little functionality change ATM though; only one entry of
traceback is shown.
|
2016-10-11 21:12:11 +08:00 |
|