Minor style cleanup
This commit is contained in:
parent
12ecffd361
commit
8795efdf19
|
@ -497,18 +497,17 @@ template<InsertMode mode>
|
||||||
void paste(Context& context, int)
|
void paste(Context& context, int)
|
||||||
{
|
{
|
||||||
auto strings = RegisterManager::instance()['"'].values(context);
|
auto strings = RegisterManager::instance()['"'].values(context);
|
||||||
bool linewise = false;
|
InsertMode effective_mode = mode;
|
||||||
for (auto& str : strings)
|
for (auto& str : strings)
|
||||||
{
|
{
|
||||||
if (not str.empty() and str.back() == '\n')
|
if (not str.empty() and str.back() == '\n')
|
||||||
{
|
{
|
||||||
linewise = true;
|
effective_mode = adapt_for_linewise(mode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ScopedEdition edition(context);
|
ScopedEdition edition(context);
|
||||||
context.selections().insert(strings,
|
context.selections().insert(strings, effective_mode);
|
||||||
linewise ? adapt_for_linewise(mode) : mode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user