Menu

#191 'Indent' is not the inverse of 'unindent'.

medit
open
nobody
5
2016-12-22
2016-12-22
Péter
No

Unindent behaves "as expected": regardless where the cursor is, decreases the number of leading tabs, and if the cursor is not at the beginning of line then it always moves to the left (together with the text).
I use tabs for indenting, autoindent on, "tab key indents", tab_width == indent_width == 4. Medit version is 1.2.0.

But Indent behaves oddly (it is a bug?): if the cursor is in among the leading tabs then it is OK, inserts a TAB character (same behaviour as pressing the Tab key). But when the cursor is elsewhere, then also inserts a TAB character, at the current cursor position. Not at the start of line. Subsequent unindent does not goes back to previous state.

Discussion


Log in to post a comment.