ソースを参照

Fix jump on canceled duplicate

master
Arun Prakash Jana 4年前
コミット
078d05dc7a
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更4行の追加2行の削除
  1. +4
    -2
      src/nnn.c

+ 4
- 2
src/nnn.c ファイルの表示

@@ -6042,9 +6042,11 @@ nochange:
/* Skip renaming to same name */
if (strcmp(tmp, dents[cur].name) == 0) {
tmp = xreadline(dents[cur].name, messages[MSG_COPY_NAME]);
if (strcmp(tmp, dents[cur].name) == 0)
if (!tmp || !tmp[0] || !strcmp(tmp, dents[cur].name)) {
cfg.filtermode ? presel = FILTER : statusbar(path);
copycurname();
goto nochange;

}
ret = 'd';
}
break;


||||||
x
 
000:0
読み込み中…
キャンセル
保存