My understanding is that the difference between 4164 and 4165 is that
- 4164 will ALWAYS insert a tab (either to indent lines, or to enter "tab")
- 4165 will do NOTHING if just one line is selected (and it will indent / do "tab" when more than 1 line is selected.
However that does not work. 4165 works like 4164 for me.
Background: I wanted to make "indent lines" work with the NoOverwriteSelection plugin.
so I changed the code like this (I also allowed for alt-x to work)
Code: Select all
if ((nCmd == 4155 /*IDM_EDIT_PASTE*/) ||
(nCmd >= 4164) ||
(nCmd >= 4166) ||
(nCmd >= 4168) && (nCmd <= 4173 /*IDM_EDIT_DELETE_FIRST_CHAR_MENU*/) ||
(nCmd >= 4175 /*IDM_EDIT_UPPERCASE*/) && (nCmd <= 4180 /*IDM_EDIT_LOOPCASE*/) ||
(nCmd == 4183 /*IDM_EDIT_INSERTDATE*/) ||
(nCmd >= 4191 /*IDM_EDIT_PASTEANSI*/) && (nCmd <= 4196 /*IDM_EDIT_AUTOINDENT*/))
{
if (AkelPad.GetSelStart() != AkelPad.GetSelEnd())
AkelPad.WindowNoNextProc(hSubClassMain);
}
}
References:
http://akelpad.sourceforge.net/forum/vi ... hp?p=30483