use 'input()' to get user's input so that we can support more options.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include-fixer/tool/clang-include-fixer.py | ||
---|---|---|
53 ↗ | (On Diff #59707) | We can handle the , a, q cases after res=vim.eval(to_eval) instead of handling them in exception block. They don't look like errors in my opinion. |
132 ↗ | (On Diff #59707) | For error message, it might be better to print to stderr print >> sys.stderr, error.message? |
Comment Actions
Nice! Can we somehow make the user not press enter after putting in the number? getchar() maybe?
Comment Actions
As per our offline discussion, getchar() does not work with options with more than 2 digits (e.g. index number > 9). I'll keep it as it is now until we come up with a better solution.