Skip to content

Commit

Permalink
Attempt to fix failure to apply elastic tabstops when first opening a…
Browse files Browse the repository at this point in the history
… file on some systems (issue #9).
  • Loading branch information
Coises committed Apr 25, 2023
1 parent aa44de7 commit 75b7909
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Columns++ for Notepad++ -- Pre-releases

## Vesion 0.2.1.7-alpha -- April 18th, 2023
## Version 0.2.2-alpha -- April 25th, 2023

* Attempt to fix failure to apply elastic tabstops when first opening a file on some systems (issue #9).

## Version 0.2.1.7-alpha -- April 18th, 2023

* Changed search to place caret after (or before, if searching backward) the replacement text instead of selecting it. Addresses issue #7.

* Added option **Replace: Don't move to the following occurrence** which has the same effect for Columns++ search as the option with the same name in Preferences|Search in Notepad++ for built-in search. Default is unchecked (like the Notepad++ option), which is a change in behavior for Columns++ search. Addresses issue #8.

## Vesion 0.2.0.6-alpha -- April 17th, 2023
## Version 0.2.0.6-alpha -- April 17th, 2023

* Changed to search in "indicated region" instead of "rectangular selection." This is more flexible, makes it easier to see what is happening, and solves the problem of replacements causing which text is included in the selection to change (Issue #6) -- but it is a little harder to explain how it works to end users. It is possible to use the existing Notepad++ Styles (1st-5th or Find Mark Style), or to use a custom indicator just for Columns++. The indicator can be chosen on the Search dialog; settings for the custom indicator number and color are in Options.

Expand Down
4 changes: 4 additions & 0 deletions src/ColumnsPlusPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ void ColumnsPlusPlusData::bufferActivated() {
sci.SetTabIndents(!settings.elasticEnabled);
if (!settings.elasticEnabled) return;
if (settings.overrideTabSize) sci.SetTabWidth(settings.minimumOrLeadingTabSize);
if (isNewDocument) {
analyzeTabstops(dd);
setTabstops(dd);
}
Scintilla::SelectionMode selectionMode = sci.SelectionMode();
if (selectionMode == Scintilla::SelectionMode::Rectangle || selectionMode == Scintilla::SelectionMode::Thin) {
Scintilla::Position anchor = sci.RectangularSelectionAnchor ();
Expand Down
Binary file modified src/ColumnsPlusPlus.rc
Binary file not shown.

0 comments on commit 75b7909

Please sign in to comment.