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

fixed autocapitalize cursor issue #174

Merged
merged 1 commit into from Feb 20, 2017
Merged

fixed autocapitalize cursor issue #174

merged 1 commit into from Feb 20, 2017

Conversation

m-kharbat
Copy link
Contributor

@m-kharbat m-kharbat commented Feb 17, 2017

if self.last_changed and self.is_prefix(current_line.lower(), self.last_changed.lower()):
diff = len(self.last_changed) - len(current_line)
current_line = self.last_changed + current_line[diff:]

new_line = re.sub(self.KEYWORD_RE, self.keyword_replacer, current_line)
new_line = re.sub(self.KEYWORD_RE, self.keyword_replacer, \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\ not required when having function arguments separated by newlines
same below

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, I think all arguments would fit into a single line

CHANGES.txt Outdated
@@ -5,6 +5,9 @@ Changes for crash
Unreleased
==========

- Fixed issue that caused the autocapitalization to move the cursor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we must not forget to remove that line when doing a release

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should I remove it from the changelog ?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 543cd94 on meri/fix-cursor into 3d94765 on master.

5 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 543cd94 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 543cd94 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 543cd94 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 543cd94 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 543cd94 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 7b3e2f6 on meri/fix-cursor into 3d94765 on master.

5 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 7b3e2f6 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 7b3e2f6 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 7b3e2f6 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 7b3e2f6 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.226% when pulling 7b3e2f6 on meri/fix-cursor into 3d94765 on master.

@codecov-io
Copy link

codecov-io commented Feb 17, 2017

Codecov Report

Merging #174 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #174   +/-   ##
=======================================
  Coverage   81.11%   81.11%           
=======================================
  Files          16       16           
  Lines        1859     1859           
=======================================
  Hits         1508     1508           
  Misses        351      351
Impacted Files Coverage Δ
src/crate/crash/repl.py 51.56% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d94765...f14c266. Read the comment docs.

@m-kharbat m-kharbat force-pushed the meri/fix-cursor branch 2 times, most recently from 9e3ae95 to 451b1fd Compare February 20, 2017 08:40
@coveralls
Copy link

coveralls commented Feb 20, 2017

Coverage Status

Coverage remained the same at 81.226% when pulling 451b1fd on meri/fix-cursor into 3d94765 on master.

Copy link
Contributor

@chaudum chaudum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chaudum
Copy link
Contributor

chaudum commented Feb 20, 2017

@m-kharbat please wait for green CI

@coveralls
Copy link

coveralls commented Feb 20, 2017

Coverage Status

Coverage remained the same at 81.226% when pulling f14c266 on meri/fix-cursor into 3d94765 on master.

@coveralls
Copy link

coveralls commented Feb 20, 2017

Coverage Status

Coverage remained the same at 81.226% when pulling f14c266 on meri/fix-cursor into 3d94765 on master.

@m-kharbat m-kharbat merged commit 980778c into master Feb 20, 2017
@m-kharbat m-kharbat deleted the meri/fix-cursor branch February 20, 2017 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants