no select block copy a line instead of all | 没有选中一块文字时复制一行而不是全部
This commit is contained in:
@@ -52,10 +52,8 @@ public class LineEndCopy extends AnAction {
|
||||
Caret primaryCaret = editor.getCaretModel().getPrimaryCaret();
|
||||
int start = primaryCaret.getSelectionStart();
|
||||
int end = primaryCaret.getSelectionEnd();
|
||||
if (start != end) {
|
||||
startLine = document.getLineNumber(start);
|
||||
endLine = document.getLineNumber(end);
|
||||
}
|
||||
startLine = document.getLineNumber(start);
|
||||
endLine = document.getLineNumber(end);
|
||||
}
|
||||
|
||||
AppSettingsState settings = AppSettingsState.getInstance();
|
||||
|
||||
Reference in New Issue
Block a user