mirror of
https://github.com/kahole/edamagit.git
synced 2024-09-11 07:15:31 +03:00
fix same-column logic error
This commit is contained in:
parent
2ef9bb5a1e
commit
2bca719144
@ -29,8 +29,8 @@ export default class ViewUtils {
|
||||
public static showDocumentColumn(): ViewColumn {
|
||||
const activeColumn = window.activeTextEditor?.viewColumn;
|
||||
|
||||
if (activeColumn && magitConfig.displayBufferSameColumn) {
|
||||
return activeColumn;
|
||||
if (magitConfig.displayBufferSameColumn) {
|
||||
return activeColumn ?? ViewColumn.Active;
|
||||
}
|
||||
|
||||
if ((activeColumn ?? 0) > ViewColumn.One) {
|
||||
|
Loading…
Reference in New Issue
Block a user