mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 573797: Always use sendString, regardless of encoding
This removes a TODO in the code that makes no sense, and in most cases the else branch is not taken as a common operating mode is the default charset/encoding is windows-1252 but the current charset is utf-8. The effective difference between the two branches is that the else does a flush after character rather than after each string. Change-Id: I50b3cc5837d783ba20b88c2efa44d9c4e6381d30
This commit is contained in:
parent
27f6637d3f
commit
385d302d70
2 changed files with 2 additions and 9 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.tm.terminal.control; singleton:=true
|
Bundle-SymbolicName: org.eclipse.tm.terminal.control; singleton:=true
|
||||||
Bundle-Version: 5.2.0.qualifier
|
Bundle-Version: 5.2.100.qualifier
|
||||||
Bundle-Activator: org.eclipse.tm.internal.terminal.control.impl.TerminalPlugin
|
Bundle-Activator: org.eclipse.tm.internal.terminal.control.impl.TerminalPlugin
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
|
|
|
@ -312,14 +312,7 @@ public class VT100TerminalControl implements ITerminalControlForText, ITerminalC
|
||||||
return false;
|
return false;
|
||||||
if (strText == null)
|
if (strText == null)
|
||||||
return false;
|
return false;
|
||||||
if (!fEncoding.equals(defaultEncoding)) {
|
|
||||||
sendString(strText);
|
sendString(strText);
|
||||||
} else {
|
|
||||||
// TODO I do not understand why pasteString would do this here...
|
|
||||||
for (int i = 0; i < strText.length(); i++) {
|
|
||||||
sendChar(strText.charAt(i), false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue