Unverified Commit 0d1358d7 authored by Tong Mu's avatar Tong Mu Committed by GitHub

Impl (#84171)

parent 549d23e1
...@@ -850,7 +850,7 @@ class _PrefixedStringBuilder { ...@@ -850,7 +850,7 @@ class _PrefixedStringBuilder {
_wrappableRanges, _wrappableRanges,
wrapWidth!, wrapWidth!,
startOffset: firstLine ? prefixLineOne.length : _prefixOtherLines!.length, startOffset: firstLine ? prefixLineOne.length : _prefixOtherLines!.length,
otherLineOffset: firstLine ? _prefixOtherLines!.length : _prefixOtherLines!.length, otherLineOffset: _prefixOtherLines!.length,
); );
int i = 0; int i = 0;
final int length = lines.length; final int length = lines.length;
...@@ -1009,7 +1009,7 @@ class _PrefixedStringBuilder { ...@@ -1009,7 +1009,7 @@ class _PrefixedStringBuilder {
} }
String? _getCurrentPrefix(bool firstLine) { String? _getCurrentPrefix(bool firstLine) {
return _buffer.isEmpty ? prefixLineOne : (firstLine ? _prefixOtherLines : _prefixOtherLines); return _buffer.isEmpty ? prefixLineOne : _prefixOtherLines;
} }
/// Write lines assuming the lines obey the specified prefixes. Ensures that /// Write lines assuming the lines obey the specified prefixes. Ensures that
......
...@@ -1777,7 +1777,7 @@ void main() { ...@@ -1777,7 +1777,7 @@ void main() {
int keyCodeForModifier(int modifier, {required bool isLeft}) { int keyCodeForModifier(int modifier, {required bool isLeft}) {
switch (modifier) { switch (modifier) {
case GtkKeyHelper.modifierMod1: case GtkKeyHelper.modifierMod1:
return isLeft ? 65513 : 65513; return 65513;
case GtkKeyHelper.modifierShift: case GtkKeyHelper.modifierShift:
return isLeft ? 65505 : 65506; return isLeft ? 65505 : 65506;
case GtkKeyHelper.modifierControl: case GtkKeyHelper.modifierControl:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment