mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Don’t use “entire document” fallback input with multiple carets
This commit is contained in:
@@ -19,7 +19,7 @@ namespace ng
|
||||
for(auto const& range : ranges)
|
||||
noSelection = noSelection && range.empty();
|
||||
|
||||
input::type actualUnit = unit == input::selection && noSelection ? fallbackUnit : unit;
|
||||
input::type actualUnit = unit == input::selection && noSelection && (ranges.size() == 1 || fallbackUnit != input::entire_document) ? fallbackUnit : unit;
|
||||
*inputWasSelection = actualUnit == input::selection;
|
||||
|
||||
ng::ranges_t res;
|
||||
|
||||
Reference in New Issue
Block a user