1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Don't include extension in selection when renaming files

This commit is contained in:
Brian Fiete 2020-08-13 07:01:33 -07:00
parent 7a65003679
commit d9b94c2158

View file

@ -1799,6 +1799,18 @@ namespace IDE.ui
void EditListViewItem(ListViewItem listViewItem)
{
mListView.EditListViewItem(listViewItem);
if (mListView.mEditWidget != null)
{
String str = scope .();
mListView.mEditWidget.GetText(str);
int lastDot = str.LastIndexOf('.');
if (lastDot != -1)
{
mListView.mEditWidget.mEditWidgetContent.mSelection = .(0, lastDot);
mListView.mEditWidget.mEditWidgetContent.CursorTextPos = lastDot;
}
}
}
void RenameItem(ProjectItem projectItem)