Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Feature/allow for generalised indent handling #2375

Merged

Conversation

akinsho
Copy link
Member

@akinsho akinsho commented Jun 30, 2018

Fixed issue raised in discord by @CrossR where the plugins indentation was off if there was an uneven number of indents on a line by rather than taking the naked value from detect-indent which basically just reports the number of spaces at the beginning of the line, and converts that to the highest multiple of indents.
This actually allowed me to remove the comment specific code in the layer.

@akinsho akinsho requested a review from CrossR June 30, 2018 00:43
Copy link
Member

@CrossR CrossR left a comment

Choose a reason for hiding this comment

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

Worked well for me and made my Python code indent guides look the same as VSCode/Notepad++!

Thanks for the very quick fix.

@codecov
Copy link

codecov bot commented Jun 30, 2018

Codecov Report

Merging #2375 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2375   +/-   ##
=======================================
  Coverage   38.11%   38.11%           
=======================================
  Files         300      300           
  Lines       12519    12519           
  Branches     1645     1645           
=======================================
  Hits         4771     4771           
  Misses       7494     7494           
  Partials      254      254

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 77ebbb1...47bb733. Read the comment docs.

@akinsho akinsho merged commit a2cc7e9 into onivim:master Jun 30, 2018
@akinsho akinsho deleted the feature/allow-for-generalised-indent-handling branch June 30, 2018 14:43
@akinsho akinsho restored the feature/allow-for-generalised-indent-handling branch October 1, 2018 09:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants