##// END OF EJS Templates
Fix #4777 and #7887...
Fix #4777 and #7887 The function in charge of actually converting cursor offset to CodeMirror line number and character number was actually crashing when the cursor was at the last character (loop until undefined, then access length of variable, which is undefined). This was hiding a bug in which when you would completer to a single completion pressing tab after as-you-type filtering, the completion would be completed twice. The logic that was supposed to detect whether or not all completions had a common prefix was actually faulty as the common prefix used to be a string but was then changed to an object. Hence the logic to check whether or not there was actually a common prefix was always true, even for empty string, leading to the deletion of the line (replace by '') in some cases.

File last commit:

r19868:38dea696
r20538:ae7f6d6a
Show More
.travis.yml
38 lines | 1.3 KiB | text/x-yaml | YamlLexer
# http://travis-ci.org/#!/ipython/ipython
language: python
python:
- 3.4
- 2.7
sudo: false
env:
global:
- PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
matrix:
- GROUP=
- GROUP=js/base
- GROUP=js/notebook
- GROUP=js/services
- GROUP=js/tree
- GROUP=js/widgets
before_install:
- 'if [[ $GROUP != js* ]]; then wget https://7de4dfdec62155b49b44-d726a73613a1989d29b147f20996e7c1.ssl.cf2.rackcdn.com/pandoc-1.12.3-linux-debian-x86_64.zip && unzip pandoc-1.12.3-linux-debian-x86_64.zip; fi'
- 'if [[ $GROUP == js* ]]; then wget https://7de4dfdec62155b49b44-d726a73613a1989d29b147f20996e7c1.ssl.cf2.rackcdn.com/mathjax.zip; fi'
- 'if [[ $GROUP == js* ]]; then npm install -g casperjs; fi'
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
- 'if [[ $GROUP != js* ]]; then COVERAGE="--coverage xml"; fi'
install:
- pip install -f travis-wheels/wheelhouse file://$PWD#egg=ipython[all] coveralls
before_script:
- 'if [[ $GROUP == js* ]]; then python -m IPython.external.mathjax mathjax.zip; fi'
script:
- cd /tmp && iptest $GROUP $COVERAGE && cd -
matrix:
include:
- python: 3.3
env: GROUP=
after_success:
- cp /tmp/ipy_coverage.xml ./
- cp /tmp/.coverage ./
- coveralls