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:
parent
7a65003679
commit
d9b94c2158
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue