Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow quitting with double Ctrl+D #45

Merged
merged 1 commit into from
Dec 19, 2015
Merged

Allow quitting with double Ctrl+D #45

merged 1 commit into from
Dec 19, 2015

Commits on Dec 7, 2015

  1. Allow quitting with double Ctrl+D

    I'm used to this feature from IPython/Jupyter and since here you also quit on empty string, I see no harm?
    
    Without this change, doing double Ctrl+D would get:
    
    ```
    th> Do you really want to exit ([y]/n)? /home.local/lucas/inst/src/torch/install/bin/luajit: ...ucas/inst/src/torch/install/share/lua/5.1/trepl/init.lua:587: attempt to index local 'line' (a nil value)
    stack traceback:
    	...ucas/inst/src/torch/install/share/lua/5.1/trepl/init.lua:587: in function 'repl'
    	.../src/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
    	[C]: at 0x00406670
    ```
    lucasb-eyer committed Dec 7, 2015
    Configuration menu
    Copy the full SHA
    3c6b32c View commit details
    Browse the repository at this point in the history